Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

HomeDev Guide
Dev GuideUser GuideDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Track your site

Describes how to track activity on your site.

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

  • NuGet package – (Default) Configure tracking automatically with a NuGet package installation.
  • Tag manager – (Optional) Deploy tracking tags manually with your tag management system.
  • PDF tracking – (Optional) Enable tracking of PDF files.

📘

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 it 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.