-
Retrieving event data from Google tag API: A helpful guide
Hey, so I’m currently playing around with Google tag API to track how many times each offer gets shown to each customer on my e-commerce site. Then, I want to show these vendors how many times their specific offer got viewed, right?
Now, each time a customer views an offer, I’ve got this going on.
window.gtag('event', 'offer_view', { 'offer_id': offerID });
The thing is, I am seeing these values popping up on the dashboard, so I know the event is being sent correctly. But the Google Tag documentation isn’t exactly clear on how to fetch all of this event data.
I gave this a shot:
window.gtag('get', 'offer_view', 'offer_id', testCallBack);
But the callback function isn’t being called at all. So here’s where I need a bit of help: ideally, I’d rather just pull up a list of offer_id’s with their view counts instead of wading through all the event data. Any tips on where to go from here would be massively appreciated!
Log in to reply.