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
Dev CommunityOptimizely AcademySubmit a ticket

Optimizely developer documentation

How can we help you?

Try our conversational search powered by Generative AI!

AI OnAI Off

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.


Did this page help you?