Created
September 21, 2018 13:07
-
-
Save humrochagf/1a36f5559256f670de1555e185d8e5ba to your computer and use it in GitHub Desktop.
Integração do utmkeeper com o mautic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="/caminho/do/utmkeeper.js"></script> | |
<script> | |
(function(w,d,t,u,n,a,m){w['MauticTrackingObject']=n; | |
w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)},a=d.createElement(t), | |
m=d.getElementsByTagName(t)[0];a.async=1;a.src=u;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','https://meusite.com/mtc.js','mt'); | |
var config = { | |
postLoad: function(utms) { mt('send', 'pageview', utms); } | |
}; | |
utmkeeper.load(config); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment