top of page
  • Writer's pictureBrent Payne

URL contains no Google Analytics code

It appears that the specified URL lacks the snippet for Google Analytics integration.

Why is this important?

As a potent and complimentary service, Google Analytics enables the tracking of visitor interactions on your site. Identifying the absence of the Google Analytics code is the primary function of this Optimization.

What does the Optimization check?

The check will be activated if an internal URL doesn't incorporate the tracking script from Google Analytics within its HTML after rendering.

Note: Should the Google Analytics code be nested within a Google Tag Manager container, this Optimization may still surface, given that Loud Interactive's tools do not execute GTM scripts to locate Google Analytics code, which might lead to false alarms.

Examples that trigger this Optimization

Any URL would set off this Optimization if it lacks the subsequent code segment within its <head>:

<!-- Google Analytics --><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','','ga');ga('create', 'UA-XXXXX-Y', 'auto');ga('send', 'pageview');</script><!-- End Google Analytics -->

Why is this Optimization marked 'Insight'?

The label 'Insight' for this Optimization indicates that it's meant more as a prompt for analysis rather than a directive for immediate action. The omission of Google Analytics is not inherently problematic as numerous alternatives exist, and some sites opt-out of tracking entirely.

When you're examining a website that is known to utilize Google Analytics, this Insight becomes a valuable tool to pinpoint which URLs are missing the tracking code, enabling further scrutiny or correction where necessary.

0 views0 comments

Recent Posts

See All

The skip-link target should exist and be focusable

At Loud Interactive, we're committed to ensuring that digital accessibility is at the forefront of website design and development. During our SEO audits, we look for and attempt to identify an area of

Timed meta refresh must not exist

At Loud Interactive, we regularly perform a SEO audits. We often stumble upon an important issue that could significantly impact user experience and accessibility on websites. We're talking about the

bottom of page