---
title: "Google Analytics import"
description: "Import your GA4 history into XPmetric in one click, then cancel Google Analytics for good."
source: "https://xpmetric.com/docs/ga-import"
---
XPmetric can replace GA4 — import your historical pageviews so levels, achievements, and charts reflect real traffic from day one.

## Before you import

1. [Install the tracker](/docs/getting-started) on your live site so new data flows to XPmetric.
2. Connect Google Analytics in **Settings → Integrations → Google Analytics**.
3. Pick the GA4 property that matches your site domain.

## Run the import

1. Open **Settings → Integrations** for the site.
2. Click **Import from Google Analytics**.
3. Confirm — the import runs in the background (large properties may take minutes).

Imported events land in ClickHouse with their **original timestamps**. XPmetric backdates achievement unlocks and XP to the days thresholds were actually crossed — not the import day.

## After import

- Site dashboard charts show full history in the selected date range.
- Achievements evaluate against imported totals.
- You can remove the GA4 tag from your site and cancel your Google Analytics subscription.

## Notes

- Import is per-site; each site connects to one GA4 property.
- Re-import is idempotent for overlapping days (deduped by event identity).
- Custom GA events import when they map to pageviews or supported event types.

## Related

- [Get started](/docs/getting-started) — live tracking setup
- [GDPR & cookieless](/docs/gdpr-cookieless) — why XPmetric needs no cookie banner on your site
