Hi
On the doc about measuring newsletter performance I read: To not bias your regular page views on your website with newsletter openings, we recommend tracking newsletter openings into a new website.
So I did setup a new website dedicated to newsletter stats. But where should I put that new site’s Tracking code? Do I have to add it next to the already existing tracking code that generates my regular page views stats ?
When the site you are tracking is called http://example.com/, you simply replace the link to it with http://example.com/?pk_campaign=name_of_the_campaign
Hm, something is still blocking in my head from understanding this …
So if my site is example.com and my matomo installation is on stats.example.com (on an other server):
In matomo I have 2 sites set up: example.com-stats (ID=1) and newsletter-stats (ID=2)
How does the link http://example.com/?pk_campaign=name_of_the_campaign get info into newsletter-stats when there is only a tracking code for example.com-stats on my site ?
Is the connection happening via the beacon image that contains the ID ?
It doesn’t. You are mixing up Campaing tracking with tracking pixel in emails.
When someone visits http://example.com/?pk_campaign=name_of_the_campaign the visit is tracked normally in the site-id 1 with the added bonus of saving that the visitor came from name_of_the_campaign.
If you want to know how many people have opened your email (or rather loaded all images in the email) you can add an image like this to the email
My aim of setting up a website dedicated to the newsletter was to collect all the concerned information there. So newsletter opening and link clicking.
Is that doable? Or (not) recommendet?
I’d recommend you to track all e-mail-opening (via the tracking pixel) in a seperate website so you can differentiate it from normal page visits and keeping the campaign tracking with the regular page views.