Migrating from GTM4WP
-
Hello,
We are using GTM4WP but it’s no longer documented and maintained, no support, and so we loved to see you did the job, we wanted to know if there is particular things to take into consideration when moving to your plugin ?
We do Ecommerce and use GTM dataLayer
After can GTM Kit work with Sendinblue Automation to retrieve anonymous visitor emails when they begin the multi step checkout and leave without purchasing ?
Sendinblue script provide this code in their script here (https://help.brevo.com/hc/en-us/articles/360021513079-How-to-identify-users-for-Marketing-Automation) (now it’s brevo, no more sendinblue)<script type="text/javascript"> (function() { window.sib = { equeue: [], client_key: "xxxxxxxxxxxxxxxx" }; /* OPTIONAL: email for identify request*/ window.sib.email_id = window.email; window.sendinblue = {}; for (var j = ['track', 'identify', 'trackLink', 'page'], i = 0; i < j.length; i++) { (function(k) { window.sendinblue[k] = function() { var arg = Array.prototype.slice.call(arguments); (window.sib[k] || function() { var t = {}; t[k] = arg; window.sib.equeue.push(t);})(arg[0], arg[1], arg[2]);};})(j[i]);}var n = document.createElement("script"),i = document.getElementsByTagName("script")[0]; n.type = "text/javascript", n.id = "sendinblue-js", n.async = !0, n.src = "https://sibautomation.com/sa.js?key=" + window.sib.client_key, i.parentNode.insertBefore(n, i), window.sendinblue.page(); })(); </script>
This part is to get the customer mail
/* OPTIONAL: email for identify request*/ // window.sib.email_id = ‘[email protected]’;
They say “In the script you put on your website, replace [email protected] by your variable containing the user’s email address
Any idea on what variable put here to retrieve customer email and update it when the customer entered the mail ?
Many thanks !
- The topic ‘Migrating from GTM4WP’ is closed to new replies.