Using ThirstyAffiliates Click Tracking With Google Tag Manager (GTM)

This is an advanced article on using Google Tag Manager with ThirstyAffiliates Pro‘s Google Click Tracking module. If you have any issues setting up, please contact support and we will assist.

In order for Google Tag Manager to work with ThirstyAffiliates Pro Google click tracking module, you will need to set up the tag specifically for it.

Requirements:

  • Google tag manager workspace for your website.
  • Settings variable for Google Analytics.

Step 1. Create the Link URI Variable

  1. Login to Google Tag Manager and access your website’s workspace
  2. Go to the Variables page (left menu), scroll down to the user-defined variables section and click “NEW” button
  3. Name the variable (e.g. Link URI Variable)
  4. Click anywhere in the variable configuration box, and select Data Layer Variable option
  5. Important: Set Data Layer Variable Name field to link_uri
  6. Save the variable

Step 2. Create the Trigger

  1. Go to the Triggers page (left menu) and click “New” button.
  2. Name the trigger (e.g. ThirstyAffiliates Event Trigger)
  3. Click anywhere on the trigger configuration box, and select Custom Event option.
  4. Important: set the event name field the same value as the Custom Event category name click tracking setting on your website. (default value is “Affiliate Link”)
  5. Set this trigger fires on radio field to All custom events.
  6. Save the trigger

Step 3. Create the Tag

  1. Go to the Tags page (left menu) and click “New” button.
  2. Name the tag (e.g. ThirstyAffiliates click tracking tag)
  3. Click anywhere in the tag configuration box and select Universal Analytics or Classic Google Analytics, depending on what you are using.
  4. Set Track Type to “Event”.
  5. On the category field, click the add icon and select the custom event variable.
  6. For the action field, select the Link URI variable that we created in step 1.
  7. For the Label field, select the Page Path variable.
  8. Leave the value field blank, or set it to another variable that you prefer.
  9. For Google analytics settings field, select the google analytics settings variable for your website.
  10. Next, click anywhere on the triggering box.
  11. Select the custom trigger that we’ve created in step 2.
  12. Save the Tag

Final Step

For the new settings to work, you will need to click Submit in the top right corner of your workspace.

in ThirstyAffiliates Pro