How to add Google Analytics to Umbraco and track real performance?

Umbraco

We know that a website without data is just a billboard in the desert. It might look fantastic, but you have no idea if anyone is actually stopping to read it. To turn your site from a static brochure into a high-performance business tool, you need to know not just who is visiting, but what they are actually doing.

If you're running your site on Umbraco, there is good news. When built correctly, Umbraco is one of the most marketer-friendly platforms on the planet. It doesn't just store content; it empowers you to measure what that content is actually doing for your business.

At Yoyo, we build our sites to give marketing managers total control over their tracking. Here is how you can get Google Analytics (GA4) up and running, and how to move beyond basic page views to track real, commercially valuable performance.

Take Control: Manage Tracking Without the IT Team

In the past, adding a tracking script meant raising a support ticket and waiting. We think that's too slow for modern marketing.

That is why, on the websites we build, you will find a dedicated 'Scripts' tab on every single page. This isn't standard in every CMS, but we include it because we know how vital flexibility is for your team.

Inside this tab, you have four options:

  • After opening head tag - Great for high-priority scripts like Google Tag Manager or A/B testing tools.
  • Before closing head tag - Useful for verification tags.
  • After opening body tag - The standard spot for many tracking pixels.
  • Before closing body tag - Ideal for scripts that shouldn't slow down the initial page load, like chat widgets.

The 'Apply to Descendants' feature is the real time-saver. Let's say you have a 'News' section with 500 articles. You don't want to paste your tracking code 500 times. You can simply add it to the main 'News' landing page, tick 'Apply to descendants', and voila, every article underneath it now has tracking enabled automatically.

This gives you the best of both worlds, global control when you need it (by applying it to the Homepage), or granular control for specific campaigns (like a specialised tracking pixel just for your ‘Christmas Campaign’ landing pages).

Best Practice: Use Google Tag Manager (GTM)

While you can paste your Google Analytics code directly into those boxes, we highly recommend using Google Tag Manager.

Think of GTM as a container. You use our 'Scripts' tab to put the code on your website once. After that, whenever you want to add Google Analytics, Hotjar, or a Meta Pixel, you just drop it into the GTM container. You never have to touch the Umbraco back-office for tracking updates again if you don't want to.

Tracking "Real" Performance (Not Just Page Views)

Adding the code is step one. But "real performance" isn't just about how many people visited your site, it's about how many of them actually did something valuable.

GA4 is event-based, which pairs perfectly with Umbraco. Here is what you should be looking to track to prove ROI to your stakeholders:

  • Form Success – Don't just track how many people saw your "Contact Us" page. Configure an event that fires only when a user successfully submits a form. This filters out the noise and tells you exactly how many leads your content generated.
  • Document Downloads – If you are a B2B organisation, a whitepaper download is a high-intent action. We can configure tracking to distinguish between someone reading a blog and someone downloading your "Yearly Industry Report."
  • Interactive Elements – Does your site have a "Book a Demo" button or a video player? We can track clicks and watch times as specific events. This helps you understand if your users are engaged or just scrolling past.

Want Data Inside Umbraco?

For those who want to see performance without leaving the CMS, there are powerful Umbraco packages available. These tools bring dashboard analytics directly into your Umbraco interface. It's a fantastic option if you want your content editors to see immediate feedback on how their pages are performing.

The Bottom Line

Umbraco is designed to grow with you. Whether you are using our custom 'Scripts' tab for quick wins or implementing complex event tracking via GTM, the goal is the same: making decisions based on data, not guesswork.

Need help auditing your current analytics setup? As an Umbraco Gold Partner, we can help you turn your website from a simple brochure into a performance engine. Get in touch with the team today.