First Promoter Code for Thank You Page
In this article, you will learn how to install the First Promoter script on your Thank You page.
Step 1
Navigate to Your Funnel > Funnel Step (1) > Click on Edit Page (2)
Step 2
Click on Settings (1) > Tracking Code (2)
Step 3
Paste in your First Responder code below (1) > Exit Out by clicking on the X (2) > Save the page (3)
Here is the code you need to put on the second page after the checkout page to get First Promoter to work with the funnels.
<script type="text/javascript">
function getCookie(cname) {
var name = cname + "=";
var decodedCookie = decodeURIComponent(document.cookie);
var ca = decodedCookie.split(';');
for(var i = 0; i <ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}
var email = getCookie('user-email');
var uid = getCookie('user-billing-id');
if (window.$FPROM) {
$FPROM.trackSignup({email: email,uid: uid});
} else {
_fprom=window._fprom||[];window._fprom=_fprom;
_fprom.push(["event","signup"]);
_fprom.push(["email",email]);
_fprom.push(["uid",uid]);
}
</script>