The script which triggers the tracking events to Google must be loaded once (and only once) on every page of your site.
This corresponds to your Analytics property. To find the tracking ID and code snippet:
- Sign in to your Google 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’re 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 verify the tracking is complete is Google Analytics > Acquisition > Referrals and search in the report after the name of your website, as shown below.
You can also use Littledata’s audit tool (hint hint).
Try Littledata free for 14 days
Choose how to set up tracking
There are several ways to collect data in Google Analytics, depending on whether you want to track a website, an app or other internet-connected devices.
To select the best installation method for what you wish to track, here is the complete guide from Google.
Once you have successfully installed Google 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. Some of these metrics include buying behavior, average order value, customer lifetime value and more.
However, you can immediately check your web tracking code setup.
If you don’t think it’s working correctly, you can check your Real-Time reports or use Google Tag Assistant to verify your setup.
Tracking for Shopify merchants
If you’re a Shopify merchant using Google Analytics for tracking, you’re in luck. Our new tracking code update for Shopify users is faster, more versatile and more efficient than ever before.
Littledata’s Google Analytics Shopify app provides the best Shopify analytics for your store — ones that contain accurate, fixed data to help you make better, more informed marketing and sales decisions.