Track click on links with GTM and Google analytics

Discussion in 'Google Analytics' started by danii, Jul 29, 2015.

  1. #1
    Hello there,

    I would like to track clicks on an internal link on a specific web page as an event in Google Analytics. The setup should track specially clicks on a specific link on a specific web page, it should only track the clicks on this specific link (even though the link might be represented on other pages)

    So my question is, how do I set this up with GTM/Google analytics?

    • Universal GA is implemented
    • GTM container i setup

    Trigger:
    I've set up a Trigger containing:
    1. Custom event (ClickOnLink)
    2. Fire On "Event name: gtm.click, URL: ends with /myfolder/mypage/

    Tags:
    1. Produkt: Google analytics
    2. Tag type: Universal analytics
    3. Configure tag:

    Tag Type Universal Analytics
    Tracking ID
    {{UA-XXXXXXX-X site.com}}
    Track Type
    Event
    Category
    internalpromotions
    Action
    ClickOnLink
    Label
    {{url}}
    Value
    1

    4. Fire on: ClickOnLink
    -----------------------

    SO far, So good!

    It records every click on the link, but it records click on the link on ALL pages. I just want it to be recorded on the very specific page.

    So my question is, how do I do it?

    Thank you so much in advance.
     
    danii, Jul 29, 2015 IP