This is a hot topic, as cookie based tracking can be tricky in a multi-domain environment. I started to work on a solution couple of months ago, and ended up creating a plugin, that helps with the multi-domain tracking.
In order to get you covered in your multi-domain tracking endeavors, I would like to share 2 videos and some code with you. Have fun.
If you are trying to track multiple domains with Mautic, you’ll face the following issues:
- You need to serve first party cookie to your Mautic domain on every tracked domain.
This means: if you have Mautic on domain1.com, you can’t freely track domain2.com anymore. You need to set up a tracking domain using a CNAME, like mautic.domain2.com, that resolves to domain1.com.
- In order to have great inboxing rate you’ll need to keep the domains in your email relevant to the sender, and the content you are sending.
This means: if your Mautic is on domain1.com, all your unsubscribe links and other links in your emails will have domain1.com. This domain can influence your inboxing rate even if you send from domain2.com. However you can add tracking domain in this case as well, and with the help of the Multi-Domain plugin you can now mask all your links and delete tracks from the Mautic domain.
You can learn more about why Multi Tracking matters in the following Mauticon presentation:
Watch the Marketing Automation Show for a walkthrough, and start using Multi-Domain tracking
You can download the plugin here:
https://github.com/friendlyis/mauticmultidomain
Do you have questions? Add it to the comments!
Just wanted to check if I understood everything since my set up is somewhat different.
My Mautic instance is at
connect.website.nl
And I have another website at another server
otherwebsite.com
So in cPanel at otherwebsite.com, I create a CNAME
connect.otherwebsite.com
pointing to
connect.website.nl
And in cPanel at website.nl, I create an add-on domain
otherwebsite.com
with subdomain
connect
pointing to the root of my Mautic instance.
Next in my otherwebsite.com site, I change the tracking link to
connect.otherwebsite.com
instead of
connect.website.nl
And finally, in Mautic in the Multidomain plugin settings, I want
marcel@otherwebsite.com
to use the domain
https://connect.otherwebsite.com
Correct 🙂 You got it!
Just installed.
Beyond the dns and server configurations, are there any configurations with the plugin itself.
I don’t see the Multidomain plugin settings?
Hi, no other settings are needed.
All tracking links will be overwritten based on the Multi Domain settings (left menu.) Add the email and the domain that should be used for masking.
As it is in Beta, newsletter image content is not overwritten, you have to do it in your html.
Does this affect any of the SMTP setup? Bounce handling or anything like that?
No because bounce handling is a return process, you will still listen on the same channel with the same domain as before.
Thanks for the plugin and the explanation.
You said that the current version of the plugin only works with Mautic 3.x
Any idea when there will be a version of the plugin that works with Mautic 4?
Hello Luca,
I already tested the plugin with 4.0.0 and it seems to be working just fine. 🙂
Go ahead and give it a shot!
Thank you Joey, I will!
has anyone tried accessing your website using latest safari browser , where 3rdparty cookies do not work, and succeeded with this configuration ?
will mautic forms work too ?
Hi,
The point is, that you serve first party cookies, so you are not affected by evil Safari rules.
Forms? Hmm. I’m not sure, good point 😀
Anyway to change the message-id in the header? The plugin is working good, however the message-id: still shows the original host domain, not the tracking domain.
Hi, we might work on that in Mautic 5.