Switching from Google Analytics to Invoker
A complete guide to migrating from Google Analytics. Export your data, install Invoker, and be up and running in under 5 minutes.
Migration Overview
Download your GA data before making the switch
Add a single line of code to your website
Run both tools in parallel to validate data
Delete the GA script once you're confident
Step 1: Export Your Google Analytics Data
Before switching, export your historical data from Google Analytics. While Invoker will start fresh (historical data isn't migrated), you may want your GA data for reference.
Export from GA4
- Go to Google Analytics > Reports
- Navigate to the report you want to export
- Click the share icon in the top right
- Select "Download file" (PDF or CSV)
- Repeat for each report you want to keep
For bulk exports, consider using the Google Analytics API or a tool like Google Sheets with the GA add-on.
Step 2: Sign Up for Invoker
- Go to invoker.app/register
- Create your account (no credit card required)
- Add your website by entering your domain
- Copy your tracking snippet — it contains your Site ID, the 8-character ID shown in your site's settings in the dashboard
Step 3: Install the Invoker Script
Add the Invoker script to your website. The installation method depends on your platform:
Generic HTML
Add this script tag to your website's <head> section:
<script defer src="https://cdn.invoker.app/script.js" data-site="YOUR_SITE_ID"></script>Replace YOUR_SITE_ID with the 8-character Site ID from your site's settings in the Invoker dashboard. If your site is a single-page app (client-side routing), add data-spa="history" so route changes are counted as pageviews.
WordPress
- Install a header script plugin (like "Insert Headers and Footers")
- Paste the script in the header section
- Save changes
Next.js / React
// app/layout.tsx (App Router) — or pages/_app.tsx (Pages Router)
import Script from 'next/script'
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
{children}
<Script
src="https://cdn.invoker.app/script.js"
data-site={process.env.NEXT_PUBLIC_INVOKER_SITE_ID}
data-spa="history"
strategy="afterInteractive"
/>
</body>
</html>
)
}Shopify
- Go to Online Store > Themes > Edit code
- Find theme.liquid
- Paste the script before
</head> - Save
Step 4: Verify Installation
- Visit your website in a new browser tab
- Open your Invoker dashboard
- Check the real-time view for your visit
- If you see your visit, installation is successful!
Step 5: Run Both Tools (Optional)
You can run both Google Analytics and Invoker simultaneously for a week or two. This lets you:
- Compare data between the two tools
- Ensure Invoker is tracking correctly
- Give stakeholders time to adapt
Note: Numbers won't match exactly because the tools measure differently (GA uses its own _ga cookies plus Google signals; Invoker by default uses a server-side hash that rotates daily and doesn't track across sites).
Step 6: Remove Google Analytics
Once you're confident in Invoker, remove the Google Analytics script:
- Find the GA script in your code (usually starts with
gtagorga) - Remove the entire script tag
- Also remove any Google Tag Manager containers if only used for GA
- Clear your cache and verify GA is no longer loading
Finding the GA Script
Google Analytics scripts typically look like one of these:
<!-- GA4 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXX"></script>
<!-- Universal Analytics (old) -->
<script async src="https://www.google-analytics.com/analytics.js"></script>What to Expect After Switching
Numbers Will Differ
Invoker and GA measure visitors differently, so unique visitor counts won't match:
- In Privacy mode (the default) unique visitors are counted per day, so someone visiting on several days counts once per day in a multi-day range, where GA would count them once. In Enhanced mode, visitors who clear storage or browse privately may be counted again
- We don't track users who have ad blockers (though our block rate is lower)
- We don't count bot traffic that GA might include
Simpler Reports
You'll notice Invoker's dashboard is much simpler. This is intentional. We show you the metrics that matter without the complexity.
Revisit Your Cookie Banner
Once you remove GA, you may be able to simplify or drop your cookie consent banner. In Privacy mode (the default) Invoker stores nothing on the visitor's device, so it's designed so you don't need a banner for it. If you turn on Enhanced mode for returning visitors, it stores a first-party visitor and session id in localStorage, so load the script only after consent in the EU and UK. See our cookie policy and privacy policy for details.
- Exported historical GA data
- Created Invoker account
- Added website to Invoker
- Installed Invoker script
- Verified tracking is working
- Ran parallel tracking (optional)
- Removed GA script
- Updated privacy policy
- Updated cookie consent (if applicable)