Google Analytics Custom Dimension for affiliate tracking is not being set

Discussion in 'Google Analytics' started by Jason Lelievre, Oct 25, 2020.

  1. #1
    I'm trying to set up affiliate link tracking on my website but I'm clearly missing a step and don't know how to get this working.

    My intended flow is for someone to enter my site with an "affiliate_id" in the URL (ex: www.example.com/?affiliate_id=TEST). GTM then uses a custom HTML tag to create and store it in a 1st Party Cookie whenever it queries the URL and finds the "affiliate_id". In my Google Analytics Settings variable, I have a Custom Dimension at index 1 set as my 1st Party Cookie(which is the affiliate_id value). In GA I created a Custom Dimension at index 1 to receive the affiliate_id that we set up in GTM.

    Notes:
    - I see all of the variables properly set when using Tag Assistant.
    - My website is created through Wix, which is a SPA (Single Page Application).
    - I have an extension in Google Chrome to view cookies and my cookie is correctly set up.
    - In GA i have "Enable Ecommerce" set to "On" and "Enable Enhanced Ecommerce Reporting" set to "off"
    - I see my test transactions being tracked in GA but they don't have the Affiliate ID custom dimension set

    I really hope someone can help me out. Thanks!

    [​IMG] [​IMG] [​IMG]
     
    Jason Lelievre, Oct 25, 2020 IP