set up event tracking with google analytics

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #373390
    charles
    Guest

    Hi

    I’d like to be able to monitor how my CTA is performing and for that I usually use Events in google analytics.
    Usually I insert the snippet into a link so that when someone clicks on it, Google Analytics will know that an event has been triggered and record it. I do this by passing the “onClick” JavaScript function.

    But no matter where I try to write my code, events are not recorded.

    Can you give me a hint on how to use that OR a different way to monitor my CTA using motopress ?

    Thanks

    #374788
    J. Davis
    Keymaster

    Hi Charles,

    You can use special plugins like https://wordpress.org/plugins/gravitate-event-tracking/ You should configure plugin, indicate class for event to reacts. Then this class should be applied to element(for example CTA element) via property panel. When button with this class is clicked the event is submitted.

    Best regards,
    John

    #506089
    Hanna
    Guest

    Hi!
    I’ve successfully activated the Gravitate plugin on my WP site. I see that in the presets the classes “gtrack” and “gtrackexternal” are both registered with a “.” in front. Is that something I should apply to my custom tracking (my own classes).

    I also wonder, how does the plug in understand which are id’s and which are classes?

    Thanks in advance,
    Hanna

    #506225
    J. Davis
    Keymaster

    Hello Hanna,

    Yes, you can try to apply your class name only (without a dot ‘.’) to an element by going to Style tab. Please refer to screenshot http://prntscr.com/ew0yt4
    ID can be applied for Rows only http://prntscr.com/ew0z6p

    Best regards,
    John

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.