Gain extra control of the data from pageview hits.
- Install the GTM script on your website.
- Verify that the script is installed and that the container is loading using the Tag Assistant Chrome extension.
Remove any pre-existing Google Analytics installations that are either coded into the theme or implemented via a plugin.
Duplicate tracking issues are very common with sites like Wordpress that rely heavily on plugins.
- Disable any Google Analytics plugins that are active in your CMS.
- Check the header and body for Google Analytics scripts in your theme files by searching for the text analytics.js.
- If you find a tracking script, remove it from the page code.
Select the type of Google Analytics property you want to track - typically either Universal Analytics or GA4 Configuration.
- Universal Analytics is suitable for web-focused measurement.
- GA4 Configuration is suitable for measuring web and app data.
If you’re using a UA tag, select New Variable from the Google Analytics Settings drop down list and paste the tracking ID for the property you want to track into the Tracking ID field.
- For a UA tag, make sure the Track Type is set to Page View.
- Give the variable a name like GA Settings Variable and save it.
This means the tag will trigger sitewide, on every page of the website that GTM is installed on.
In Google Analytics, navigate to Real Time > Overview and monitor the report to check that data is being recorded and you installed the tracking tag correctly.
- Browse through a few pages on the website.
- Look for your activity on the site to show that Google Analytics is now recording visitor data.
Last edited by @hesh_fekry 2023-11-14T11:35:43Z