set up event tracking with google analytics

Home Forums WordPress Plugins Content Editor set up event tracking with google analytics

This topic contains 3 replies, has 2 voices, and was last updated by  John Smith 3 months, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #373390 Reply



    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 ?


    #374788 Reply

    John Smith

    Hi Charles,

    You can use special plugins like 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,

    #506089 Reply


    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,

    #506225 Reply

    John Smith

    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
    ID can be applied for Rows only

    Best regards,

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: set up event tracking with google analytics
Your information:

Posted on by  charles