Skip to main content

Fake Lead Protection trial setup (Quick Integration)

This article describes the trial settings for Spider FLP (Fake Lead Protection).

Itzayana Rodríguez avatar
Written by Itzayana Rodríguez
Updated over a week ago

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 3 locations where the Spider AF tags must be installed:

  1. All Pages

  2. Form input/submit pages

  3. Thank You Page

The <tracker>-01 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.

<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 Form Input/Submission Page

Placement: Form input or submission pages

⚠️ 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.

<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>

3. 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.

<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:

  1. Open GTM

  2. Select “Variables” from the left menu

  3. In the “User-Defined Variables” section, confirm the variable name you want to use

Example:
User-defined variable name: LP Form Inquiry Number

Then, replace the value of xsid in the Spider thank-you page tag with this variable.

Example:

If the user-defined variable name is LP Form Inquiry Number, the tag should be written as:

sptrk('config', '<tracker>-01', { xsid: '{{LP Form Inquiry Number}}' });
Did this answer your question?