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.
Regarding Google Analytics integration: If you are planning to send your experiment data to Google Analytics, make sure that the Convert tracking code is installed before the Google Analytics tracking code. Otherwise, you won't have your experiment data available in Google Analytics. More information can be found here: http://support.convert.com/hc/en-us/articles/205160075-Integrate-Convert-Experiments-with-Google-Analytics.