Configure external system to work with the Sitefinity tracking cookie

Overview

Tracking consent user choice is saved in a cookie named sf-tracking-consent on the client’s browser. The cookie is set to true when the user consents to tracking their behavior, and to false when the user declines. This cookie is used by both Sitefinity CMS and Sitefinity Insight.

When integrating a third-party content tracking solution, you must ensure that the third-party solution handles this cookie and sets it to reflect the user consent correctly. That is, your third-party solution must turn off itself when the cookie is set to false.

In this article, you learn how to configure the external system to be in sync with the state of the sf-tracking-consent cookie.

Code sample

This code sample demonstrates to use the built-in Sitefinity consent tracking together with a third-party system.

You wrap the call to the external JavaScript code with custom code in the following way:

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?