{
    "title": "Data retention",
    "description": "How long a business keeps the information it collects. In Google Analytics 4 it is a setting; under UK law, keep personal data no longer than needed.",
    "url": "https://ursy.com/wiki/data-retention/",
    "canonical": "https://ursy.com/wiki/data-retention/",
    "markdown": "https://ursy.com/wiki/data-retention/index.md",
    "json": "https://ursy.com/wiki/data-retention/index.json",
    "published": "2026-11-22T17:38:10+00:00",
    "updated": "2026-11-26T15:48:11+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY and link https://ursy.com/wiki/data-retention/",
    "headings": [
        {
            "level": 2,
            "text": "What is data retention?",
            "id": "what-is-data-retention",
            "url": "https://ursy.com/wiki/data-retention/#what-is-data-retention"
        },
        {
            "level": 2,
            "text": "What does UK law say?",
            "id": "what-does-uk-law-say",
            "url": "https://ursy.com/wiki/data-retention/#what-does-uk-law-say"
        },
        {
            "level": 2,
            "text": "What does the ICO expect?",
            "id": "what-does-the-ico-expect",
            "url": "https://ursy.com/wiki/data-retention/#what-does-the-ico-expect"
        },
        {
            "level": 2,
            "text": "What does a website usually hold?",
            "id": "what-does-a-website-usually-hold",
            "url": "https://ursy.com/wiki/data-retention/#what-does-a-website-usually-hold"
        },
        {
            "level": 2,
            "text": "Why does it matter for search?",
            "id": "why-does-it-matter-for-search",
            "url": "https://ursy.com/wiki/data-retention/#why-does-it-matter-for-search"
        },
        {
            "level": 2,
            "text": "Why does it matter for AI answers?",
            "id": "why-does-it-matter-for-ai-answers",
            "url": "https://ursy.com/wiki/data-retention/#why-does-it-matter-for-ai-answers"
        },
        {
            "level": 2,
            "text": "How does it work in Google Analytics 4?",
            "id": "how-does-it-work-in-google-analytics-4",
            "url": "https://ursy.com/wiki/data-retention/#how-does-it-work-in-google-analytics-4"
        },
        {
            "level": 2,
            "text": "What happens when you change it?",
            "id": "what-happens-when-you-change-it",
            "url": "https://ursy.com/wiki/data-retention/#what-happens-when-you-change-it"
        },
        {
            "level": 2,
            "text": "How long do other tools keep data?",
            "id": "how-long-do-other-tools-keep-data",
            "url": "https://ursy.com/wiki/data-retention/#how-long-do-other-tools-keep-data"
        },
        {
            "level": 2,
            "text": "A worked example",
            "id": "a-worked-example",
            "url": "https://ursy.com/wiki/data-retention/#a-worked-example"
        },
        {
            "level": 2,
            "text": "Common mistakes",
            "id": "common-mistakes",
            "url": "https://ursy.com/wiki/data-retention/#common-mistakes"
        },
        {
            "level": 2,
            "text": "How to check it",
            "id": "how-to-check-it",
            "url": "https://ursy.com/wiki/data-retention/#how-to-check-it"
        },
        {
            "level": 2,
            "text": "What URSY.com counts, and how long we keep it",
            "id": "what-ursy-counts-and-how-long-we-keep-it",
            "url": "https://ursy.com/wiki/data-retention/#what-ursy-counts-and-how-long-we-keep-it"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/wiki/data-retention/#questions"
        },
        {
            "level": 3,
            "text": "How long should I keep Google Analytics data?",
            "id": "how-long-should-i-keep-google-analytics-data",
            "url": "https://ursy.com/wiki/data-retention/#how-long-should-i-keep-google-analytics-data"
        },
        {
            "level": 3,
            "text": "Does the GA4 retention setting delete my reports?",
            "id": "does-the-ga4-retention-setting-delete-my-reports",
            "url": "https://ursy.com/wiki/data-retention/#does-the-ga4-retention-setting-delete-my-reports"
        },
        {
            "level": 3,
            "text": "Is anonymised data covered by the storage limitation rule?",
            "id": "is-anonymised-data-covered-by-the-storage-limitation-rule",
            "url": "https://ursy.com/wiki/data-retention/#is-anonymised-data-covered-by-the-storage-limitation-rule"
        },
        {
            "level": 3,
            "text": "How long must a company keep its accounts?",
            "id": "how-long-must-a-company-keep-its-accounts",
            "url": "https://ursy.com/wiki/data-retention/#how-long-must-a-company-keep-its-accounts"
        },
        {
            "level": 3,
            "text": "Can I keep data forever for statistics?",
            "id": "can-i-keep-data-forever-for-statistics",
            "url": "https://ursy.com/wiki/data-retention/#can-i-keep-data-forever-for-statistics"
        },
        {
            "level": 2,
            "text": "Related words",
            "id": "related-words",
            "url": "https://ursy.com/wiki/data-retention/#related-words"
        },
        {
            "level": 2,
            "text": "Sources",
            "id": "sources",
            "url": "https://ursy.com/wiki/data-retention/#sources"
        }
    ],
    "links": [
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "server logs",
            "url": "https://ursy.com/wiki/server-logs/",
            "internal": true
        },
        {
            "text": "UK GDPR",
            "url": "https://www.legislation.gov.uk/eur/2016/679/article/5",
            "internal": false
        },
        {
            "text": "UK GDPR",
            "url": "https://ursy.com/wiki/uk-gdpr/",
            "internal": true
        },
        {
            "text": "cookies",
            "url": "https://ursy.com/wiki/cookie/",
            "internal": true
        },
        {
            "text": "PECR",
            "url": "https://ursy.com/wiki/pecr/",
            "internal": true
        },
        {
            "text": "storage limitation guidance",
            "url": "https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/data-protection-principles/a-guide-to-the-data-protection-principles/storage-limitation/",
            "internal": false
        },
        {
            "text": "session",
            "url": "https://ursy.com/wiki/session/",
            "internal": true
        },
        {
            "text": "pageview",
            "url": "https://ursy.com/wiki/pageview/",
            "internal": true
        },
        {
            "text": "referrer",
            "url": "https://ursy.com/wiki/referrer/",
            "internal": true
        },
        {
            "text": "UTM parameters",
            "url": "https://ursy.com/wiki/utm-parameters/",
            "internal": true
        },
        {
            "text": "Conversion tracking",
            "url": "https://ursy.com/wiki/conversion-tracking/",
            "internal": true
        },
        {
            "text": "Server-side tracking",
            "url": "https://ursy.com/wiki/server-side-tracking/",
            "internal": true
        },
        {
            "text": "user agent",
            "url": "https://ursy.com/wiki/user-agent/",
            "internal": true
        },
        {
            "text": "Google core update",
            "url": "https://ursy.com/wiki/google-core-update/",
            "internal": true
        },
        {
            "text": "Search Console keeps data for the last 16 months",
            "url": "https://support.google.com/analytics/answer/13682862",
            "internal": false
        },
        {
            "text": "Google Search Console",
            "url": "https://ursy.com/wiki/google-search-console/",
            "internal": true
        },
        {
            "text": "SEO reporting",
            "url": "https://ursy.com/wiki/seo-reporting/",
            "internal": true
        },
        {
            "text": "AI crawler",
            "url": "https://ursy.com/wiki/ai-crawler/",
            "internal": true
        },
        {
            "text": "bot",
            "url": "https://ursy.com/wiki/bot-web-robot/",
            "internal": true
        },
        {
            "text": "IP addresses",
            "url": "https://ursy.com/wiki/ip-address/",
            "internal": true
        },
        {
            "text": "log file analysis",
            "url": "https://ursy.com/wiki/log-file-analysis/",
            "internal": true
        },
        {
            "text": "bot visit",
            "url": "https://ursy.com/wiki/bot-visit/",
            "internal": true
        },
        {
            "text": "verified bots",
            "url": "https://ursy.com/wiki/verified-bots/",
            "internal": true
        },
        {
            "text": "data retention help page",
            "url": "https://support.google.com/analytics/answer/7667196",
            "internal": false
        },
        {
            "text": "Google Analytics 4",
            "url": "https://ursy.com/wiki/google-analytics-4/",
            "internal": true
        },
        {
            "text": "Microsoft Clarity",
            "url": "https://ursy.com/wiki/microsoft-clarity/",
            "internal": true
        },
        {
            "text": "heatmap",
            "url": "https://ursy.com/wiki/heatmaps/",
            "internal": true
        },
        {
            "text": "Clarity retention page",
            "url": "https://learn.microsoft.com/en-us/clarity/setup-and-installation/data-retention",
            "internal": false
        },
        {
            "text": "GOV.UK",
            "url": "https://www.gov.uk/running-a-limited-company/company-and-accounting-records",
            "internal": false
        },
        {
            "text": "Tracking Checker",
            "url": "https://ursy.com/tracking-checker/",
            "internal": true
        },
        {
            "text": "tech stack checker",
            "url": "https://ursy.com/tech-stack-checker/",
            "internal": true
        },
        {
            "text": "Cookie Checker",
            "url": "https://ursy.com/cookie-checker/",
            "internal": true
        },
        {
            "text": "cookie banner",
            "url": "https://ursy.com/wiki/cookie-banner/",
            "internal": true
        },
        {
            "text": "first-party cookies",
            "url": "https://ursy.com/wiki/first-party-cookies/",
            "internal": true
        },
        {
            "text": "Consent Mode v2",
            "url": "https://ursy.com/wiki/consent-mode-v2/",
            "internal": true
        },
        {
            "text": "UK Shop Compliance Checker",
            "url": "https://ursy.com/uk-shop-compliance-checker/",
            "internal": true
        },
        {
            "text": "Online Shop Checker",
            "url": "https://ursy.com/online-shop-checker/",
            "internal": true
        },
        {
            "text": "what a UK business website must show by law",
            "url": "https://ursy.com/wiki/what-must-a-uk-business-website-show-by-law/",
            "internal": true
        },
        {
            "text": "AI Crawler Log Analyser",
            "url": "https://ursy.com/ai-crawler-log-analyzer/",
            "internal": true
        },
        {
            "text": "Verify an AI Bot",
            "url": "https://ursy.com/verify-ai-bot/",
            "internal": true
        },
        {
            "text": "Unix Timestamp Converter",
            "url": "https://ursy.com/webmaster-tools/unix-timestamp-converter/",
            "internal": true
        },
        {
            "text": "Image Metadata Viewer",
            "url": "https://ursy.com/webmaster-tools/image-metadata-viewer/",
            "internal": true
        },
        {
            "text": "EXIF Remover",
            "url": "https://ursy.com/webmaster-tools/exif-remover/",
            "internal": true
        },
        {
            "text": "Security Headers Checker",
            "url": "https://ursy.com/security-headers-checker/",
            "internal": true
        },
        {
            "text": "SSL Certificate Checker",
            "url": "https://ursy.com/ssl-checker/",
            "internal": true
        },
        {
            "text": "WordPress Security Checker",
            "url": "https://ursy.com/wordpress-security-checker/",
            "internal": true
        },
        {
            "text": "HTTP Header Checker",
            "url": "https://ursy.com/http-header-checker/",
            "internal": true
        },
        {
            "text": "X-Robots-Tag",
            "url": "https://ursy.com/wiki/x-robots-tag/",
            "internal": true
        },
        {
            "text": "Search Console forever",
            "url": "https://ursy.com/pro/search-console-forever/",
            "internal": true
        },
        {
            "text": "cookie-free analytics",
            "url": "https://ursy.com/pro/cookie-free-analytics/",
            "internal": true
        },
        {
            "text": "sealed evidence ledger",
            "url": "https://ursy.com/pro/sealed-evidence-ledger/",
            "internal": true
        },
        {
            "text": "search engines",
            "url": "https://ursy.com/wiki/search-engine/",
            "internal": true
        },
        {
            "text": "AI agents",
            "url": "https://ursy.com/wiki/ai-agent/",
            "internal": true
        },
        {
            "text": "methodology",
            "url": "https://ursy.com/methodology/",
            "internal": true
        },
        {
            "text": "privacy",
            "url": "https://ursy.com/privacy/",
            "internal": true
        },
        {
            "text": "data processing agreement",
            "url": "https://ursy.com/trust/data-processing-agreement/",
            "internal": true
        },
        {
            "text": "GDPR",
            "url": "https://ursy.com/wiki/gdpr-eu/",
            "internal": true
        },
        {
            "text": "Cookieless analytics",
            "url": "https://ursy.com/wiki/cookieless-analytics/",
            "internal": true
        },
        {
            "text": "Network block",
            "url": "https://ursy.com/wiki/network-block/",
            "internal": true
        },
        {
            "text": "Unique visitor",
            "url": "https://ursy.com/wiki/unique-visitor/",
            "internal": true
        },
        {
            "text": "Search Console vs Analytics",
            "url": "https://ursy.com/wiki/search-console-vs-analytics/",
            "internal": true
        },
        {
            "text": "Observed vs inferred data",
            "url": "https://ursy.com/wiki/observed-vs-inferred-data/",
            "internal": true
        }
    ],
    "words": 1655,
    "text": "Data retention is how long a business keeps the information it collects. In Google Analytics 4 it is a setting; under UK data protection law it is a duty not to keep personal data longer than you need it. Every analytics tool, log and inbox you run has a retention period, whether you chose it or not. What is data retention? It is the time between collecting a piece of data and deleting or anonymising it. A website collects a lot: page views, server logs, contact form emails, orders, recordings of sessions. Each one should have a period and a reason. Writing them down in one table is called a retention schedule. Retention is one half of the job; the other half is collecting less in the first place. What does UK law say? Article 5(1)(e) of the UK GDPR says personal data must be “kept in a form which permits identification of data subjects” “for no longer than is necessary for the purposes for which the personal data are processed”. Article 5(2) adds accountability: you must be “able to demonstrate compliance”. See UK GDPR. For cookies and similar storage on a device, PECR applies as well. What does the ICO expect? The ICO’s storage limitation guidance is plain: “You must not keep personal data for longer than you need it.” You should be able to justify the period you choose. You need “a policy setting standard retention periods wherever possible”. You should review what you hold, and “erase or anonymise it when you no longer need it”. Anonymised data falls outside the principle. Pseudonymised data, such as key-coded data, “will usually still permit identification”, so it is still covered. What does a website usually hold? More than most owners think. Analytics keeps each session and pageview, often with the referrer and UTM parameters. Conversion tracking links visits to orders. Server-side tracking and logs add the user agent and address of every request. Each of these needs a period. Shorter raw data also means less to protect if something goes wrong. Why does it matter for search? Your history is how you judge change. A fall after a Google core update only makes sense against last year. Google’s Analytics help says “Search Console keeps data for the last 16 months“. After that, the rows in Google Search Console are gone unless you saved them yourself. So retention cuts both ways: keep personal data short, and keep the anonymous totals you need for SEO reporting for as long as they help. Why does it matter for AI answers? Most of what you learn about an AI crawler comes from logs: which bot came, when, and which pages it read. Bots are not people, but logs also hold people’s IP addresses. A short raw log with long-lived anonymous totals lets you see how AI bots change month by month without keeping a trail on any person. See log file analysis, bot visit and verified bots. How does it work in Google Analytics 4? Google’s data retention help page says the setting controls when user-level and event-level data is deleted. For standard properties, user-level data and event data can each be kept for 2 months or 14 months. 26, 38 and 50 months are for 360 properties only. Age, gender and interest data is always kept for 2 months. The setting “does not affect standard aggregated reports”. It does affect explorations and funnel reports, so a short setting limits how far back you can dig. See Google Analytics 4. What happens when you change it? The same page says Analytics waits 24 hours before applying a change, and you can undo it in that window. Shortening the period deletes older data at the next monthly deletion run. Lengthening it applies only to data not yet deleted. A “Reset on new activity” option restarts the clock for a user each time they return. Large and XL properties are limited to 2 months. How long do other tools keep data? Tool or record Kept for Source GA4 user-level and event data (standard property) 2 or 14 months, your choice Google Analytics Help GA4 age, gender and interest data 2 months Google Analytics Help Search Console performance data The last 16 months Google Analytics Help Microsoft Clarity playback data 30 days Microsoft Learn Microsoft Clarity click and heatmap data; labelled or favourite sessions 9 months Microsoft Learn A limited company’s accounting records 6 years from the end of the last financial year they relate to GOV.UK Microsoft’s Clarity retention page adds that data “is deleted after the retention period and cannot be recovered”, backups included. A worked example A bike shop run as a limited company writes a one-page retention schedule. Some periods are set by law, some are its own choice, and it records the reason for each: Data Kept for Why Orders, invoices and other accounting records 6 years from the end of the financial year they relate to GOV.UK says a limited company must keep records this long, or longer in some cases GA4 user-level and event data 14 months enough to compare this season with last; the shop’s choice Contact form emails that did not lead to an order 12 months to answer follow-up questions; the shop’s choice Server logs 90 days to look into errors and bad bots; the shop’s choice GOV.UK lists cases that need longer: a transaction that spans more than one accounting period, equipment expected to last more than 6 years, a Company Tax Return filed late, and a compliance check HMRC has started. It also says not keeping records can mean a £3,000 fine and disqualification as a director. Common mistakes Leaving GA4 on 2 months because nobody changed it, then finding last year’s explorations empty. Keeping raw server logs, full of IP addresses, for years “just in case”. Forgetting copies: exports, spreadsheets, backups and old inboxes have retention periods too. A privacy notice that promises one period while the tool is set to another. Thinking a hashed IP address is anonymous. If it can still be linked back to a person, it is pseudonymised, and the ICO says such data “will usually still permit identification”. No way to act on a request for erasure. The ICO checklist asks for processes for “the right to be forgotten”. How to check it In Google Analytics, go to Admin, then Data Settings, then Data Retention in the property column. You need the Editor role. Note both settings, then write the period and the reason in your records. List every tool that collects data on your pages. The Tracking Checker shows every tracker and pixel a page loads, and the tech stack checker shows the analytics and shop software behind it. Each one needs a line in your schedule. See what a page stores before consent with the Cookie Checker. See cookie banner, first-party cookies and Consent Mode v2. Check the legal basics on a shop with the UK Shop Compliance Checker or the wider Online Shop Checker. See what a UK business website must show by law. Look at your logs before you delete them. Drop a log into the AI Crawler Log Analyser; it runs in your browser, so the file stays on your computer. Check any bot that matters with Verify an AI Bot. Turn log times into dates with the Unix Timestamp Converter. Photos carry data too. View it with the Image Metadata Viewer and strip location and camera details with the EXIF Remover before you upload. Protect what you keep. Run the Security Headers Checker, the SSL Certificate Checker and, on WordPress, the WordPress Security Checker, which looks for open user lists and APIs. Check what a page tells bots about storing copies with the HTTP Header Checker, which shows cache and X-Robots-Tag headers. Save the totals you need before they go. Search Console forever keeps history past Google’s 16 months, cookie-free analytics counts visits without cookies, and the sealed evidence ledger keeps a tamper-evident daily record of AI traffic. All three are in URSY Pro, opening in stages. What URSY.com counts, and how long we keep it We count people, search engines, AI crawlers, AI agents and other machines. Raw rows are kept for 30 days, hourly totals for 90 days, and daily totals for good. A person is a daily visitor code that changes every UTC day and cannot be turned back. We never keep full IP addresses, fingerprints, what people type, counter cookies or query strings. The rules are on our methodology page, with more on privacy and our data processing agreement. Questions How long should I keep Google Analytics data? Long enough for your purpose, and no longer. 14 months is the longest a standard property allows, and it lets you compare a season with last year. Write down why. Does the GA4 retention setting delete my reports? No. Google says it “does not affect standard aggregated reports”. It limits explorations and funnel reports. Is anonymised data covered by the storage limitation rule? No. The ICO says truly anonymised data falls outside it. Pseudonymised data, such as key-coded data, usually still counts as personal data. How long must a company keep its accounts? GOV.UK says 6 years from the end of the last financial year they relate to, and longer in some cases. Can I keep data forever for statistics? The UK GDPR allows longer storage solely for archiving in the public interest, research or statistics, with safeguards. The ICO says you cannot then use it for decisions about individuals. Related words UK GDPR Google Analytics 4 (GA4) Server logs PECR Cookieless analytics Network block Unique visitor Search Console vs Analytics Observed vs inferred data Sources Google Analytics Help: Data retention, checked 24 November 2026 Google Analytics Help: [GA4] Queries report (Search Console keeps 16 months), checked 24 November 2026 ICO: Principle (e): Storage limitation, checked 24 November 2026 legislation.gov.uk: UK GDPR Article 5, checked 24 November 2026 GOV.UK: Running a limited company: company and accounting records, checked 24 November 2026 Microsoft Learn: Clarity data retention, checked 24 November 2026 Updated 24 November 2026 by URSY.com.",
    "source": "https://ursy.com/wiki/data-retention/"
}