Google Analytics Event Tracking for Buttons

  • Posted in : BookCard WP
  • graPHiCS_Design
    Participant

    Hi there,

    I was wondering how I could set up Google Analytics Event Tracking for the buttons, e.g. the SEND button – the “regular” implementation would be like this:

    abc

    However-though, I can’t really edit the button-link, as it seems to be auto-generated and in the “post” I’m only using the shortcodes.

    Is there any way I can set it up properly?

    Many thanks
    Philipp

    graPHiCS_Design
    Participant

    Sorry, the code for the link would be

    abc

    graPHiCS_Design
    Participant

    damn it

    a href="ab.com/c.html" onClick="ga('send', 'event', 'button', 'download', 'cv');">abc

    serkan
    Moderator

    Hi @graPHiCS_Design;
    You can copy the html code to the text tab not the visual tab and don’t use the button shortcodes. WordPress allows you the use html in the content area.
    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register