@c15t/scripts 2.1.0 → 2.2.0-canary-20260727202135
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.
- package/AGENTS.md +62 -0
- package/README.md +32 -20
- package/dist/e2e-test-utils.cjs +51 -10
- package/dist/e2e-test-utils.js +37 -3
- package/dist/engine/compile.cjs +9 -5
- package/dist/engine/runtime.cjs +100 -17
- package/dist/engine/runtime.js +91 -12
- package/dist/registry.cjs +97 -12
- package/dist/registry.js +80 -0
- package/dist/resolve.cjs +9 -5
- package/dist/types.cjs +17 -13
- package/dist/vendors/_shared/attributes.cjs +13 -9
- package/dist/vendors/_shared/google-consent.cjs +14 -9
- package/dist/vendors/_shared/install-builders.cjs +12 -8
- package/dist/vendors/_shared/script-url.cjs +16 -12
- package/dist/vendors/ads-and-pixels/linkedin-insights.cjs +9 -5
- package/dist/vendors/ads-and-pixels/meta-pixel.cjs +13 -9
- package/dist/vendors/ads-and-pixels/microsoft-uet.cjs +11 -7
- package/dist/vendors/ads-and-pixels/reddit-pixel.cjs +9 -5
- package/dist/vendors/ads-and-pixels/snapchat-pixel.cjs +11 -7
- package/dist/vendors/ads-and-pixels/tiktok-pixel.cjs +9 -5
- package/dist/vendors/ads-and-pixels/x-pixel.cjs +9 -5
- package/dist/vendors/analytics/adobe-analytics.cjs +90 -0
- package/dist/vendors/analytics/adobe-analytics.js +49 -0
- package/dist/vendors/analytics/ahrefs-analytics.cjs +11 -7
- package/dist/vendors/analytics/amplitude.cjs +193 -0
- package/dist/vendors/analytics/amplitude.js +134 -0
- package/dist/vendors/analytics/clearbit.cjs +69 -0
- package/dist/vendors/analytics/clearbit.js +28 -0
- package/dist/vendors/analytics/cloudflare-web-analytics.cjs +11 -7
- package/dist/vendors/analytics/databuddy.cjs +11 -7
- package/dist/vendors/analytics/fathom-analytics.cjs +11 -7
- package/dist/vendors/analytics/google-tag.cjs +11 -7
- package/dist/vendors/analytics/heap.cjs +181 -0
- package/dist/vendors/analytics/heap.js +134 -0
- package/dist/vendors/analytics/hightouch.cjs +153 -0
- package/dist/vendors/analytics/hightouch.js +109 -0
- package/dist/vendors/analytics/hotjar.cjs +11 -7
- package/dist/vendors/analytics/logrocket.cjs +99 -0
- package/dist/vendors/analytics/logrocket.js +58 -0
- package/dist/vendors/analytics/matomo-analytics.cjs +9 -5
- package/dist/vendors/analytics/microsoft-clarity.cjs +75 -47
- package/dist/vendors/analytics/microsoft-clarity.js +64 -40
- package/dist/vendors/analytics/mixpanel-analytics.cjs +31 -16
- package/dist/vendors/analytics/mixpanel-analytics.js +22 -11
- package/dist/vendors/analytics/pirsch.cjs +108 -0
- package/dist/vendors/analytics/pirsch.js +67 -0
- package/dist/vendors/analytics/plausible-analytics.cjs +9 -5
- package/dist/vendors/analytics/posthog.cjs +11 -7
- package/dist/vendors/analytics/promptwatch.cjs +11 -7
- package/dist/vendors/analytics/rudderstack.cjs +227 -0
- package/dist/vendors/analytics/rudderstack.js +183 -0
- package/dist/vendors/analytics/rybbit-analytics.cjs +9 -5
- package/dist/vendors/analytics/segment.cjs +9 -5
- package/dist/vendors/analytics/umami-analytics.cjs +9 -5
- package/dist/vendors/analytics/vercel-analytics.cjs +11 -7
- package/dist/vendors/functional/crisp.cjs +9 -5
- package/dist/vendors/functional/intercom.cjs +11 -7
- package/dist/vendors/tag-managers/google-tag-manager.cjs +11 -7
- package/dist-types/registry.d.ts +313 -241
- package/dist-types/types.d.ts +42 -4
- package/dist-types/vendors/ads-and-pixels/linkedin-insights.d.ts +18 -18
- package/dist-types/vendors/ads-and-pixels/meta-pixel.d.ts +21 -21
- package/dist-types/vendors/ads-and-pixels/microsoft-uet.d.ts +32 -32
- package/dist-types/vendors/ads-and-pixels/reddit-pixel.d.ts +19 -19
- package/dist-types/vendors/ads-and-pixels/snapchat-pixel.d.ts +16 -16
- package/dist-types/vendors/ads-and-pixels/tiktok-pixel.d.ts +28 -28
- package/dist-types/vendors/ads-and-pixels/x-pixel.d.ts +13 -13
- package/dist-types/vendors/analytics/adobe-analytics.d.ts +75 -0
- package/dist-types/vendors/analytics/ahrefs-analytics.d.ts +7 -7
- package/dist-types/vendors/analytics/amplitude.d.ts +234 -0
- package/dist-types/vendors/analytics/clearbit.d.ts +60 -0
- package/dist-types/vendors/analytics/cloudflare-web-analytics.d.ts +7 -7
- package/dist-types/vendors/analytics/databuddy.d.ts +25 -25
- package/dist-types/vendors/analytics/fathom-analytics.d.ts +11 -11
- package/dist-types/vendors/analytics/google-tag.d.ts +17 -17
- package/dist-types/vendors/analytics/heap.d.ts +316 -0
- package/dist-types/vendors/analytics/hightouch.d.ts +285 -0
- package/dist-types/vendors/analytics/hotjar.d.ts +14 -14
- package/dist-types/vendors/analytics/logrocket.d.ts +101 -0
- package/dist-types/vendors/analytics/microsoft-clarity.d.ts +42 -30
- package/dist-types/vendors/analytics/mixpanel-analytics.d.ts +40 -28
- package/dist-types/vendors/analytics/pirsch.d.ts +96 -0
- package/dist-types/vendors/analytics/plausible-analytics.d.ts +13 -13
- package/dist-types/vendors/analytics/posthog.d.ts +39 -39
- package/dist-types/vendors/analytics/promptwatch.d.ts +7 -7
- package/dist-types/vendors/analytics/rudderstack.d.ts +330 -0
- package/dist-types/vendors/analytics/rybbit-analytics.d.ts +18 -18
- package/dist-types/vendors/analytics/segment.d.ts +13 -13
- package/dist-types/vendors/analytics/umami-analytics.d.ts +12 -12
- package/dist-types/vendors/analytics/vercel-analytics.d.ts +16 -16
- package/dist-types/vendors/functional/crisp.d.ts +11 -11
- package/dist-types/vendors/functional/intercom.d.ts +16 -16
- package/dist-types/vendors/tag-managers/google-tag-manager.d.ts +18 -18
- package/docs/README.md +62 -0
- package/docs/frameworks/javascript/script-loader.md +354 -0
- package/docs/frameworks/next/script-loader.md +499 -0
- package/docs/frameworks/react/script-loader.md +553 -0
- package/docs/integrations/adobe-analytics.md +160 -0
- package/docs/integrations/ahrefs-analytics.md +157 -0
- package/docs/integrations/amplitude.md +230 -0
- package/docs/integrations/building-integrations.md +239 -0
- package/docs/integrations/clearbit.md +130 -0
- package/docs/integrations/cloudflare-web-analytics.md +126 -0
- package/docs/integrations/crisp.md +140 -0
- package/docs/integrations/databuddy.md +205 -0
- package/docs/integrations/fathom-analytics.md +150 -0
- package/docs/integrations/google-maps.md +263 -0
- package/docs/integrations/google-tag-manager.md +154 -0
- package/docs/integrations/google-tag.md +134 -0
- package/docs/integrations/heap.md +219 -0
- package/docs/integrations/hightouch.md +199 -0
- package/docs/integrations/hotjar.md +143 -0
- package/docs/integrations/intercom.md +144 -0
- package/docs/integrations/linkedin-insights.md +161 -0
- package/docs/integrations/logrocket.md +175 -0
- package/docs/integrations/matomo-analytics.md +171 -0
- package/docs/integrations/meta-pixel.md +412 -0
- package/docs/integrations/microsoft-clarity.md +173 -0
- package/docs/integrations/microsoft-uet.md +156 -0
- package/docs/integrations/mixpanel-analytics.md +130 -0
- package/docs/integrations/overview.md +149 -0
- package/docs/integrations/pirsch.md +142 -0
- package/docs/integrations/plausible-analytics.md +154 -0
- package/docs/integrations/posthog.md +258 -0
- package/docs/integrations/promptwatch.md +121 -0
- package/docs/integrations/reddit-pixel.md +241 -0
- package/docs/integrations/rudderstack.md +271 -0
- package/docs/integrations/rybbit-analytics.md +143 -0
- package/docs/integrations/segment.md +146 -0
- package/docs/integrations/snapchat-pixel.md +163 -0
- package/docs/integrations/tiktok-pixel.md +123 -0
- package/docs/integrations/umami-analytics.md +148 -0
- package/docs/integrations/vercel-analytics.md +141 -0
- package/docs/integrations/x-pixel.md +157 -0
- package/docs/integrations/youtube.md +193 -0
- package/docs/shared/react/guides/script-loader.md +309 -0
- package/package.json +61 -7
- package/readme.json +8 -4
package/dist-types/registry.d.ts
CHANGED
|
@@ -58,17 +58,17 @@ export interface IntegrationRegistryEntry {
|
|
|
58
58
|
* re-declaring category names.
|
|
59
59
|
*/
|
|
60
60
|
export declare const BUILT_IN_INTEGRATION_CATEGORIES: readonly [{
|
|
61
|
-
readonly key:
|
|
62
|
-
readonly label:
|
|
61
|
+
readonly key: 'analytics';
|
|
62
|
+
readonly label: 'Analytics';
|
|
63
63
|
}, {
|
|
64
|
-
readonly key:
|
|
65
|
-
readonly label:
|
|
64
|
+
readonly key: 'ads-and-pixels';
|
|
65
|
+
readonly label: 'Ads & Pixels';
|
|
66
66
|
}, {
|
|
67
|
-
readonly key:
|
|
68
|
-
readonly label:
|
|
67
|
+
readonly key: 'functional';
|
|
68
|
+
readonly label: 'Functional';
|
|
69
69
|
}, {
|
|
70
|
-
readonly key:
|
|
71
|
-
readonly label:
|
|
70
|
+
readonly key: 'tag-manager';
|
|
71
|
+
readonly label: 'Tag Managers';
|
|
72
72
|
}];
|
|
73
73
|
/**
|
|
74
74
|
* Canonical identity catalog for built-in `@c15t/scripts` integrations.
|
|
@@ -77,239 +77,311 @@ export declare const BUILT_IN_INTEGRATION_CATEGORIES: readonly [{
|
|
|
77
77
|
* the CLI can discover it from the same source.
|
|
78
78
|
*/
|
|
79
79
|
export declare const builtInScriptIntegrations: readonly [{
|
|
80
|
-
readonly key:
|
|
81
|
-
readonly vendor:
|
|
82
|
-
readonly label:
|
|
83
|
-
readonly hint:
|
|
84
|
-
readonly docsSlug:
|
|
85
|
-
readonly packageSubpath:
|
|
86
|
-
readonly integrationCategory:
|
|
87
|
-
readonly consentCategory:
|
|
88
|
-
}, {
|
|
89
|
-
readonly key:
|
|
90
|
-
readonly vendor:
|
|
91
|
-
readonly label:
|
|
92
|
-
readonly hint:
|
|
93
|
-
readonly docsSlug:
|
|
94
|
-
readonly packageSubpath:
|
|
95
|
-
readonly integrationCategory:
|
|
96
|
-
readonly consentCategory:
|
|
97
|
-
}, {
|
|
98
|
-
readonly key:
|
|
99
|
-
readonly vendor:
|
|
100
|
-
readonly label:
|
|
101
|
-
readonly hint:
|
|
102
|
-
readonly docsSlug:
|
|
103
|
-
readonly packageSubpath:
|
|
104
|
-
readonly integrationCategory:
|
|
105
|
-
readonly consentCategory:
|
|
106
|
-
}, {
|
|
107
|
-
readonly key:
|
|
108
|
-
readonly vendor:
|
|
109
|
-
readonly label:
|
|
110
|
-
readonly hint:
|
|
111
|
-
readonly docsSlug:
|
|
112
|
-
readonly packageSubpath:
|
|
113
|
-
readonly integrationCategory:
|
|
114
|
-
readonly consentCategory:
|
|
115
|
-
}, {
|
|
116
|
-
readonly key:
|
|
117
|
-
readonly vendor:
|
|
118
|
-
readonly label:
|
|
119
|
-
readonly hint:
|
|
120
|
-
readonly docsSlug:
|
|
121
|
-
readonly packageSubpath:
|
|
122
|
-
readonly integrationCategory:
|
|
123
|
-
readonly consentCategory:
|
|
124
|
-
}, {
|
|
125
|
-
readonly key:
|
|
126
|
-
readonly vendor:
|
|
127
|
-
readonly label:
|
|
128
|
-
readonly hint:
|
|
129
|
-
readonly docsSlug:
|
|
130
|
-
readonly packageSubpath:
|
|
131
|
-
readonly integrationCategory:
|
|
132
|
-
readonly consentCategory:
|
|
133
|
-
}, {
|
|
134
|
-
readonly key:
|
|
135
|
-
readonly vendor:
|
|
136
|
-
readonly label:
|
|
137
|
-
readonly hint:
|
|
138
|
-
readonly docsSlug:
|
|
139
|
-
readonly packageSubpath:
|
|
140
|
-
readonly integrationCategory:
|
|
141
|
-
readonly consentCategory:
|
|
142
|
-
}, {
|
|
143
|
-
readonly key:
|
|
144
|
-
readonly vendor:
|
|
145
|
-
readonly label:
|
|
146
|
-
readonly hint:
|
|
147
|
-
readonly docsSlug:
|
|
148
|
-
readonly packageSubpath:
|
|
149
|
-
readonly integrationCategory:
|
|
150
|
-
readonly consentCategory:
|
|
151
|
-
}, {
|
|
152
|
-
readonly key:
|
|
153
|
-
readonly vendor:
|
|
154
|
-
readonly label:
|
|
155
|
-
readonly hint:
|
|
156
|
-
readonly docsSlug:
|
|
157
|
-
readonly packageSubpath:
|
|
158
|
-
readonly integrationCategory:
|
|
159
|
-
readonly consentCategory:
|
|
160
|
-
}, {
|
|
161
|
-
readonly key:
|
|
162
|
-
readonly vendor:
|
|
163
|
-
readonly label:
|
|
164
|
-
readonly hint:
|
|
165
|
-
readonly docsSlug:
|
|
166
|
-
readonly packageSubpath:
|
|
167
|
-
readonly integrationCategory:
|
|
168
|
-
readonly consentCategory:
|
|
169
|
-
}, {
|
|
170
|
-
readonly key:
|
|
171
|
-
readonly vendor:
|
|
172
|
-
readonly label:
|
|
173
|
-
readonly hint:
|
|
174
|
-
readonly docsSlug:
|
|
175
|
-
readonly packageSubpath:
|
|
176
|
-
readonly integrationCategory:
|
|
177
|
-
readonly consentCategory:
|
|
178
|
-
}, {
|
|
179
|
-
readonly key:
|
|
180
|
-
readonly vendor:
|
|
181
|
-
readonly label:
|
|
182
|
-
readonly hint:
|
|
183
|
-
readonly docsSlug:
|
|
184
|
-
readonly packageSubpath:
|
|
185
|
-
readonly integrationCategory:
|
|
186
|
-
readonly consentCategory:
|
|
187
|
-
}, {
|
|
188
|
-
readonly key:
|
|
189
|
-
readonly vendor:
|
|
190
|
-
readonly label:
|
|
191
|
-
readonly hint:
|
|
192
|
-
readonly docsSlug:
|
|
193
|
-
readonly packageSubpath:
|
|
194
|
-
readonly integrationCategory:
|
|
195
|
-
readonly consentCategory:
|
|
196
|
-
}, {
|
|
197
|
-
readonly key:
|
|
198
|
-
readonly vendor:
|
|
199
|
-
readonly label:
|
|
200
|
-
readonly hint:
|
|
201
|
-
readonly docsSlug:
|
|
202
|
-
readonly packageSubpath:
|
|
203
|
-
readonly integrationCategory:
|
|
204
|
-
readonly consentCategory:
|
|
205
|
-
}, {
|
|
206
|
-
readonly key:
|
|
207
|
-
readonly vendor:
|
|
208
|
-
readonly label:
|
|
209
|
-
readonly hint:
|
|
210
|
-
readonly docsSlug:
|
|
211
|
-
readonly packageSubpath:
|
|
212
|
-
readonly integrationCategory:
|
|
213
|
-
readonly consentCategory:
|
|
214
|
-
}, {
|
|
215
|
-
readonly key:
|
|
216
|
-
readonly vendor:
|
|
217
|
-
readonly label:
|
|
218
|
-
readonly hint:
|
|
219
|
-
readonly docsSlug:
|
|
220
|
-
readonly packageSubpath:
|
|
221
|
-
readonly integrationCategory:
|
|
222
|
-
readonly consentCategory:
|
|
223
|
-
}, {
|
|
224
|
-
readonly key:
|
|
225
|
-
readonly vendor:
|
|
226
|
-
readonly label:
|
|
227
|
-
readonly hint:
|
|
228
|
-
readonly docsSlug:
|
|
229
|
-
readonly packageSubpath:
|
|
230
|
-
readonly integrationCategory:
|
|
231
|
-
readonly consentCategory:
|
|
232
|
-
}, {
|
|
233
|
-
readonly key:
|
|
234
|
-
readonly vendor:
|
|
235
|
-
readonly label:
|
|
236
|
-
readonly hint:
|
|
237
|
-
readonly docsSlug:
|
|
238
|
-
readonly packageSubpath:
|
|
239
|
-
readonly integrationCategory:
|
|
240
|
-
readonly consentCategory:
|
|
241
|
-
}, {
|
|
242
|
-
readonly key:
|
|
243
|
-
readonly vendor:
|
|
244
|
-
readonly label:
|
|
245
|
-
readonly hint:
|
|
246
|
-
readonly docsSlug:
|
|
247
|
-
readonly packageSubpath:
|
|
248
|
-
readonly integrationCategory:
|
|
249
|
-
readonly consentCategory:
|
|
250
|
-
}, {
|
|
251
|
-
readonly key:
|
|
252
|
-
readonly vendor:
|
|
253
|
-
readonly label:
|
|
254
|
-
readonly hint:
|
|
255
|
-
readonly docsSlug:
|
|
256
|
-
readonly packageSubpath:
|
|
257
|
-
readonly integrationCategory:
|
|
258
|
-
readonly consentCategory:
|
|
259
|
-
}, {
|
|
260
|
-
readonly key:
|
|
261
|
-
readonly vendor:
|
|
262
|
-
readonly label:
|
|
263
|
-
readonly hint:
|
|
264
|
-
readonly docsSlug:
|
|
265
|
-
readonly packageSubpath:
|
|
266
|
-
readonly integrationCategory:
|
|
267
|
-
readonly consentCategory:
|
|
268
|
-
}, {
|
|
269
|
-
readonly key:
|
|
270
|
-
readonly vendor:
|
|
271
|
-
readonly label:
|
|
272
|
-
readonly hint:
|
|
273
|
-
readonly docsSlug:
|
|
274
|
-
readonly packageSubpath:
|
|
275
|
-
readonly integrationCategory:
|
|
276
|
-
readonly consentCategory:
|
|
277
|
-
}, {
|
|
278
|
-
readonly key:
|
|
279
|
-
readonly vendor:
|
|
280
|
-
readonly label:
|
|
281
|
-
readonly hint:
|
|
282
|
-
readonly docsSlug:
|
|
283
|
-
readonly packageSubpath:
|
|
284
|
-
readonly integrationCategory:
|
|
285
|
-
readonly consentCategory:
|
|
286
|
-
}, {
|
|
287
|
-
readonly key:
|
|
288
|
-
readonly vendor:
|
|
289
|
-
readonly label:
|
|
290
|
-
readonly hint:
|
|
291
|
-
readonly docsSlug:
|
|
292
|
-
readonly packageSubpath:
|
|
293
|
-
readonly integrationCategory:
|
|
294
|
-
readonly consentCategory:
|
|
295
|
-
}, {
|
|
296
|
-
readonly key:
|
|
297
|
-
readonly vendor:
|
|
298
|
-
readonly label:
|
|
299
|
-
readonly hint:
|
|
300
|
-
readonly docsSlug:
|
|
301
|
-
readonly packageSubpath:
|
|
302
|
-
readonly integrationCategory:
|
|
303
|
-
readonly consentCategory:
|
|
304
|
-
}, {
|
|
305
|
-
readonly key:
|
|
306
|
-
readonly vendor:
|
|
307
|
-
readonly label:
|
|
308
|
-
readonly hint:
|
|
309
|
-
readonly docsSlug:
|
|
310
|
-
readonly packageSubpath:
|
|
311
|
-
readonly integrationCategory:
|
|
312
|
-
readonly consentCategory:
|
|
80
|
+
readonly key: 'googleTagManager';
|
|
81
|
+
readonly vendor: 'google-tag-manager';
|
|
82
|
+
readonly label: 'Google Tag Manager';
|
|
83
|
+
readonly hint: 'GTM container script';
|
|
84
|
+
readonly docsSlug: 'google-tag-manager';
|
|
85
|
+
readonly packageSubpath: 'google-tag-manager';
|
|
86
|
+
readonly integrationCategory: 'tag-manager';
|
|
87
|
+
readonly consentCategory: 'necessary';
|
|
88
|
+
}, {
|
|
89
|
+
readonly key: 'gtag';
|
|
90
|
+
readonly vendor: 'gtag';
|
|
91
|
+
readonly label: 'Google Tag (gtag.js)';
|
|
92
|
+
readonly hint: 'Google Analytics 4';
|
|
93
|
+
readonly docsSlug: 'google-tag';
|
|
94
|
+
readonly packageSubpath: 'google-tag';
|
|
95
|
+
readonly integrationCategory: 'analytics';
|
|
96
|
+
readonly consentCategory: 'measurement';
|
|
97
|
+
}, {
|
|
98
|
+
readonly key: 'ahrefsAnalytics';
|
|
99
|
+
readonly vendor: 'ahrefs-analytics';
|
|
100
|
+
readonly label: 'Ahrefs Analytics';
|
|
101
|
+
readonly hint: 'Cookieless web analytics from Ahrefs';
|
|
102
|
+
readonly docsSlug: 'ahrefs-analytics';
|
|
103
|
+
readonly packageSubpath: 'ahrefs-analytics';
|
|
104
|
+
readonly integrationCategory: 'analytics';
|
|
105
|
+
readonly consentCategory: 'measurement';
|
|
106
|
+
}, {
|
|
107
|
+
readonly key: 'adobeAnalytics';
|
|
108
|
+
readonly vendor: 'adobe-analytics';
|
|
109
|
+
readonly label: 'Adobe Analytics';
|
|
110
|
+
readonly hint: 'Adobe Experience Platform tags';
|
|
111
|
+
readonly docsSlug: 'adobe-analytics';
|
|
112
|
+
readonly packageSubpath: 'adobe-analytics';
|
|
113
|
+
readonly integrationCategory: 'analytics';
|
|
114
|
+
readonly consentCategory: 'measurement';
|
|
115
|
+
}, {
|
|
116
|
+
readonly key: 'amplitude';
|
|
117
|
+
readonly vendor: 'amplitude';
|
|
118
|
+
readonly label: 'Amplitude';
|
|
119
|
+
readonly hint: 'Product analytics';
|
|
120
|
+
readonly docsSlug: 'amplitude';
|
|
121
|
+
readonly packageSubpath: 'amplitude';
|
|
122
|
+
readonly integrationCategory: 'analytics';
|
|
123
|
+
readonly consentCategory: 'measurement';
|
|
124
|
+
}, {
|
|
125
|
+
readonly key: 'cloudflareWebAnalytics';
|
|
126
|
+
readonly vendor: 'cloudflare-web-analytics';
|
|
127
|
+
readonly label: 'Cloudflare Web Analytics';
|
|
128
|
+
readonly hint: 'Cookieless analytics from Cloudflare';
|
|
129
|
+
readonly docsSlug: 'cloudflare-web-analytics';
|
|
130
|
+
readonly packageSubpath: 'cloudflare-web-analytics';
|
|
131
|
+
readonly integrationCategory: 'analytics';
|
|
132
|
+
readonly consentCategory: 'measurement';
|
|
133
|
+
}, {
|
|
134
|
+
readonly key: 'clearbit';
|
|
135
|
+
readonly vendor: 'clearbit';
|
|
136
|
+
readonly label: 'Clearbit';
|
|
137
|
+
readonly hint: 'Visitor and company enrichment';
|
|
138
|
+
readonly docsSlug: 'clearbit';
|
|
139
|
+
readonly packageSubpath: 'clearbit';
|
|
140
|
+
readonly integrationCategory: 'analytics';
|
|
141
|
+
readonly consentCategory: 'marketing';
|
|
142
|
+
}, {
|
|
143
|
+
readonly key: 'microsoft-clarity';
|
|
144
|
+
readonly vendor: 'microsoft-clarity';
|
|
145
|
+
readonly label: 'Microsoft Clarity';
|
|
146
|
+
readonly hint: 'Session replay and heatmaps';
|
|
147
|
+
readonly docsSlug: 'microsoft-clarity';
|
|
148
|
+
readonly packageSubpath: 'microsoft-clarity';
|
|
149
|
+
readonly integrationCategory: 'analytics';
|
|
150
|
+
readonly consentCategory: 'measurement';
|
|
151
|
+
}, {
|
|
152
|
+
readonly key: 'databuddy';
|
|
153
|
+
readonly vendor: 'databuddy';
|
|
154
|
+
readonly label: 'Databuddy';
|
|
155
|
+
readonly hint: 'Data collection';
|
|
156
|
+
readonly docsSlug: 'databuddy';
|
|
157
|
+
readonly packageSubpath: 'databuddy';
|
|
158
|
+
readonly integrationCategory: 'analytics';
|
|
159
|
+
readonly consentCategory: 'measurement';
|
|
160
|
+
}, {
|
|
161
|
+
readonly key: 'fathomAnalytics';
|
|
162
|
+
readonly vendor: 'fathom-analytics';
|
|
163
|
+
readonly label: 'Fathom Analytics';
|
|
164
|
+
readonly hint: 'Privacy-friendly cookieless analytics';
|
|
165
|
+
readonly docsSlug: 'fathom-analytics';
|
|
166
|
+
readonly packageSubpath: 'fathom-analytics';
|
|
167
|
+
readonly integrationCategory: 'analytics';
|
|
168
|
+
readonly consentCategory: 'measurement';
|
|
169
|
+
}, {
|
|
170
|
+
readonly key: 'heap';
|
|
171
|
+
readonly vendor: 'heap';
|
|
172
|
+
readonly label: 'Heap';
|
|
173
|
+
readonly hint: 'Autocapture product analytics';
|
|
174
|
+
readonly docsSlug: 'heap';
|
|
175
|
+
readonly packageSubpath: 'heap';
|
|
176
|
+
readonly integrationCategory: 'analytics';
|
|
177
|
+
readonly consentCategory: 'measurement';
|
|
178
|
+
}, {
|
|
179
|
+
readonly key: 'mixpanelAnalytics';
|
|
180
|
+
readonly vendor: 'mixpanel-analytics';
|
|
181
|
+
readonly label: 'Mixpanel Analytics';
|
|
182
|
+
readonly hint: 'Product analytics and funnels';
|
|
183
|
+
readonly docsSlug: 'mixpanel-analytics';
|
|
184
|
+
readonly packageSubpath: 'mixpanel-analytics';
|
|
185
|
+
readonly integrationCategory: 'analytics';
|
|
186
|
+
readonly consentCategory: 'measurement';
|
|
187
|
+
}, {
|
|
188
|
+
readonly key: 'hotjar';
|
|
189
|
+
readonly vendor: 'hotjar';
|
|
190
|
+
readonly label: 'Hotjar';
|
|
191
|
+
readonly hint: 'Heatmaps and session recordings';
|
|
192
|
+
readonly docsSlug: 'hotjar';
|
|
193
|
+
readonly packageSubpath: 'hotjar';
|
|
194
|
+
readonly integrationCategory: 'analytics';
|
|
195
|
+
readonly consentCategory: 'measurement';
|
|
196
|
+
}, {
|
|
197
|
+
readonly key: 'hightouch';
|
|
198
|
+
readonly vendor: 'hightouch';
|
|
199
|
+
readonly label: 'Hightouch';
|
|
200
|
+
readonly hint: 'Customer data platform events';
|
|
201
|
+
readonly docsSlug: 'hightouch';
|
|
202
|
+
readonly packageSubpath: 'hightouch';
|
|
203
|
+
readonly integrationCategory: 'analytics';
|
|
204
|
+
readonly consentCategory: 'measurement';
|
|
205
|
+
}, {
|
|
206
|
+
readonly key: 'rudderstack';
|
|
207
|
+
readonly vendor: 'rudderstack';
|
|
208
|
+
readonly label: 'RudderStack';
|
|
209
|
+
readonly hint: 'Customer data platform events';
|
|
210
|
+
readonly docsSlug: 'rudderstack';
|
|
211
|
+
readonly packageSubpath: 'rudderstack';
|
|
212
|
+
readonly integrationCategory: 'analytics';
|
|
213
|
+
readonly consentCategory: 'measurement';
|
|
214
|
+
}, {
|
|
215
|
+
readonly key: 'logRocket';
|
|
216
|
+
readonly vendor: 'logrocket';
|
|
217
|
+
readonly label: 'LogRocket';
|
|
218
|
+
readonly hint: 'Session replay and monitoring';
|
|
219
|
+
readonly docsSlug: 'logrocket';
|
|
220
|
+
readonly packageSubpath: 'logrocket';
|
|
221
|
+
readonly integrationCategory: 'analytics';
|
|
222
|
+
readonly consentCategory: 'measurement';
|
|
223
|
+
}, {
|
|
224
|
+
readonly key: 'matomoAnalytics';
|
|
225
|
+
readonly vendor: 'matomo-analytics';
|
|
226
|
+
readonly label: 'Matomo Analytics';
|
|
227
|
+
readonly hint: 'Self-hosted privacy analytics';
|
|
228
|
+
readonly docsSlug: 'matomo-analytics';
|
|
229
|
+
readonly packageSubpath: 'matomo-analytics';
|
|
230
|
+
readonly integrationCategory: 'analytics';
|
|
231
|
+
readonly consentCategory: 'measurement';
|
|
232
|
+
}, {
|
|
233
|
+
readonly key: 'posthog';
|
|
234
|
+
readonly vendor: 'posthog';
|
|
235
|
+
readonly label: 'PostHog';
|
|
236
|
+
readonly hint: 'Product analytics';
|
|
237
|
+
readonly docsSlug: 'posthog';
|
|
238
|
+
readonly packageSubpath: 'posthog';
|
|
239
|
+
readonly integrationCategory: 'analytics';
|
|
240
|
+
readonly consentCategory: 'measurement';
|
|
241
|
+
}, {
|
|
242
|
+
readonly key: 'promptwatch';
|
|
243
|
+
readonly vendor: 'promptwatch';
|
|
244
|
+
readonly label: 'Promptwatch';
|
|
245
|
+
readonly hint: 'AI traffic analytics';
|
|
246
|
+
readonly docsSlug: 'promptwatch';
|
|
247
|
+
readonly packageSubpath: 'promptwatch';
|
|
248
|
+
readonly integrationCategory: 'analytics';
|
|
249
|
+
readonly consentCategory: 'measurement';
|
|
250
|
+
}, {
|
|
251
|
+
readonly key: 'pirsch';
|
|
252
|
+
readonly vendor: 'pirsch';
|
|
253
|
+
readonly label: 'Pirsch';
|
|
254
|
+
readonly hint: 'Privacy-friendly cookieless analytics';
|
|
255
|
+
readonly docsSlug: 'pirsch';
|
|
256
|
+
readonly packageSubpath: 'pirsch';
|
|
257
|
+
readonly integrationCategory: 'analytics';
|
|
258
|
+
readonly consentCategory: 'measurement';
|
|
259
|
+
}, {
|
|
260
|
+
readonly key: 'segment';
|
|
261
|
+
readonly vendor: 'segment';
|
|
262
|
+
readonly label: 'Segment';
|
|
263
|
+
readonly hint: 'Customer data platform';
|
|
264
|
+
readonly docsSlug: 'segment';
|
|
265
|
+
readonly packageSubpath: 'segment';
|
|
266
|
+
readonly integrationCategory: 'analytics';
|
|
267
|
+
readonly consentCategory: 'measurement';
|
|
268
|
+
}, {
|
|
269
|
+
readonly key: 'rybbitAnalytics';
|
|
270
|
+
readonly vendor: 'rybbit-analytics';
|
|
271
|
+
readonly label: 'Rybbit Analytics';
|
|
272
|
+
readonly hint: 'Privacy-friendly web analytics';
|
|
273
|
+
readonly docsSlug: 'rybbit-analytics';
|
|
274
|
+
readonly packageSubpath: 'rybbit-analytics';
|
|
275
|
+
readonly integrationCategory: 'analytics';
|
|
276
|
+
readonly consentCategory: 'measurement';
|
|
277
|
+
}, {
|
|
278
|
+
readonly key: 'plausibleAnalytics';
|
|
279
|
+
readonly vendor: 'plausible-analytics';
|
|
280
|
+
readonly label: 'Plausible Analytics';
|
|
281
|
+
readonly hint: 'Privacy-friendly cookieless analytics';
|
|
282
|
+
readonly docsSlug: 'plausible-analytics';
|
|
283
|
+
readonly packageSubpath: 'plausible-analytics';
|
|
284
|
+
readonly integrationCategory: 'analytics';
|
|
285
|
+
readonly consentCategory: 'measurement';
|
|
286
|
+
}, {
|
|
287
|
+
readonly key: 'umamiAnalytics';
|
|
288
|
+
readonly vendor: 'umami-analytics';
|
|
289
|
+
readonly label: 'Umami Analytics';
|
|
290
|
+
readonly hint: 'Open-source cookieless analytics';
|
|
291
|
+
readonly docsSlug: 'umami-analytics';
|
|
292
|
+
readonly packageSubpath: 'umami-analytics';
|
|
293
|
+
readonly integrationCategory: 'analytics';
|
|
294
|
+
readonly consentCategory: 'measurement';
|
|
295
|
+
}, {
|
|
296
|
+
readonly key: 'vercelAnalytics';
|
|
297
|
+
readonly vendor: 'vercel-analytics';
|
|
298
|
+
readonly label: 'Vercel Analytics';
|
|
299
|
+
readonly hint: 'Vercel web analytics';
|
|
300
|
+
readonly docsSlug: 'vercel-analytics';
|
|
301
|
+
readonly packageSubpath: 'vercel-analytics';
|
|
302
|
+
readonly integrationCategory: 'analytics';
|
|
303
|
+
readonly consentCategory: 'measurement';
|
|
304
|
+
}, {
|
|
305
|
+
readonly key: 'crisp';
|
|
306
|
+
readonly vendor: 'crisp';
|
|
307
|
+
readonly label: 'Crisp';
|
|
308
|
+
readonly hint: 'Live chat widget';
|
|
309
|
+
readonly docsSlug: 'crisp';
|
|
310
|
+
readonly packageSubpath: 'crisp';
|
|
311
|
+
readonly integrationCategory: 'functional';
|
|
312
|
+
readonly consentCategory: 'functionality';
|
|
313
|
+
}, {
|
|
314
|
+
readonly key: 'intercom';
|
|
315
|
+
readonly vendor: 'intercom';
|
|
316
|
+
readonly label: 'Intercom';
|
|
317
|
+
readonly hint: 'Messenger and live chat widget';
|
|
318
|
+
readonly docsSlug: 'intercom';
|
|
319
|
+
readonly packageSubpath: 'intercom';
|
|
320
|
+
readonly integrationCategory: 'functional';
|
|
321
|
+
readonly consentCategory: 'functionality';
|
|
322
|
+
}, {
|
|
323
|
+
readonly key: 'metaPixel';
|
|
324
|
+
readonly vendor: 'meta-pixel';
|
|
325
|
+
readonly label: 'Meta Pixel';
|
|
326
|
+
readonly hint: 'Facebook/Instagram tracking';
|
|
327
|
+
readonly docsSlug: 'meta-pixel';
|
|
328
|
+
readonly packageSubpath: 'meta-pixel';
|
|
329
|
+
readonly integrationCategory: 'ads-and-pixels';
|
|
330
|
+
readonly consentCategory: 'marketing';
|
|
331
|
+
}, {
|
|
332
|
+
readonly key: 'redditPixel';
|
|
333
|
+
readonly vendor: 'reddit-pixel';
|
|
334
|
+
readonly label: 'Reddit Pixel';
|
|
335
|
+
readonly hint: 'Reddit ads tracking';
|
|
336
|
+
readonly docsSlug: 'reddit-pixel';
|
|
337
|
+
readonly packageSubpath: 'reddit-pixel';
|
|
338
|
+
readonly integrationCategory: 'ads-and-pixels';
|
|
339
|
+
readonly consentCategory: 'marketing';
|
|
340
|
+
}, {
|
|
341
|
+
readonly key: 'tiktokPixel';
|
|
342
|
+
readonly vendor: 'tiktok-pixel';
|
|
343
|
+
readonly label: 'TikTok Pixel';
|
|
344
|
+
readonly hint: 'TikTok ads tracking';
|
|
345
|
+
readonly docsSlug: 'tiktok-pixel';
|
|
346
|
+
readonly packageSubpath: 'tiktok-pixel';
|
|
347
|
+
readonly integrationCategory: 'ads-and-pixels';
|
|
348
|
+
readonly consentCategory: 'marketing';
|
|
349
|
+
}, {
|
|
350
|
+
readonly key: 'linkedinInsights';
|
|
351
|
+
readonly vendor: 'linkedin-insights';
|
|
352
|
+
readonly label: 'LinkedIn Insight Tag';
|
|
353
|
+
readonly hint: 'LinkedIn conversion tracking';
|
|
354
|
+
readonly docsSlug: 'linkedin-insights';
|
|
355
|
+
readonly packageSubpath: 'linkedin-insights';
|
|
356
|
+
readonly integrationCategory: 'ads-and-pixels';
|
|
357
|
+
readonly consentCategory: 'marketing';
|
|
358
|
+
}, {
|
|
359
|
+
readonly key: 'microsoftUet';
|
|
360
|
+
readonly vendor: 'microsoft-uet';
|
|
361
|
+
readonly label: 'Microsoft UET';
|
|
362
|
+
readonly hint: 'Bing Ads tracking';
|
|
363
|
+
readonly docsSlug: 'microsoft-uet';
|
|
364
|
+
readonly packageSubpath: 'microsoft-uet';
|
|
365
|
+
readonly integrationCategory: 'ads-and-pixels';
|
|
366
|
+
readonly consentCategory: 'marketing';
|
|
367
|
+
}, {
|
|
368
|
+
readonly key: 'snapchatPixel';
|
|
369
|
+
readonly vendor: 'snapchat-pixel';
|
|
370
|
+
readonly label: 'Snapchat Pixel';
|
|
371
|
+
readonly hint: 'Snapchat ads tracking';
|
|
372
|
+
readonly docsSlug: 'snapchat-pixel';
|
|
373
|
+
readonly packageSubpath: 'snapchat-pixel';
|
|
374
|
+
readonly integrationCategory: 'ads-and-pixels';
|
|
375
|
+
readonly consentCategory: 'marketing';
|
|
376
|
+
}, {
|
|
377
|
+
readonly key: 'xPixel';
|
|
378
|
+
readonly vendor: 'x-pixel';
|
|
379
|
+
readonly label: 'X (Twitter) Pixel';
|
|
380
|
+
readonly hint: 'X/Twitter conversion tracking';
|
|
381
|
+
readonly docsSlug: 'x-pixel';
|
|
382
|
+
readonly packageSubpath: 'x-pixel';
|
|
383
|
+
readonly integrationCategory: 'ads-and-pixels';
|
|
384
|
+
readonly consentCategory: 'marketing';
|
|
313
385
|
}];
|
|
314
386
|
/**
|
|
315
387
|
* Concrete registry entry type inferred from `builtInScriptIntegrations`.
|
package/dist-types/types.d.ts
CHANGED
|
@@ -12,11 +12,11 @@ export interface RuntimeValue {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const runtimeDateValue: {
|
|
14
14
|
readonly kind: "c15t.runtime-value";
|
|
15
|
-
readonly value:
|
|
15
|
+
readonly value: 'date';
|
|
16
16
|
};
|
|
17
17
|
export declare const runtimeTimestampValue: {
|
|
18
18
|
readonly kind: "c15t.runtime-value";
|
|
19
|
-
readonly value:
|
|
19
|
+
readonly value: 'timestamp';
|
|
20
20
|
};
|
|
21
21
|
export interface ManifestContract {
|
|
22
22
|
kind: typeof VENDOR_MANIFEST_KIND;
|
|
@@ -134,6 +134,40 @@ export interface DefineQueueMethodsStep {
|
|
|
134
134
|
global?: never;
|
|
135
135
|
property: string;
|
|
136
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
* Format used for each queued method call.
|
|
139
|
+
*
|
|
140
|
+
* - `tuple` pushes `[methodName, ...args]`, matching classic array queues.
|
|
141
|
+
* - `methodCall` pushes `{ name, args, resolve }` and returns a `Promise`,
|
|
142
|
+
* matching SDK loaders that replay named calls and resolve the original
|
|
143
|
+
* pre-load promise after the real method runs.
|
|
144
|
+
* - `wrappedMethodCall` queues like `methodCall` but returns
|
|
145
|
+
* `{ promise }`, matching Amplitude's snippet contract where queued
|
|
146
|
+
* proxy calls expose the pending promise on a `promise` property.
|
|
147
|
+
* - `voidMethodCall` queues like `methodCall` but returns nothing,
|
|
148
|
+
* matching snippet methods the vendor treats as synchronous.
|
|
149
|
+
* - `callback` pushes `{ name, fn }`, where `fn` replays the captured call
|
|
150
|
+
* against the current global target, matching loaders that own a
|
|
151
|
+
* ready-callback queue.
|
|
152
|
+
*
|
|
153
|
+
* @default 'tuple'
|
|
154
|
+
*/
|
|
155
|
+
queueFormat?: 'tuple' | 'methodCall' | 'wrappedMethodCall' | 'voidMethodCall' | 'callback';
|
|
156
|
+
}
|
|
157
|
+
export interface DefineQueueClassStep {
|
|
158
|
+
type: 'defineQueueClass';
|
|
159
|
+
/** Global object that receives the queued helper class. */
|
|
160
|
+
target: string;
|
|
161
|
+
/** Constructor property name to define on the target object. */
|
|
162
|
+
name: string;
|
|
163
|
+
/**
|
|
164
|
+
* Instance property that stores queued helper method calls.
|
|
165
|
+
*
|
|
166
|
+
* @default '_q'
|
|
167
|
+
*/
|
|
168
|
+
queueProperty?: string;
|
|
169
|
+
/** Helper instance method names to attach to the constructor prototype. */
|
|
170
|
+
methods: string[];
|
|
137
171
|
}
|
|
138
172
|
export type GlobalMethodBehavior = {
|
|
139
173
|
name: string;
|
|
@@ -163,13 +197,17 @@ export interface ConstructGlobalStep {
|
|
|
163
197
|
*/
|
|
164
198
|
copyAssignedValueToArgProperty?: string;
|
|
165
199
|
}
|
|
166
|
-
export type ManifestStep = LoadScriptStep | SetGlobalStep | DefineQueueFunctionStep | DefineStubFunctionStep | CallGlobalStep | PushToQueueStep | SetGlobalPathStep | DefineQueueMethodsStep | DefineGlobalMethodsStep | ConstructGlobalStep;
|
|
200
|
+
export type ManifestStep = LoadScriptStep | SetGlobalStep | DefineQueueFunctionStep | DefineStubFunctionStep | CallGlobalStep | PushToQueueStep | SetGlobalPathStep | DefineQueueMethodsStep | DefineQueueClassStep | DefineGlobalMethodsStep | ConstructGlobalStep;
|
|
167
201
|
/**
|
|
168
202
|
* Consent signal type determines how consent state is communicated to the vendor.
|
|
169
203
|
*
|
|
170
204
|
* - `'gtag'` — Google Consent Mode pattern: calls `gtag('consent', 'default'|'update', state)`
|
|
205
|
+
* - `'rudderstack'` — RudderStack consent-management pattern: calls
|
|
206
|
+
* `rudderanalytics.consent({ consentManagement: { enabled, provider: 'custom',
|
|
207
|
+
* allowedConsentIds, deniedConsentIds } })` with the mapping's consent IDs
|
|
208
|
+
* partitioned by the current c15t consent state
|
|
171
209
|
*/
|
|
172
|
-
export type ConsentSignalType = 'gtag';
|
|
210
|
+
export type ConsentSignalType = 'gtag' | 'rudderstack';
|
|
173
211
|
/**
|
|
174
212
|
* A declarative definition of a vendor integration.
|
|
175
213
|
*
|