Results 1 to 7 of 7
  1. #1
    DanHorvat's Avatar
    DanHorvat is offline Private Member
    Join Date
    November 2008
    Location
    Actual location may vary.
    Posts
    1,811
    Blog Entries
    2
    Thanks
    1,223
    Thanked 1,243 Times in 729 Posts

    Default Google Analytics events tracking

    I want a click to an affiliate link to be some sort of a goal, or event, in Google Analytics so I can track them and see which page converts and which doesn't.

    I looked at some tutorials online but couldn't find an answer. Maybe someone here knows how to set this up?

  2. #2
    ddm
    ddm is offline Public Member
    Join Date
    May 2019
    Location
    Chilling in Barcelona
    Posts
    208
    Thanks
    57
    Thanked 103 Times in 67 Posts

    Default

    Here is my Google Tag Manager Setup for this

    Create a container, publish it

    Enable the Built-In Variables you need .. I have the following enabled on mine



    Click Classes
    Click Element
    Click ID
    Click Target
    Click Text
    Click URL
    Event
    Page Hostname
    Page Path
    Page URL
    Referrer



    create a Trigger
    "Merchant Link Click Trigger"

    Trigger type> Click - All Elements
    Trigger fires on Some Clicks - in my case "Click URL contains /out/"


    Create a TAG
    "Click To Merchant Tag"
    Type> Universal Analytics
    Track Type> Event
    Category > click-to-merchant
    action> {{Click URL}}
    label > {{Click URL}}
    value > {{Page URL}}
    Non Interaction hit> FALSE
    checked - enable overriding settings in this tag
    Add UA ID
    advanced settings - fire once per event


    Now assign your trigger to your tag..

    publish your workspace, and after you get clicks on your /out/ links, you should see events report in analytics under behaviour events..


    eg yoursite.com/out/somemerchant - number of clicks

    have a look in google analytics realtime to debug, or one of the browser extensions that are available like tag assistant
    https://chrome.google.com/webstore/d...okphdefk?hl=en



    Now to set up those events as Goals,
    go to goals in analytics admin, create a new goal,

    setup a "place an order" type goal
    name> Click To Merchant
    type> event
    goal details>
    category equals to click-to-merchant
    other 3 fields leave empty

    click save.

    enjoy
    ----

  3. The Following 3 Users Say Thank You to ddm For This Useful Post:

    DanHorvat (26 November 2019), justin case (24 November 2019), universal4 (25 November 2019)

  4. #3
    DanHorvat's Avatar
    DanHorvat is offline Private Member
    Join Date
    November 2008
    Location
    Actual location may vary.
    Posts
    1,811
    Blog Entries
    2
    Thanks
    1,223
    Thanked 1,243 Times in 729 Posts

  5. #4
    ddm
    ddm is offline Public Member
    Join Date
    May 2019
    Location
    Chilling in Barcelona
    Posts
    208
    Thanks
    57
    Thanked 103 Times in 67 Posts

    Default

    Quote Originally Posted by DanHorvat View Post
    Thanks man, didn't manage to get it to work yet, must have missed some step.

    Hey dan

    sheeeit, i must have omitted some little essential detail.

    have a look at this guide, I recall using an article like this to get started with the event tracking part .. after that setting the event category as a goal is easy.

    https://www.optimizesmart.com/event-...omplete-guide/

    let me know if this is of any help / where you are getting stuck.

    Niall
    ----

  6. #5
    DanHorvat's Avatar
    DanHorvat is offline Private Member
    Join Date
    November 2008
    Location
    Actual location may vary.
    Posts
    1,811
    Blog Entries
    2
    Thanks
    1,223
    Thanked 1,243 Times in 729 Posts

    Default

    My events are firing (I checked with the Preview tool) but are not being tracked by Google Analytics. Here are the values of the event:

    Type: Google Analytics: Universal Analytics
    Firing Status: Succeeded
    Non-Interaction Hit: false
    Enable overriding settings in this tag: false
    Value: (shows the URL of the outgoing link accurately)
    Category: 'Clickses'
    Track Type: 'TRACK_EVENT'
    Google Analytics Settings:
    {
    doubleClick: false,
    setTrackerName: false,
    useDebugVersion: false,
    useHashAutoLink: false,
    decorateFormsAutoLink: false,
    enableLinkId: false,
    enableEcommerce: false,
    trackingId: (shows my UA-xxxxxxxxx-x accurately)
    fieldsToSet: [{fieldName: 'cookieDomain', value: 'auto'}]
    }
    Action: 'Actionses'
    Label: (shows URL of the page where the link was clicked)

    I tried to set this up with another website, same thing. Event fires but isn't tracked in GA. I don't have any view filters in GA, all settings are default.

    Any ideas?

  7. #6
    ddm
    ddm is offline Public Member
    Join Date
    May 2019
    Location
    Chilling in Barcelona
    Posts
    208
    Thanks
    57
    Thanked 103 Times in 67 Posts

    Default

    I will have a look at my settings and let you know if anything jumps out!
    ----

  8. #7
    ddm
    ddm is offline Public Member
    Join Date
    May 2019
    Location
    Chilling in Barcelona
    Posts
    208
    Thanks
    57
    Thanked 103 Times in 67 Posts

    Default

    edit: pasted some stuff here but formatting is all borked. Happy to skype with you sir and share my screen, or ping you some screenshots of every screen of my setup if you want to dm me your email address!

    i wish we could paste an image here in this forum software without having to upload it somewhere else!
    ----

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •