• Resolved mseb

    (@mseb)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author yuvalo

    (@yuvalo)

    Hi @mseb

    Are you trying to track clicks that trigger the popup, or the popup itself?

    Yuval

    Thread Starter mseb

    (@mseb)

    Hi Yuval,

    for some unknown reason it just started working suddenly… ??

    I wanted to track the popup itself.

    Thanks.
    Mirko

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google Analytics Event in JS box’ is closed to new replies.