All Collections
Ad Fraud Protection
Tutorial
How to set up Spider AF tags with Google Tag Manager
How to set up Spider AF tags with Google Tag Manager
Ronald Ng avatar
Written by Ronald Ng
Updated over a week ago

Getting started

You can add the Spider AF page tag to your site using Google Tag Manager.

This article helps explain how to implement Spider AF tags in GTM (Google Tag Manager). It is recommended to integrate directly to the header of a webpage because some ad blockers block GTM from firing. But in the situation where dev resources are limited, Spider AF can be integrated through GTM.


Set up the tag

  1. In the left menu, click Tags, then click the New button.

  2. Click the circle in the Tag Configuration section.

  3. In the Choose tag type menu, click Custom HTML.

  4. Name your Tag and in the HTML field, paste your tag. Ensure the box beside Support document.write is unchecked.


  5. Click the circle in the Triggering section.

  6. Select the All Page view traigger and Save.

  7. To complete the setup, click the Submit button.







Optionally: setup Spider AF for Conversions

Set up the trigger

  1. Click Triggers on the left menu, then click New.

  2. Click the circle in the Trigger Configuration section.

  3. Click Page View.

  4. In the This trigger fires on section, select Some Page Views.

  5. In the Fire this trigger when section, select Page URL and contains. Then add the name of your "Thank you" page.

  6. Click Save.

Set up the tag

  1. In the left menu, click Tags, then click the New button.

  2. Click the circle in the Tag Configuration section.

  3. In the Choose tag type menu, click Custom HTML.

  4. In the HTML field, paste your conversion tag. Check the box beside Support document.write.


    You must configure these user-defined variables in Google Tag Manager:

    ##xuid##: ID for each user
    ##xsid##: ID for each conversion

  5. Click the circle in the Triggering section.

  6. Click the conversion trigger that you created.

  7. Click Save.

  8. To complete the setup, click the Submit button.

We can guide you through this setup with screen sharing. Please contact us if you have any trouble.


Optionally you can also integrate conversions to monitor invalid activity down the funnel. Click Here for integration instruction for conversions.

Did this answer your question?