# Wayback Google Analytics

> Bellingcat CLI that collects current and historic Google Analytics, GA4 and Tag Manager codes for a list of websites.

Source: https://osinttools.io/tools/wayback-google-analytics/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** URL, Domain
- **Category:** Infrastructure and domains
- **Pricing:** Free, open source
- **Footprint:** depends on the modules you run
- **Account required:** no
- **API:** no public API
- **Platforms:** Python CLI
- **Website:** https://github.com/bellingcat/wayback-google-analytics
- **GitHub:** bellingcat/wayback-google-analytics, 242 stars · Python · MIT · last commit 2024-02-16 · dormant (no commit on the default branch in 18 months)
- **Listed:** Nov 26
- **Last verified by an editor:** Nov 26, 2026

## What it does

Wayback Google Analytics takes a list of website URLs and gathers the Universal Analytics, GA4 and Google Tag Manager identifiers each site uses now and used in the past, reading the historic ones from Wayback Machine snapshots over a date range you choose. Results are written to CSV, TXT, JSON or XLSX, with a spreadsheet layout that shows which sites share which codes.

Sites run by the same person or organisation often share an analytics account, even when they hide everything else. Bellingcat built the tool for exactly this kind of link analysis and has written about using it to uncover disinformation networks.

Footprint is depends: whether the target is contacted depends on which modules or transforms you run. No account is needed. There is no public API.

## Features

- UA, GA4 and GTM code extraction
- Historic codes from Wayback Machine snapshots
- Custom date ranges and snapshot frequency
- Batch input from the command line or a file
- CSV, TXT, JSON and XLSX output

## Pros

- Recovers analytics codes that sites removed long ago
- Built and documented by Bellingcat
- Installs from PyPI
- Free and open source (MIT)

## Cons

- Only finds codes the Wayback Machine happened to capture
- Shared codes are a lead, not proof of common ownership
- Command-line only

## When to use it

- Use it when you suspect several websites are run by the same operator and want to compare their analytics IDs.
- Use it when a site has dropped its tracking codes and you need the ones it used before.

## Quick start

Install with pip:

```
pip install wayback-google-analytics
wayback-google-analytics -h
```

## Alternatives

- [AnalyzeID](https://osinttools.io/tools/analyzeid/): Finds other websites likely run by the same owner by matching shared Google Analytics, AdSense, affiliate IDs, emails and IPs. (Freemium · Domain, URL · passive)
- [Blacklight](https://osinttools.io/tools/blacklight/): The Markup's scanner that lists a website's ad trackers, third-party cookies, session recorders and fingerprinting. (Free · URL, Domain · active · 245 GitHub stars)
- [BuiltWith](https://osinttools.io/tools/builtwith/): Website technology profiler showing the frameworks, analytics, ad and hosting services a site uses, with history. (Freemium · Domain, URL · passive)
- [CyScan.io](https://osinttools.io/tools/cyscan/): Free website scanner that traces redirects, lists loaded assets and endpoints, gathers passive DNS and screenshots a site. (Free · URL, Domain · active)
- [FaviHash](https://osinttools.io/tools/favihash/): Web tool that computes a site's favicon hash, including for onion sites, and links to Shodan and Censys searches for it. (Free · URL, Domain · active)
- [FaviconHasher](https://osinttools.io/tools/favicon-hasher/): Generates MurmurHash3 and other hashes of a site's favicon and opens matching searches in Shodan, FOFA, Censys and others. (Free · URL, Domain · active)

All alternatives to Wayback Google Analytics in one table: https://osinttools.io/tools/wayback-google-analytics/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
