I am using Sitecore 10.1 and I have a situation where I need to disable analytics and personalization or can say xConnect for a particular SXA site. Is that possible to keep the setting for each site level not for all sites?
1 Answer
You can disable tracking per site by using enableTracking="false"
To do this in SXA, go to Site Grouping, then use the Other Properties
named value field to add that in.
Official Documentation links:
-
4In my experience, changes to this configuration usually requires an App Pool reset to take effect. Worth noting.– Mark Cassidy ♦Commented Dec 7, 2021 at 11:04
-
1Yes, It works. I verified by checking the visitoridentification.js on the page. When I set this to false it doesn't add this JS file on the page. Commented Dec 7, 2021 at 13:57