In website analytics, a tracking code is a snippet of JavaScript code that tracks the activity of a website user by collecting data and sending it to the analytics module. The code is generated automatically, is different for each website, and has to be installed on each page you want to track