Configuring tracking (ASP.NET)

Views are tracked on the server as soon as the Content Variant is rendered and a conversion is registered when a user clicks on a link. You need to configure a handler on a .NET platform so that links are tracked and redirected.

Before you begin

The Components used in Content variants must contain one or more links to be able to track Conversions.

Procedure

  1. Open Internet Information Services (IIS) Manager.
  2. In your Web site, create a redirects directory. For example /redirect/.
  3. Open the web.config in the /redirect/ directory and add the following handler in the <system.webServer> section:
    <handlers>
     <add name="Tridion.SmartTarget.Analytics.TrackingRedirect" path="*" verb="GET" type="Tridion.SmartTarget.Analytics.TrackingRedirect" resourceType="Either" requireAccess="Script" preCondition="integratedMode" />
    </handlers>
  4. Save and close web.config.

What to do next

If you do not want to create a web.config file in your redirect directory, you can modify the web.config in the root of your Web site. Change the value of the path attribute to start with the redirect directory, for example: path="/redirect/*"

If your Web site redirects directory is not /redirect/, open the smarttarget_conf.xml configuration file and configure the trackingRedirectUrl in the <Analytics> element.