Skip to main content
All CollectionsAd Fraud ProtectionTutorial
How to setup Spider AF Through a Redirector
How to setup Spider AF Through a Redirector

How to use the Spider AF redirector

Ronald Ng avatar
Written by Ronald Ng
Updated over 9 months ago

It is recommended to implement Spider AF through GTM or to the header of your web pages. In doing so, Spider AF understands how users and potential invalid bots are utilizing your webpage.

But in cases where you do not have access to the landing pages header, Spider AF has a redirector that allows tracking of most of the metrics used to identify invalid traffic. With the redirector, we will not be able to measure deeper funnel actions, but we will be able to identify most bots, datacenters, invalid foreign access, etc.

Additionally, Spider AF can block certain invalid access in realtime

To utilize the redirector, we can implement it at 2 different levels, the tracking template, and or the final URL level.

NOTE: When using the redirector, make sure you inform your Spider AF rep for your redirector tag ID and to confirm that the setup was done correctly and that the data is reported on your dashboards.

Tracking Template:

https://sp-trk.com/rd/[INSERT_SPIDERAF_TAG_ID]?network=google_{network}&placement={placement}&keyword={keyword}&device={devicemodel}&saf_src=google_{network}&saf_pt={placement}&saf_kw={keyword}&saf_dv={devicemodel}&saf_cam={campaignid}&saf_grp={adgroupid}&saf_ad={creative}&url={escapedlpurl}

General network final url redirector


https://sp-trk.com/rd/[INSERT_SPIDERAF_TAG_ID]?network=google_{network}&placement={placement}&keyword={keyword}&device={devicemodel}&saf_src=google_{network}&saf_pt={placement}&saf_kw={keyword}&saf_dv={devicemodel}&saf_cam={campaignid}&saf_grp={adgroupid}&saf_ad={creative}&saf_acc=[INSERT_GOOGLE_CUSTOMER_ID]&gclid={gclid}&url={escapedlpurl}

Example above is for Google

Replace the placeholder with the Spider AF Tag ID that is provided by your Spider AF representative.

If you cannot edit the Tracking template follow the other options below.

Integration at the Final URL:

If you are not integrating at the Tracking template level. You must add the redirector throught the Final URL and you will need to encode your URL into the URL path.

https://sp-trk.com/rd/[INSERT_SPIDERAF_TAG_ID]?url={Your URL with its custom tracking and UTM parameters ENCODED}

You can use this tool to encode your URL: https://meyerweb.com/eric/tools/dencoder/

When encoding your URL, it will transform your special characters into %encoding. this will allow the redirector to forward your UTM and custom tracking parameters.

For example:

https://spideraf.com/?utm_source=google_search&utm_medium=ppc&utm_campaign=test


will be transformed to :

https%3A%2F%2Fspideraf.com%2F%3Futm_source%3Dgoogle_search%26utm_medium%3Dppc%26utm_campaign%3Dtest

You can then add this encoded URL to the template above.

https://sp-trk.com/rd/{Spider AF Tag ID}?url=https%3A%2F%2Fspideraf.com%2F%3Futm_source%3Dgoogle_search%26utm_medium%3Dppc%26utm_campaign%3Dtest

Template integration URL:

You can then add this encoded URL to the template like the example below.

https://sp-trk.com/rd/[INSERT_SPIDERAF_TAG_ID]?url=https%3A%2F%2Fspideraf.com%2F%3Futm_source%3Dgoogle_search%26utm_medium%3Dppc%26utm_campaign%3Dtest
Did this answer your question?