Hello everyone !
For almost two years now, i have been using Unbounce and i’m loving it so far.
As a web agency we are using Affilae.com for tracking what the traffic and leads my partners are doing. (Its efficient, simple, not expansive and french 🙂 ).
When i add a pixel onto the confirmation form dialog, Affilae requires that i include for each lead an unique value which could be anything from a series of number, an ID number or an email.
Until now i’ve used a mathematical calculation in the script to generate a unique value.
Here what a pixel looks like normaly:
<iframe src="https://lb.affilae.com/?key=5764002a665e8815378b96d2-57640000665e8815378b96d0&id={UNIQUE_ID}" frameborder="0" width="1" height="1"></iframe>
And here is what the script looks like:
<script>
$(function() {
function guid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + '-' + s4() + '-' + s4() + '-' +
s4() + '-' + s4() + s4() + s4();
}
$( "body" ).append('<iframe src="https://lb.affilae.com/?key=5764002a665e8815378b96d2-57640000665e8815378b96d0&id=' + guid() +' " frameborder="0" width="1" height="1"></iframe>');
});
</script>
My current problem is that i regularly have duplicate on my landing pages (i don’t know really why, but the fact that when someone register to a form on unbounce, even with the confirmation dialogue appearing, the form is there in the back and i’m guessing people are unsure if the form worked the first time so they do it again just in case)
My question: How do i insert a value (email for exemple) from the form into a script placed on the confirmation dialog ?
thanks in advance !