-
Troublesome Purchase Tracking via Google Tag Manager for GA4
Hey there, I’m grappling with getting GA4 set up for my online store and I’ve got a wee bit of a headache with the purchase tag. Oddly enough, some purchases aren’t logged correctly in GA4 – recorded twice or not at all. But when I peek into the Google Tag Manager’s Preview mode to test the tag, it’s cool as a cucumber.
Then there’s the curse of the unavailable items parameters in the GA4 schema. It’s because my datalayer plays by different rules and I can’t nudge the variable names within it. I’m stumped – got any tips on how to scoop up this information?
Wanna look at my datalayer for the purchase event? Here it is:
…
Now here’s the purchase tag as I’ve crafted it in GTM:
“Purchase tag”When I flip over to the debug view in GTM and put the preview mode for a spin, the tag fires up nicely (just once, but shucks, without the items parameters). But oh my, when I pop over to GTM’s preview mode in the GA4 property, sometimes it’s double the trouble with two fires. Got any sage advice to sort out this pickle?
Log in to reply.