Can I prevent cross domain linking for specific sub-domain?

When the visitor id (pk_vid) is added to a link to a particular sub-domain on my site it breaks the link.

For example we send users through a proxy to authenticate access to articles, journals, etc. The sub-domain link sends the redirecting link as a url variable ( When matomo adds the pk_vid var ( the redirect fails.

I’m not concerned with tracking the user profile through to the proxying server.

How do I prevent matomo from adding the pk_vid var to just the sub-domain?


1 Like

Yes, it is possible to prevent cross-domain linking for a specific sub-domain in Matomo.

To do this, follow these steps:

Log in to your Matomo account and go to the website settings for the sub-domain you want to modify.

Under the “Tracking Settings” tab, click on “Cross Domain Tracking”.

Enable the “Disable cross domain tracking” option.

Add the domains that you want to block from cross-domain tracking in the “Domains to exclude” field.

Click on “Save” to apply the changes.

By following these steps, Matomo will prevent cross-domain linking for the specific sub-domain and any domains listed in the “Domains to exclude” field.