The Spider AF tracking template is a template of predefined variables that are applied to an ad network's default tracking template. In some networks this is also referred to as a third-party tracking template. The Spider AF Tracking template allows Spider AF to identify where traffic is coming from, and allows attribution of click / pageview / conversion data back to the source of traffic.
โ
The Spider AF tracking template comes in 2 forms a redirector and non-redirector.
By default, the API connection with Google ads applies the redirector tracking template automatically. The below templates are just examples or can be applied to other networks where an API connection is not possible.
Redirector example template:
https://sp-trk.com/rd/#######?saf_src=google_{network}&saf_pt={placement}&saf_kw={keyword}&saf_dv={devicemodel}&saf_cam={campaignid}&saf_grp={adgroupid}&saf_ad={creative}&saf_acc=#########&gclid={gclid}&url={escapedlpurl}
Along with the template, you will need to apply the final URL suffix has parameters that are the same as the template above, but is required to pass query parameters to the final destination URL.
โ
Example Final URL Suffix:
saf_src=google_{network}&saf_pt={placement}&saf_kw={keyword}&saf_dv={devicemodel}&saf_cam={campaignid}&saf_grp={adgroupid}&saf_ad={creative}&gclid={gclid}&saf_acc=#########
Non-redirect example template:
{lpurl}?saf_src=google_{network}&saf_pt={placement}&saf_kw={keyword}&saf_dv={devicemodel}&saf_cam={campaignid}&saf_grp={adgroupid}&saf_ad={creative}&saf_acc=#########
Available Parameters
As seen above, the parameters that Spider AF adds are below. Not all of the parameters are required, but the more parameters Spider AF recieves, the more accurate the attribution to source traffic will be. Not all of the networks will have available macros to use, if that is the case that do not include the parameter in the template
saf_src : Network from where the traffic comes from
saf_pt : Placement from where the network provided the traffic
saf_kw : Keyword from the network that is associated to the session
saf_dv: Device of which the network believes the traffic comes from
saf_cam : Campaign ID from the network
saf_grp : Ad Group from the network
saf_ad : Ad ID from the network
saf_acc : Ad account ID from the network