HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

Using Tracking.Core API with Profile Store

This topic describes how to use the EPiServer.Tracking.Core API with Optimizely Profile Store, including installation and configuration of the tracking.

Prerequisites

Configure the API URLs and subscription keys:

<add key="episerver:profiles.TrackingApiBaseUrl" value="https://" ... >
    <add key="episerver:profiles.TrackingApiSubscriptionKey" value="..." ... >
    <add key="episerver:profiles.ProfileStoreTrackingEnabled" value="true" ... >
    <add key="episerver:tracking.Enabled" value="true">
    <add key="episerver:tracking.IgnoreDNT" value="true">

📘

Note

See Do Not Track and Turn "Do not track" on or off for information about Do not Track (DNT)

Install EPiServer.Profiles.Client

  1. Install the EPiServer.Profiles.Client NuGet package from Optimizely NuGet source to your site by entering the following command at the Package manager prompt (PM>).

    install-package episerver.profiles.client
    
  2. In web.config, fill tracking baseUrl and subscriptionKey values in appsetting section.

<add key="episerver:profiles.TrackingApiBaseUrl" value="ChangeThis" />
        <add key="episerver:profiles.TrackingApiSubscriptionKey" value="ChangeThis" />
  1. Set the following:

    episerver:tracking.Enable=true
    
  2. Optionally, specify episerver:profiles.Scope = <default_scope_you_want_to_send>. The default Scope must be lowercase and cannot include special characters such as: + - _ \ / # < > ...

  3. Verify your tracking data in Insight UI.

Install EPiServer.Tracking.Core

Install the EPiServer.Tracking.Core NuGet package from the Optimizely NuGet source to your site.

Track data

See Tracking for information about how to track data.


What’s Next
Did this page help you?