9

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 1

6

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:

https://doc.sitecore.com/xp/en/developers/101/platform-administration-and-architecture/enable-disable-the-xdb-and-the-tracker.html

https://doc.sitecore.com/xp/en/developers/sxa/101/sitecore-experience-accelerator/the-sxa-site-definition-fields.html

2
  • 4
    In 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
  • 1
    Yes, 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.