The script which triggers the tracking events to Google must be loaded once (and only once) on every page of your site.
- Sign in to your Analytics account.
- Select the Admin tab.
- Select an account from the drop-down menu in the ACCOUNT column.
- Select a property from the drop-down menu in the PROPERTY column.
- Under PROPERTY, click Tracking Info > Tracking Code.
The snippet provided here must be implemented on every page, even the pages you are not interested in. If you chose to not include the code on every page then:
- you will not be able to see the full flow of a client on your website
- you will have inaccurate data about the time spent on site and actions taken
- visits to untracked pages will appear as ‘referrals’ and so will skew the volume of sessions
- marketing campaigns to the untracked pages will be lost
The easy way for an established website to see if the tracking is complete is to go in Google Analytics -> Acquisition -> Referrals and search in the report after the name of your website, as shown below, or you can use Littledata’s audit tool.
Choose how to set up tracking
There are several ways to collect data in Analytics, depending on whether you want to track a website, an app, or other Internet-connected devices. Select the best installation method for what you wish to track. Here is the complete guide from Google.
Once you have successfully installed Analytics tracking, it may take up to 24 hours for data such as traffic referral information, user characteristics, and browsing information to appear in your reports. However, you can check your web tracking code setup immediately.
If you don’t think it’s working correctly Check your Real-Time reports or use Use Google Tag Assistant to verify your setup.