-
Understanding gtag parameters and addressing issues with page URL and button text
Hey buddy! Need a little help here. So, I was messing around with the gtag on my site and, you know, it’s like this now:
gtag('event', 'CTA Click', { 'page_url' : 'page_url', // What's supposed to go here? 'button_text' : 'button_text', // This's right, right? 'event_label' : 'CTA Clicks' });
I’ve been going through the docs like crazy but still don’t quite get what should really go into those parameters – it’s been a mixed bag for me.
If I test it using GTM’s preview mode, the parameters show up just as they should in my realtime report. But, when I try clicking those same links outside of preview mode—it’s weird—it’s showing “page_url” instead of the actual URLs for the pages. Two heads are better than one, right? What do you think?
Log in to reply.