Lead Attribution
It's incredibly easy to track a visitor's journey from anonymous viewers to engaged leads on Storylane.
π How Lead Attribution Works
First Visit: Unknown Lead A visitor lands on your site but hasnβt shared their email: theyβre still anonymous.
Demo Time: Staying Anonymous The visitor explores a Storylane demo β we identify account-level data but without the visitor submitting a form, they're still unknown at a user-level.
Form Filled: Theyβre In The visitor eventually fills out a form on the website (with Storylane JS embeded). Now, Storylane can link their email to past demo interactions.
Lead Linking Magic Boom! Storylane matches the email with previous demo actions, giving us a full picture of their journey and interest level (+ all future interactions)!
For automatic lead attribution to work, Storylane JS must be installed on every page of the website. Without this, we canβt detect those form submissions or link demo activity back to leads.
π How to Install the Storylane JavaScript Code
Add this code snippet to the <head> section on every page to power up lead tracking:
<script>
(function() {
"use strict";
function e(t) {
var r = t.head;
if (!r) return;
var i = t.querySelector('script[src="https://js.storylane.io/js/v2/storylane.js"]'),
n = t.querySelector('script[src="https://js.storylane.io/js/v1/storylane.js"]');
if (i || n) return;
var s = t.createElement("script");
s.type = "text/javascript", s.async = !0, s.src = "https://js.storylane.io/js/v2/storylane.js",
r.appendChild(s);
}
e(window.document);
})();
</script>π Lead Attribution Tracking
How to Set Up Using Google Tag Manager (GTM)
Add Storylane SDK quickly using Google Tag Manager without any engineering effort.
Sign in to Google Tag Manager and select βWorkspaceβ.
Click on βAdd a new tagβ and name it "Storylane Tag".
Click Edit on Tag Configuration and under custom, select Custom HTML.
Copy the tracking script below and paste it into the HTML field. Hit Save.
In the Triggers popup, click Add Trigger and select All Pages.
Once the trigger has been added, click on Publish at the top of your GTM window and thatβs it!
π Best Practices
To keep everything smooth:
Last updated
Was this helpful?