- Issue created by @camslice
- 🇳🇱Netherlands adebruin
We had about the same issue as you described. We found that a redirect prevented the collection of the events. So by making the event handler add a delayed event de event now gets collected when loading the next page. However. The transformer in de purchase event was private. This prevented the transformer from being serialised. By changing it to protected this now works. Not sure if it completely fixes the issue you are describing but maybe it can help.
Nice one @adebruin, I've added a similar patch for
sign_up
andlogin
events here: https://www.drupal.org/project/google_tag/issues/3406422#comment-15401008 🐛 Sign Up and Login events do not work Needs review- last update
10 months ago 50 pass, 1 fail - 🇬🇧United Kingdom retrodans
Just to say I have seen this in a couple of other places, and this helped resolve most uses of `addDelayedEvent` I have seen.