URL contains more than one Google Analytics code
This means that the URL in question contains multiple Google Analytics snippets.
Why is this important?
Google Analytics is a popular, free tool for tracking website visitors and how they engage with content on your website.
This Hint highlights instances where more than one Google Analytics code was found, which might imply a configuration error - such as a plugin inserting an additional code.
However, it may also be deliberate and nothing to worry about. For instance, using multiple tracking codes might be useful if users with access to different properties need to see data from the same web site, or if you have multiple versions of a web site.
What does the Hint check?
This Hint will trigger for any internal URL that contains 2 or more Google Analytics tracking scripts within the rendered HTML.
Note: this Hint will not trigger if there is Google Analytics code siting within a Google Tag Manager container, as Sitebulb will not fire the GTM script in order to find the Google Analytics code.
Examples that trigger this Hint
The Hint would trigger for any URL which contains multiple Google Analytics tracking codes (e.g. UA-94756635-1), using any combination of the methods below.
gtag.js
analytics.js
ga.js
urchin.js
Why is this Hint marked 'Potential Issue'?
This Hint is a 'Potential Issue', which means that it is unlikely to be affecting the site at the moment, but should be investigated as it could cause issues in the future.
The site may be deliberately tracking Google Analytics twice, which is entirely legitimate. However, this Hint becomes useful if (as is often the case) the code has been accidentally duplicated.
This can cause both codes to send hits to the same property, resulting in inaccurate data collection. Google have a Chrome extension, Tag Assistant, which can help debugging these situations.