Convertflow
Converflow Email/Phone Listener Setup
1. Click on the Convertflow link at the top of your screen to go to your dashboard
2. Click on your website
3. Click on Settings
4. Paste the below snippet into the "Custom Code For Landing Pages"
<script>
window.addEventListener("cfSubmit", function(event) {
if (window.convertflow?.person?.email) {
window.ElevarDataLayer.push({
event: "dl_subscribe",
lead_type: "email",
user_properties: {
customer_email: convertflow.person.email
}
});
}
if (window.convertflow?.person?.phone) {
window.ElevarDataLayer.push({
event: "dl_subscribe",
lead_type: "phone",
user_properties: {
customer_phone: convertflow.person.phone
}
});
}
});
</script>
5. Paste the below snippet into the "Custom Code For Popups & Embeds"
<script>
window.addEventListener("cfSubmit", function(event) {
if (window.convertflow?.person?.email) {
window.ElevarDataLayer.push({
event: "dl_subscribe",
lead_type: "email",
user_properties: {
customer_email: convertflow.person.email
}
});
}
if (window.convertflow?.person?.phone) {
window.ElevarDataLayer.push({
event: "dl_subscribe",
lead_type: "phone",
user_properties: {
customer_phone: convertflow.person.phone
}
});
}
});
</script>
6. Click on Save
Note: There are no concerns with duplicate tracking. Convertflow will prevent this.
Updated 7 months ago