Google Analytics Custom Dimension not working

Hi, I’m at a loss and would really appreciate some help.

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. I do successfully receive transaction events in Google Analytics but none of my test transactions have my affiliate_id custom dimension set.

My intended flow is for someone to enter my site with an “affiliate_id” in the URL (ex: www.example .com/?affiliate_id=TEST). Google Tag Manager 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 Google Analytics I created a Custom Dimension at index 1 to receive the affiliate_id that was set up in Google Tag Manager.

Notes:

  • I see all of the variables properly set when using Tag Assistant.
  • I have an extension in Google Chrome to view cookies and my cookie is correctly set up.
  • In Google Analytics 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!

Google Tag Assistant - Variables

Google Tag Manager - Google Analytics Settings

Google Analytics Custom Dimension