Mobile app version of vmapp.org
Login or Join
Kaufman445

: How do I see the event label of a dynamic element for Google Analytics? On our webpage we installed a remarketing banner through Marketo that would appear if certain criteria are met (user

@Kaufman445

Posted in: #Dynamic #EventTracking #GoogleAnalytics #RealTime

On our webpage we installed a remarketing banner through Marketo that would appear if certain criteria are met (user adds item to cart then abandons it to go to another page on our site). I'm trying to track clicks on this banner through Google Analytics events and I believe the event label is needed. The colleague who worked on this banner is no longer with the organization. Does anyone know where I can find this event label? Would it be something that's set up in Marketo or a piece of code inserted directly on the webpage?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kaufman445

1 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

It is going to be somewhere in the source code for the site. It will probably be in JavaScript. From developers.google.com/analytics/devguides/collection/analyticsjs/events, the code for sending an event usually looks something like

ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]);

or

ga('send', {
hitType: 'event',
eventCategory: 'Videos',
eventAction: 'play',
eventLabel: 'Fall Campaign'
});


Keep in mind that the JavaScript could be pulling the event name from another source. eventLabel: $(this).data('event-name') would mean that it is pulling from the HTML attribute data-event-name on the HTML element.

Another way to figure it out would be to use real time analytics. Visit the "Real Time" -> "Events" report in Google Analytics:



While that report is open, click on the banner on your website in another window or tab. The event should show up in the report as you watch.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme