Introduction
During the trial, you can visualize fraudulent leads (conversions) such as spam or bots and check how frequently they are occurring.
Trial Setup
To use the Spider FLP trial, you need to install the Spider AF tag (JavaScript).
There are 2 locations where the Spider AF tags must be installed:
All Pages
Thank You Page
The tracker
part in each tag is a string unique to your account. Please check with your Spider representative to get the correct value.
Also, if you are using forms via Webflow, HubSpot Form Editor, or HubSpot Legacy Forms, the tag will be different. Please contact us for instructions in those cases as well.
If anything is unclear, we’ll be happy to assist—feel free to reach out 🙇♀️
1. Tag for All Pages
Placement: All pages
⚠️ If you have already integrated the Spider AF tag across all pages, you do not need to install it again.
Make sure to update the tracker
part in each tag, since it’s unique to your account. You can check with your Spider representative to get the correct value.
<script>
var sptrk=function(){var o="https://sp-trk.com/",t="__spd",e=(new Date).getTime();window[t]||(window[t]={init:!1});var c=window[t];c.d||(c.d=[]);var s=c.d;function v(t){var i=document.createElement("script");i.async=!0,i.src=t,document.head.appendChild(i)}c.init||v(o+"u");var u=/^([a-z0-9]{8})-([a-z0-9]{2})$/;return function(){var t=arguments;if(s.push(t),"config"==t[0]&&!c.init&&!c.a){c.init=!0;var i=t[1],n=i.match(u),a=n[1],r=n[2];if(!a||!r)throw"invalid id: "+i;var d=Math.random().toString(36).substring(2,15);v(o+"t/"+a+"?"+("a="+e+"&o="+d))}}}();
sptrk('config', 'tracker-01', {
// optional parameters:
// segment: '##segment##'
});
</script>
2. Tag for Thank You Page
Placement: Thank You Page
⚠️ You need to replace "##APPLICATION-ID-HERE##"
with the actual dynamic ID related to the lead, for example, the application number, form submission ID, or any other unique identifier issued by your system.
If you don’t have this number, just add “//” before
xsid
on the code so the system ignores that section. See the example below://xsid: '##APPLICATION-ID-HERE##'
Please use the following code for the integration:
<script>
var sptrk=function(){var o="https://sp-trk.com/",t="__spd",e=(new Date).getTime();window[t]||(window[t]={init:!1});var c=window[t];c.d||(c.d=[]);var s=c.d;function v(t){var i=document.createElement("script");i.async=!0,i.src=t,document.head.appendChild(i)}c.init||v(o+"u");var u=/^([a-z0-9]{8})-([a-z0-9]{2})$/;return function(){var t=arguments;if(s.push(t),"config"==t[0]&&!c.init&&!c.a){c.init=!0;var i=t[1],n=i.match(u),a=n[1],r=n[2];if(!a||!r)throw"invalid id: "+i;var d=Math.random().toString(36).substring(2,15);v(o+"t/"+a+"?"+("a="+e+"&o="+d))}}}();
sptrk('config', 'tracker-01', {
xsid: '##APPLICATION-ID-HERE##'
});
sptrk('event', 'conversion');
</script>
[Supplementary information]
When dynamically inserting the corresponding ID (e.g., application number), we recommend using “User-Defined Variables” in Google Tag Manager (GTM).
Follow these steps:
Open GTM
Select “Variables” from the left menu
In the “User-Defined Variables” section, confirm the variable name you want to use
Example:
User-defined variable name: LP Form Inquiry Number
4. In the code snippet shown above, replace the part marked ##APPLICATION-ID-HERE##
with the confirmed user-defined variable, and set it up:
sptrk('config', '<tracker>-01', { xsid: '{{##APPLICATION-ID-HERE##}}' });
Example:
When the user-defined variable name is LP Form Inquiry Number, as shown in the example above, the tag should be written as:
{ xsid: '{{LP Form Inquiry Number}}' });