I have “site a” in wordpress with the plugin “wp mautic” and showing a form.
When the user sends me an email address by submitting the form, I take them to a thank-you page and allow her to download a lead magnet wich is a direct link to the asset in mautic.
This lead magnet is a PDF. The PDF has links to another “site b” which is listed in my CORS settings in mautic and also in WordPress + “WP Mautic” plugin.
When I open up the registered user, I see the traking until “download” but I can’t see the visits in the new site.
Both public sites are wordpress. Say https://site-a.com and https://site-b.com
The mautic installation is in a subdomain of “site a”, say https://feedback.site-a.com
Both public sites have the “wp mautic” plugin.
Both domains https://site-a.com and https://site-b.com are listed in the mautic config.
Both wordpresses have configured the mautic script via the plugin, in both cases poiting to the same “base URL” = https://feedback.site-a.com
When I load the page in https://site-a.com and explore the source code in the browser, I see this:
PD: URL changed.
<script type="text/javascript" >
function wpmautic_send(){
if ('undefined' === typeof mt) {
if (console !== undefined) {
console.warn('WPMautic: mt not defined. Did you load mtc.js ?');
}
return false;
}
// Add the mt('send', 'pageview') script with optional tracking attributes.
mt('send', 'pageview');
}
(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://feedback.site-a.com/mtc.js','mt');
wpmautic_send();
</script>
Instead when I go to https://site-b.com I see this in the source code:
<script type="text/javascript" >
function wpmautic_send(){
if ('undefined' === typeof mt) {
if (console !== undefined) {
console.warn('WPMautic: mt not defined. Did you load mtc.js ?');
}
return false;
}
// Add the mt('send', 'pageview') script with optional tracking attributes.
mt('send', 'pageview');
}
</script>
I guess I should see also the “final part” which actually does the call also in site-b, but I don’t know what’s the next step in debugging why it does not appear IF the plugins seem well configured.
Any tip on where to continue investigating will be welcome!