Skip to main content

Trial Setup for Fake Lead Protection Without Form Submission (Tag Installation)

If your lead (CV) does not involve form submission (e.g., call tap), follow the steps below to install the measurement tag.

Itzayana Rodríguez avatar
Written by Itzayana Rodríguez
Updated today

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

  1. All Pages

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

If your CV (lead) involves form submission, the measurement tag differs from the one listed here. Please inform us separately in that case.

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