-
Implementing Client-Side Event Triggers with JavaScript for GA 4
“Hey All,
Looking for a little help on a Google Analytics 4 issue I’ve stumbled into. To preface, I’m trying to use JavaScript to trigger events and send over info to GA4. I was actually able to create tags and triggers using this guide from Google Developers. The hiccup is, I have to use Google Tag Manager for every client and it’s starting to become a chore as each client has a separate domain which I have to add in tag assistant and then create the tags and triggers.
To paint you a picture, if I have, say, 100 clients, it feels not exactly efficient to go through these same steps for each one. Is there a method where I can just do it once and apply it to all?
Another thing I noticed is that after I click a button that triggers a tag and event in tag assistant, a bunch of data gets pushed to datalayer. Potential for a JavaScript piece that can do the same push and cut down on my work?
I tried creating another container to see if I could get access to the previous tags and triggers, but it just made a new empty workspace. Bummer.
Any help is highly appreciated! Thanks!”
Log in to reply.