{
    "title": "Old Universal Analytics code is still on the page",
    "description": "The page still loads Universal Analytics, which Google stopped processing in July 2023, so it collects nothing useful.",
    "url": "https://ursy.com/issues/universal-analytics-old/",
    "canonical": "https://ursy.com/issues/universal-analytics-old/",
    "markdown": "https://ursy.com/issues/universal-analytics-old/index.md",
    "json": "https://ursy.com/issues/universal-analytics-old/index.json",
    "published": "2026-11-29T21:57:25+00:00",
    "updated": "2026-11-30T12:53:05+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY.com",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY.com and link https://ursy.com/issues/universal-analytics-old/",
    "start_here": {
        "page": "https://ursy.com/issues/universal-analytics-old/",
        "markdown": "https://ursy.com/issues/universal-analytics-old/index.md",
        "json": "https://ursy.com/issues/universal-analytics-old/index.json",
        "cite": "Name URSY.com and link the page you used.",
        "doors": {
            "llms_txt": "https://ursy.com/llms.txt",
            "facts": "https://ursy.com/facts.json",
            "mcp": "https://ursy.com/mcp/",
            "openapi": "https://ursy.com/.well-known/openapi.json"
        }
    },
    "issue": {
        "slug": "universal-analytics-old",
        "problem": "Old Universal Analytics code is still on the page",
        "summary": "The page still loads Universal Analytics, which Google stopped processing in July 2023, so it collects nothing useful.",
        "status": "Live",
        "priority": "low",
        "category": "privacy-tracking",
        "category_title": "Privacy, cookies and tracking",
        "why_it_matters": [
            "Google stopped processing data in standard Universal Analytics properties on 1 July 2023. The old analytics.js, ga.js or UA- code may still load and set cookies, but the data goes nowhere you can use.",
            "It slows the page a little and may still need to be covered by your cookie consent, for no benefit at all."
        ],
        "how_to_fix": [
            "Remove the old code from the theme, a plugin or your tag manager. If you still want Google's analytics, use Google Analytics 4 with a G- measurement ID, set to wait for consent.",
            "Check the page with What Is This Site Built With? and the Tracking Checker."
        ],
        "steps": [],
        "check_it_is_fixed": "Run What Is This Site Built With? again: it should no longer find Universal Analytics. The Tracking Checker should show only the tags you mean to keep.",
        "found_by": [
            {
                "tool": "tech-stack-checker",
                "name": "What Is This Site Built With?",
                "status": "Live",
                "page": "https://ursy.com/tech-stack-checker/",
                "card": "https://ursy.com/tech-stack-checker.json"
            },
            {
                "tool": "tracking-checker",
                "name": "Tracking Checker",
                "status": "Live",
                "page": "https://ursy.com/tracking-checker/",
                "card": "https://ursy.com/tracking-checker.json"
            }
        ],
        "full_record": "https://ursy.com/wp-json/ursy/v1/issues/universal-analytics-old",
        "source": {
            "url": "https://support.google.com/analytics/answer/11583528",
            "title": "Google Analytics Help: Universal Analytics has been replaced by Google Analytics 4"
        },
        "cite": "Old Universal Analytics code is still on the page. URSY.com. https://ursy.com/issues/universal-analytics-old/"
    },
    "headings": [
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/issues/universal-analytics-old/#why-it-matters"
        },
        {
            "level": 2,
            "text": "How to fix it",
            "id": "how-to-fix-it",
            "url": "https://ursy.com/issues/universal-analytics-old/#how-to-fix-it"
        },
        {
            "level": 3,
            "text": "What the problem looks like",
            "id": "what-the-problem-looks-like",
            "url": "https://ursy.com/issues/universal-analytics-old/#what-the-problem-looks-like"
        },
        {
            "level": 3,
            "text": "What it looks like fixed",
            "id": "what-it-looks-like-fixed",
            "url": "https://ursy.com/issues/universal-analytics-old/#what-it-looks-like-fixed"
        },
        {
            "level": 2,
            "text": "Fix it with your AI assistant",
            "id": "fix-it-with-your-ai-assistant",
            "url": "https://ursy.com/issues/universal-analytics-old/#fix-it-with-your-ai-assistant"
        },
        {
            "level": 2,
            "text": "Fix it on your platform",
            "id": "fix-it-on-your-platform",
            "url": "https://ursy.com/issues/universal-analytics-old/#fix-it-on-your-platform"
        },
        {
            "level": 3,
            "text": "WordPress",
            "id": "wordpress",
            "url": "https://ursy.com/issues/universal-analytics-old/#wordpress"
        },
        {
            "level": 3,
            "text": "Shopify",
            "id": "shopify",
            "url": "https://ursy.com/issues/universal-analytics-old/#shopify"
        },
        {
            "level": 3,
            "text": "A hand-made site",
            "id": "a-hand-made-site",
            "url": "https://ursy.com/issues/universal-analytics-old/#a-hand-made-site"
        },
        {
            "level": 2,
            "text": "Check it is fixed",
            "id": "check-it-is-fixed",
            "url": "https://ursy.com/issues/universal-analytics-old/#check-it-is-fixed"
        },
        {
            "level": 2,
            "text": "Official source",
            "id": "official-source",
            "url": "https://ursy.com/issues/universal-analytics-old/#official-source"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/issues/universal-analytics-old/#questions"
        },
        {
            "level": 3,
            "text": "Can I still see my old UA reports?",
            "id": "can-i-still-see-my-old-ua-reports",
            "url": "https://ursy.com/issues/universal-analytics-old/#can-i-still-see-my-old-ua-reports"
        },
        {
            "level": 3,
            "text": "Is the old code harmful?",
            "id": "is-the-old-code-harmful",
            "url": "https://ursy.com/issues/universal-analytics-old/#is-the-old-code-harmful"
        }
    ],
    "links": [
        {
            "text": "Universal Analytics",
            "url": "https://ursy.com/wiki/universal-analytics/",
            "internal": true
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "cookies",
            "url": "https://ursy.com/wiki/cookie/",
            "internal": true
        },
        {
            "text": "Google Analytics 4",
            "url": "https://ursy.com/wiki/google-analytics-4/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "Google Tag Manager",
            "url": "https://ursy.com/wiki/google-tag-manager/",
            "internal": true
        },
        {
            "text": "Google Analytics Help: Universal Analytics has been replaced by Google Analytics 4",
            "url": "https://support.google.com/analytics/answer/11583528",
            "internal": false
        }
    ],
    "words": 621,
    "text": "The page still loads Universal Analytics, which Google stopped processing in July 2023, so it collects nothing useful. Why it matters Google stopped processing data in standard Universal Analytics properties on 1 July 2023. The old analytics.js, ga.js or UA- code may still load and set cookies, but the data goes nowhere you can use. It slows the page a little and may still need to be covered by your cookie consent, for no benefit at all. How to fix it Remove the old code from the theme, a plugin or your tag manager. If you still want Google's analytics, use Google Analytics 4 with a G- measurement ID, set to wait for consent. Check the page with What Is This Site Built With? and the Tracking Checker. What the problem looks like <script async src=\"https://www.google-analytics.com/analytics.js\"></script> <script> window.ga = window.ga || function(){(ga.q = ga.q || []).push(arguments)}; ga.l = +new Date; ga('create', 'UA-XXXXXXX-1', 'auto'); ga('send', 'pageview'); </script> Universal Analytics code. Google stopped processing this data on 1 July 2023. What it looks like fixed <!-- UA code removed. If you still want Google Analytics, one GA4 tag, set to wait for consent: --> <script async src=\"https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX\"></script> GA4 uses a G- measurement ID. Old UA- IDs and analytics.js or ga.js code can go. Fix it with your AI assistant Paste this into ChatGPT, Claude, Gemini or your coding agent, and fill in the words in square brackets: Help me remove old analytics code from [your website address], built with [your platform, e.g. WordPress, or Shopify]. A checker says [the page address] still loads Universal Analytics (analytics.js, ga.js or a UA- ID), which Google stopped processing in July 2023. First, read the page source (or ask me to paste it) and list every piece of old code: analytics.js, ga.js, UA- IDs, and gtag config lines with a UA- ID. Tell me what most likely adds each one. Also say whether a GA4 tag (G- ID) is present. Then give me the steps to remove the old code at its source, and if I want Google Analytics and have none, how to add one GA4 tag that waits for consent. Rules: remove only Universal Analytics code, keep any working GA4 tag and other tags, and back up first. Give exact steps or code and where it goes. Finally, tell me to re-check with the URSY.com tool What Is This Site Built With? at ursy.com/tech-stack-checker/. Fix it on your platform WordPress Look for UA- IDs in analytics plugins, theme options and header code plugins. Remove the old code, and update or replace plugins that still add it. Shopify Check theme.liquid and any old Google Analytics field in the online store preferences for UA- code, and remove it. A hand-made site Search your templates for analytics.js, ga.js and UA- and remove that code. In Google Tag Manager, remove any Universal Analytics tags. Check it is fixed Run What Is This Site Built With? again: it should no longer find Universal Analytics. The Tracking Checker should show only the tags you mean to keep. Official source Google Analytics Help: Universal Analytics has been replaced by Google Analytics 4 Questions Can I still see my old UA reports? Removing the code from your site does not change what Google holds. Google has been shutting down access to Universal Analytics properties, so export anything you need if it is still available. Is the old code harmful? It collects nothing you can use, slows the page a little and may still set cookies that need consent. There is no reason to keep it.",
    "source": "https://ursy.com/issues/universal-analytics-old/"
}