consentify-migrate 1.0.0 β†’ 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +128 -0
  2. package/dist/index.js +819 -708
  3. package/package.json +10 -5
package/README.md ADDED
@@ -0,0 +1,128 @@
1
+ # consentify-migrate
2
+
3
+ Migrate from Cookiebot to [Consentify](https://consentify.app) 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.
4
+
5
+ ```bash
6
+ npx consentify-migrate
7
+ ```
8
+
9
+ No installation needed.
10
+
11
+ ---
12
+
13
+ ## Before you start
14
+
15
+ You need a free Consentify account. Create one at [consentify.app](https://consentify.app), it only takes a minute.
16
+
17
+ ---
18
+
19
+ ## What it does
20
+
21
+ Run the command from your project root and it will walk you through the following steps:
22
+
23
+ **1. Detects your framework**
24
+ Supports Next.js, React (CRA/Vite), and vanilla HTML.
25
+
26
+ **2. Finds Cookiebot in your code**
27
+ Scans all source files and reports exactly where Cookiebot references live.
28
+
29
+ **3. Detects your tracking integrations**
30
+ 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.
31
+
32
+ **4. Logs you in to Consentify**
33
+ You enter your email and password once. Your credentials are used only to authenticate and are never stored.
34
+
35
+ **5. Creates your domain on Consentify**
36
+ Picks the right team, creates the domain, and configures your detected integrations automatically via the Consentify API.
37
+
38
+ **6. Updates your files**
39
+ Removes Cookiebot script tags and inserts the Consentify script tag in the right place.
40
+
41
+ At the end you get your script tag and a link to the dashboard where you can customize your banner.
42
+
43
+ ---
44
+
45
+ ## Example output
46
+
47
+ ```
48
+ πŸͺ Consentify Migration Tool
49
+ ──────────────────────────────────────────────────
50
+
51
+ βœ“ Detected Next.js project
52
+
53
+ Scanning for Cookiebot…
54
+ β€’ app/layout.tsx β€” line 12
55
+
56
+ Detecting existing tracking integrations…
57
+ β€’ Google Analytics (G-ABC1234DEF)
58
+ β€’ Google Tag Manager (GTM-XXXXXX)
59
+
60
+ ──────────────────────────────────────────────────
61
+ Log in to Consentify
62
+ ──────────────────────────────────────────────────
63
+ ? Email: you@example.com
64
+ ? Password: β€’β€’β€’β€’β€’β€’β€’β€’
65
+
66
+ βœ“ Logged in as Your Name
67
+ βœ“ Using team: Acme Corp
68
+
69
+ ? Your domain: example.com
70
+ ? Privacy policy URL (optional):
71
+
72
+ The following integrations will be configured on Consentify:
73
+ β€’ Google Analytics: G-ABC1234DEF
74
+ β€’ Google Tag Manager: GTM-XXXXXX
75
+
76
+ ? Configure these integrations automatically? Yes
77
+
78
+ ──────────────────────────────────────────────────
79
+ Setting up Consentify…
80
+ ──────────────────────────────────────────────────
81
+ βœ“ Domain example.com created
82
+ βœ“ Integrations configured: Google Analytics, Google Tag Manager
83
+
84
+ ──────────────────────────────────────────────────
85
+ Updating files…
86
+ ──────────────────────────────────────────────────
87
+ βœ“ app/layout.tsx | Removed Cookiebot, added Consentify <Script>
88
+
89
+ βœ… Migration complete!
90
+
91
+ Your Consentify script tag:
92
+
93
+ <script src="https://consentify.app/api/gateway?token=your-token"></script>
94
+ ```
95
+
96
+ ---
97
+
98
+ ## Supported frameworks
99
+
100
+ | Framework | Entry file(s) detected |
101
+ | ---------------------- | ------------------------------ |
102
+ | Next.js (App Router) | `app/layout.tsx` |
103
+ | Next.js (Pages Router) | `pages/_document.tsx` |
104
+ | React (CRA / Vite) | `public/index.html` |
105
+ | Vanilla HTML | `index.html`, any `.html` file |
106
+
107
+ ---
108
+
109
+ ## Supported integrations
110
+
111
+ Google Analytics, Google Tag Manager, Facebook Pixel, PostHog, TikTok Pixel, LinkedIn Insight Tag, Snapchat Pixel, HubSpot, Contentsquare, Intercom.
112
+
113
+ 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.
114
+
115
+ ---
116
+
117
+ ## After the migration
118
+
119
+ - Review the file changes in your editor before deploying
120
+ - Customize your consent banner at [consentify.app/dashboard/banner](https://consentify.app/dashboard/banner)
121
+ - Deploy your site and Consentify is live
122
+
123
+ ---
124
+
125
+ ## Requirements
126
+
127
+ - Node.js 18 or later
128
+ - A [Consentify account](https://consentify.app)