Support » Plugin: Gravitate Event Tracking » 3rd party pop plugin

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

    (@gravitate)

    This is because the button gets created on the modal popup after all the events get registered. So the event listener doesn’t get added. You will need to find a way to run the event listener after the Modal Popup gets created.

    You will need to run the JS like this:
    // Some event after the Modal has been created Here…
    jQuery(‘.my_button’).on(‘click’, function(){
    ga(‘send’, ‘event’, ‘category_label’, ‘action_label’, ‘label’);
    });

    However, depending on how your loading Google Analytics it might be different then ga(

    If loading it through Yoast SEO
    It might be __gaTracker( or something else. You will need to review that.

    Or if your loading it through Google Tag Manager then it would be like this:
    var gtmga = ga.getAll()[0];
    gtmga.send(‘event’, ‘category_label’, ‘action_label’, ‘label’);

    Thread Starter vimanas

    (@vimanas)

    Hi thanks… All’s good now. I just needed to make the delay for the 2nd check to be 6 seconds in the ‘advanced’ section of the plugin. That 3rd party pop up was coming in 5 seconds after load time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘3rd party pop plugin’ is closed to new replies.