Google Analytics Event in JS box
-
Dear All,
I hope that here somebody will be able to help me. I am using the gtag.js tracking from google analytics, and want to send an event to analytics after opening the popup.
I used the following code in the section to add JS after opening the popup, however no event is sent to google analytics:
gtag(‘event’, ‘Page Interaction’, {
‘event_label’: ‘popup-open-stayintouch-de’,
‘event_category’: ‘popup-open-stayintouch-de’,
‘non_interaction’: true
});Not sure if anybody here is using the same tracking idea and might have an idea what it could be. I would assume the gtag.js is also available and loaded to be used within the popup page…?
Any hint would be much appreciated ??
Thanks!
Mirko
- The topic ‘Google Analytics Event in JS box’ is closed to new replies.