How to Install the Main Tag / Convert Tracking Code / JavaScript

Where to Install the main Convert Tracking Code

The main Convert tracking code needs to be installed in the <head> section of the page, before any other loaded resource. Placing it after the <title> tag is best.

It’s not an absolute requirement to install the code just after the <title> tag, but doing it this way ensures the best performance. The reason for this is that the Convert Experiments tracking request needs to be initiated as soon as possible on the page, giving it time to get the results back before the whole page finishes loading.

Convert experiments can run even if the code is installed in the footer of the web page. However, in that case, since the tracking request will be started just before the page has loaded, the variation changes arrive later in the browser. Therefore, there will be a greater amount of time to wait before the variation is visible. This can result in a distracting visual blink of the original page before the variation is seen.

Where to Find your Convert Tracking Code

The main tracking code can be found on the Project Settings. To find it, select your Project from the Project Panel:

Once you have selected your Project, on the left panel select Settings:

You will then find the tracking code snippet under Active Websites. Click on the "<>" button as shown below.

Copy and paste the code, and place it on your website as described in the previous section.