consentify-migrate
v1.0.2
Published
Migrate from Cookiebot to Consentify — removes Cookiebot scripts, detects integrations, and sets up your Consentify domain automatically.
Maintainers
Readme
consentify-migrate
Migrate from Cookiebot to Consentify in one command. The tool scans your codebase, removes Cookiebot scripts, detects your existing tracking integrations, sets up your domain on Consentify, and updates your files automatically.
npx consentify-migrateNo installation needed.
Before you start
You need a free Consentify account. Create one at consentify.app, it only takes a minute.
What it does
Run the command from your project root and it will walk you through the following steps:
1. Detects your framework Supports Next.js, React (CRA/Vite), and vanilla HTML.
2. Finds Cookiebot in your code Scans all source files and reports exactly where Cookiebot references live.
3. Detects your tracking integrations Automatically finds Google Analytics, Google Tag Manager, Facebook Pixel, PostHog, TikTok Pixel, LinkedIn Insight Tag, Snapchat Pixel, HubSpot, Contentsquare, and Intercom — and extracts their IDs directly from your code.
4. Logs you in to Consentify You enter your email and password once. Your credentials are used only to authenticate and are never stored.
5. Creates your domain on Consentify Picks the right team, creates the domain, and configures your detected integrations automatically via the Consentify API.
6. Updates your files Removes Cookiebot script tags and inserts the Consentify script tag in the right place.
At the end you get your script tag and a link to the dashboard where you can customize your banner.
Example output
🍪 Consentify Migration Tool
──────────────────────────────────────────────────
✓ Detected Next.js project
Scanning for Cookiebot…
• app/layout.tsx — line 12
Detecting existing tracking integrations…
• Google Analytics (G-ABC1234DEF)
• Google Tag Manager (GTM-XXXXXX)
──────────────────────────────────────────────────
Log in to Consentify
──────────────────────────────────────────────────
? Email: [email protected]
? Password: ••••••••
✓ Logged in as Your Name
✓ Using team: Acme Corp
? Your domain: example.com
? Privacy policy URL (optional):
The following integrations will be configured on Consentify:
• Google Analytics: G-ABC1234DEF
• Google Tag Manager: GTM-XXXXXX
? Configure these integrations automatically? Yes
──────────────────────────────────────────────────
Setting up Consentify…
──────────────────────────────────────────────────
✓ Domain example.com created
✓ Integrations configured: Google Analytics, Google Tag Manager
──────────────────────────────────────────────────
Updating files…
──────────────────────────────────────────────────
✓ app/layout.tsx | Removed Cookiebot, added Consentify <Script>
✅ Migration complete!
Your Consentify script tag:
<script src="https://consentify.app/api/gateway?token=your-token"></script>Supported frameworks
| Framework | Entry file(s) detected |
| ---------------------- | ------------------------------ |
| Next.js (App Router) | app/layout.tsx |
| Next.js (Pages Router) | pages/_document.tsx |
| React (CRA / Vite) | public/index.html |
| Vanilla HTML | index.html, any .html file |
Supported integrations
Google Analytics, Google Tag Manager, Facebook Pixel, PostHog, TikTok Pixel, LinkedIn Insight Tag, Snapchat Pixel, HubSpot, Contentsquare, Intercom.
Integrations that are detected but whose ID could not be extracted automatically will be flagged with a note to configure them manually in the dashboard.
After the migration
- Review the file changes in your editor before deploying
- Customize your consent banner at consentify.app/dashboard/banner
- Deploy your site and Consentify is live
Requirements
- Node.js 18 or later
- A Consentify account
