Disclaimer: This website requires JavaScript to function properly. Some features may not work as expected. Please enable JavaScript in your browser settings for the best experience.

HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Track your site

Describes how to track activity on your site.

Tracking is the first step to collecting data from your site and into the Content Recommendations. You can track in the following ways:

  • Default – Configure tracking automatically with a NuGet package installation.
  • Optional – Deploy tracking tags manually with your tag management system.

📘

Note

You should install tracking on a live site. The tracking mechanism uses live interactions from visitors to process content from your site, so installing on a development site does not let you capture all of your content. To deploy tracking to your development site, the domains of that site need to be in the allow list. See Placing domains on the allow list.

If you are developing recommendation blocks on your development site for testing before go-live, you should apply tracking to your production site, then serve sample recommendations to your development site using this data.

🚧

Important

Only one form of tracking should be installed on your site. Double tracking occurs if both are implemented. You are able to change/update your tracking method at any time.