@c15t/scripts 2.0.1 → 2.1.0
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/README.md +9 -9
- package/dist/engine/runtime.cjs +11 -0
- package/dist/engine/runtime.js +11 -0
- package/dist/registry.cjs +338 -0
- package/dist/registry.js +292 -0
- package/dist/types.cjs +18 -0
- package/dist/types.js +10 -1
- package/dist/vendors/_shared/attributes.cjs +51 -0
- package/dist/vendors/_shared/attributes.js +14 -0
- package/dist/vendors/_shared/google-consent.cjs +64 -0
- package/dist/vendors/_shared/google-consent.js +27 -0
- package/dist/vendors/_shared/install-builders.cjs +55 -0
- package/dist/vendors/_shared/install-builders.js +21 -0
- package/dist/vendors/_shared/script-url.cjs +74 -0
- package/dist/vendors/_shared/script-url.js +28 -0
- package/dist/{linkedin-insights.cjs → vendors/ads-and-pixels/linkedin-insights.cjs} +2 -2
- package/dist/{linkedin-insights.js → vendors/ads-and-pixels/linkedin-insights.js} +2 -2
- package/dist/vendors/ads-and-pixels/meta-pixel.cjs +202 -0
- package/dist/vendors/ads-and-pixels/meta-pixel.js +153 -0
- package/dist/{microsoft-uet.cjs → vendors/ads-and-pixels/microsoft-uet.cjs} +31 -14
- package/dist/{microsoft-uet.js → vendors/ads-and-pixels/microsoft-uet.js} +31 -14
- package/dist/vendors/ads-and-pixels/reddit-pixel.cjs +147 -0
- package/dist/vendors/ads-and-pixels/reddit-pixel.js +107 -0
- package/dist/vendors/ads-and-pixels/snapchat-pixel.cjs +127 -0
- package/dist/vendors/ads-and-pixels/snapchat-pixel.js +87 -0
- package/dist/{tiktok-pixel.cjs → vendors/ads-and-pixels/tiktok-pixel.cjs} +2 -2
- package/dist/{tiktok-pixel.js → vendors/ads-and-pixels/tiktok-pixel.js} +2 -2
- package/dist/{x-pixel.cjs → vendors/ads-and-pixels/x-pixel.cjs} +6 -3
- package/dist/{x-pixel.js → vendors/ads-and-pixels/x-pixel.js} +6 -3
- package/dist/vendors/analytics/ahrefs-analytics.cjs +64 -0
- package/dist/vendors/analytics/ahrefs-analytics.js +27 -0
- package/dist/vendors/analytics/cloudflare-web-analytics.cjs +69 -0
- package/dist/vendors/analytics/cloudflare-web-analytics.js +32 -0
- package/dist/{databuddy.cjs → vendors/analytics/databuddy.cjs} +3 -3
- package/dist/{databuddy.js → vendors/analytics/databuddy.js} +3 -3
- package/dist/vendors/analytics/fathom-analytics.cjs +72 -0
- package/dist/vendors/analytics/fathom-analytics.js +35 -0
- package/dist/{google-tag.cjs → vendors/analytics/google-tag.cjs} +7 -28
- package/dist/{google-tag.js → vendors/analytics/google-tag.js} +7 -28
- package/dist/vendors/analytics/hotjar.cjs +81 -0
- package/dist/vendors/analytics/hotjar.js +44 -0
- package/dist/vendors/analytics/matomo-analytics.cjs +228 -0
- package/dist/vendors/analytics/matomo-analytics.js +191 -0
- package/dist/vendors/analytics/microsoft-clarity.cjs +110 -0
- package/dist/vendors/analytics/microsoft-clarity.js +73 -0
- package/dist/vendors/analytics/mixpanel-analytics.cjs +119 -0
- package/dist/vendors/analytics/mixpanel-analytics.js +82 -0
- package/dist/vendors/analytics/plausible-analytics.cjs +118 -0
- package/dist/vendors/analytics/plausible-analytics.js +81 -0
- package/dist/{posthog.cjs → vendors/analytics/posthog.cjs} +69 -6
- package/dist/vendors/analytics/posthog.js +163 -0
- package/dist/vendors/analytics/promptwatch.cjs +66 -0
- package/dist/vendors/analytics/promptwatch.js +29 -0
- package/dist/vendors/analytics/rybbit-analytics.cjs +100 -0
- package/dist/vendors/analytics/rybbit-analytics.js +63 -0
- package/dist/vendors/analytics/segment.cjs +93 -0
- package/dist/vendors/analytics/segment.js +56 -0
- package/dist/vendors/analytics/umami-analytics.cjs +76 -0
- package/dist/vendors/analytics/umami-analytics.js +39 -0
- package/dist/vendors/analytics/vercel-analytics.cjs +90 -0
- package/dist/vendors/analytics/vercel-analytics.js +53 -0
- package/dist/vendors/functional/crisp.cjs +139 -0
- package/dist/vendors/functional/crisp.js +102 -0
- package/dist/vendors/functional/intercom.cjs +85 -0
- package/dist/vendors/functional/intercom.js +45 -0
- package/dist/{google-tag-manager.cjs → vendors/tag-managers/google-tag-manager.cjs} +6 -27
- package/dist/{google-tag-manager.js → vendors/tag-managers/google-tag-manager.js} +6 -27
- package/dist-types/__tests__/helpers.d.ts +141 -0
- package/dist-types/engine/runtime.d.ts +1 -1
- package/dist-types/registry.d.ts +368 -0
- package/dist-types/types.d.ts +13 -0
- package/dist-types/vendors/_shared/attributes.d.ts +35 -0
- package/dist-types/vendors/_shared/google-consent.d.ts +47 -0
- package/dist-types/vendors/_shared/install-builders.d.ts +30 -0
- package/dist-types/vendors/_shared/script-url.d.ts +75 -0
- package/dist-types/{linkedin-insights.d.ts → vendors/ads-and-pixels/linkedin-insights.d.ts} +22 -9
- package/dist-types/vendors/ads-and-pixels/meta-pixel.d.ts +289 -0
- package/dist-types/{microsoft-uet.d.ts → vendors/ads-and-pixels/microsoft-uet.d.ts} +21 -10
- package/dist-types/vendors/ads-and-pixels/reddit-pixel.d.ts +211 -0
- package/dist-types/vendors/ads-and-pixels/snapchat-pixel.d.ts +171 -0
- package/dist-types/{tiktok-pixel.d.ts → vendors/ads-and-pixels/tiktok-pixel.d.ts} +20 -5
- package/dist-types/{x-pixel.d.ts → vendors/ads-and-pixels/x-pixel.d.ts} +21 -4
- package/dist-types/vendors/analytics/ahrefs-analytics.d.ts +62 -0
- package/dist-types/vendors/analytics/cloudflare-web-analytics.d.ts +67 -0
- package/dist-types/vendors/analytics/fathom-analytics.d.ts +90 -0
- package/dist-types/{google-tag.d.ts → vendors/analytics/google-tag.d.ts} +5 -8
- package/dist-types/vendors/analytics/hotjar.d.ts +73 -0
- package/dist-types/vendors/analytics/matomo-analytics.d.ts +41 -0
- package/dist-types/vendors/analytics/microsoft-clarity.d.ts +86 -0
- package/dist-types/vendors/analytics/mixpanel-analytics.d.ts +101 -0
- package/dist-types/vendors/analytics/plausible-analytics.d.ts +122 -0
- package/dist-types/{posthog.d.ts → vendors/analytics/posthog.d.ts} +47 -5
- package/dist-types/vendors/analytics/promptwatch.d.ts +36 -0
- package/dist-types/vendors/analytics/rybbit-analytics.d.ts +82 -0
- package/dist-types/vendors/analytics/segment.d.ts +158 -0
- package/dist-types/vendors/analytics/umami-analytics.d.ts +93 -0
- package/dist-types/vendors/analytics/vercel-analytics.d.ts +66 -0
- package/dist-types/vendors/functional/crisp.d.ts +78 -0
- package/dist-types/vendors/functional/intercom.d.ts +135 -0
- package/dist-types/{google-tag-manager.d.ts → vendors/tag-managers/google-tag-manager.d.ts} +5 -8
- package/package.json +165 -4
- package/dist/meta-pixel.cjs +0 -129
- package/dist/meta-pixel.js +0 -89
- package/dist/posthog.js +0 -100
- package/dist-types/meta-pixel.d.ts +0 -185
- /package/dist-types/{databuddy.d.ts → vendors/analytics/databuddy.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://c15t.com?utm_source=
|
|
2
|
+
<a href="https://c15t.com?utm_source=npm&utm_medium=readme&utm_campaign=oss_readme&utm_content=%40c15t%2Fscripts" target="_blank" rel="noopener noreferrer">
|
|
3
3
|
<picture>
|
|
4
4
|
<source media="(prefers-color-scheme: dark)" srcset="../../docs/assets/c15t-banner-readme-dark.svg" type="image/svg+xml">
|
|
5
5
|
<img src="../../docs/assets/c15t-banner-readme-light.svg" alt="c15t Banner" type="image/svg+xml">
|
|
6
6
|
</picture>
|
|
7
7
|
</a>
|
|
8
|
-
<br />
|
|
9
|
-
<h1 align="center">@c15t/scripts: Prebuilt Consent Scripts</h1>
|
|
10
8
|
</p>
|
|
11
9
|
|
|
10
|
+
# @c15t/scripts: Prebuilt Consent Scripts
|
|
11
|
+
|
|
12
12
|
[](https://github.com/c15t/c15t)
|
|
13
13
|
[](https://github.com/c15t/c15t/actions/workflows/ci.yml)
|
|
14
14
|
[](https://github.com/c15t/c15t/blob/main/LICENSE.md)
|
|
@@ -46,24 +46,24 @@ For further information, guides, and examples visit the [reference documentation
|
|
|
46
46
|
|
|
47
47
|
- Join our [Discord community](https://c15t.link/discord)
|
|
48
48
|
- Open an issue on our [GitHub repository](https://github.com/c15t/c15t/issues)
|
|
49
|
-
- Visit [
|
|
50
|
-
- Contact our support team via email [support@
|
|
49
|
+
- Visit [inth.com](https://inth.com) and use the chat widget
|
|
50
|
+
- Contact our support team via email [support@inth.com](mailto:support@inth.com)
|
|
51
51
|
|
|
52
52
|
## Contributing
|
|
53
53
|
|
|
54
|
-
- We're open to all community contributions
|
|
54
|
+
- We're open to all community contributions.
|
|
55
55
|
- Read our [Contribution Guidelines](https://c15t.com/docs/oss/contributing)
|
|
56
56
|
- Review our [Code of Conduct](https://c15t.com/docs/oss/code-of-conduct)
|
|
57
57
|
- Fork the repository
|
|
58
58
|
- Create a new branch for your feature
|
|
59
59
|
- Submit a pull request
|
|
60
|
-
- **All contributions, big or small, are welcome and appreciated
|
|
60
|
+
- **All contributions, big or small, are welcome and appreciated.**
|
|
61
61
|
|
|
62
62
|
## Security
|
|
63
63
|
|
|
64
64
|
If you believe you have found a security vulnerability in c15t, we encourage you to **_responsibly disclose this and NOT open a public issue_**. We will investigate all legitimate reports.
|
|
65
65
|
|
|
66
|
-
Our preference is that you make use of GitHub's private vulnerability reporting feature to disclose potential security vulnerabilities in our
|
|
66
|
+
Our preference is that you make use of GitHub's private vulnerability reporting feature to disclose potential security vulnerabilities in our open-source software. To do this, please visit [https://github.com/c15t/c15t/security](https://github.com/c15t/c15t/security) and click the "Report a vulnerability" button.
|
|
67
67
|
|
|
68
68
|
### Security Policy
|
|
69
69
|
|
|
@@ -78,4 +78,4 @@ Our preference is that you make use of GitHub's private vulnerability reporting
|
|
|
78
78
|
|
|
79
79
|
---
|
|
80
80
|
|
|
81
|
-
**Built by [Inth](https://inth.com?utm_source=
|
|
81
|
+
**Built by [Inth](https://inth.com?utm_source=npm&utm_medium=readme&utm_campaign=oss_readme&utm_content=%40c15t%2Fscripts)**
|
package/dist/engine/runtime.cjs
CHANGED
|
@@ -27,7 +27,18 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
resolvedManifestToScript: ()=>resolvedManifestToScript
|
|
28
28
|
});
|
|
29
29
|
const external_c15t_namespaceObject = require("c15t");
|
|
30
|
+
const external_types_cjs_namespaceObject = require("../types.cjs");
|
|
31
|
+
function isRuntimeValue(value) {
|
|
32
|
+
if (null === value || 'object' != typeof value || Array.isArray(value)) return false;
|
|
33
|
+
const candidate = value;
|
|
34
|
+
return candidate.kind === external_types_cjs_namespaceObject.RUNTIME_VALUE_KIND && ('date' === candidate.value || 'timestamp' === candidate.value);
|
|
35
|
+
}
|
|
36
|
+
function resolveRuntimeValue(value) {
|
|
37
|
+
if ('date' === value.value) return new Date();
|
|
38
|
+
return Date.now();
|
|
39
|
+
}
|
|
30
40
|
function cloneStepValue(value) {
|
|
41
|
+
if (isRuntimeValue(value)) return resolveRuntimeValue(value);
|
|
31
42
|
if (value instanceof Date) return new Date(value);
|
|
32
43
|
if (Array.isArray(value)) return value.map((item)=>cloneStepValue(item));
|
|
33
44
|
if (null !== value && 'object' == typeof value) return Object.fromEntries(Object.entries(value).map(([key, nestedValue])=>[
|
package/dist/engine/runtime.js
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { emitScriptDebugEvent } from "c15t";
|
|
2
|
+
import { RUNTIME_VALUE_KIND } from "../types.js";
|
|
3
|
+
function isRuntimeValue(value) {
|
|
4
|
+
if (null === value || 'object' != typeof value || Array.isArray(value)) return false;
|
|
5
|
+
const candidate = value;
|
|
6
|
+
return candidate.kind === RUNTIME_VALUE_KIND && ('date' === candidate.value || 'timestamp' === candidate.value);
|
|
7
|
+
}
|
|
8
|
+
function resolveRuntimeValue(value) {
|
|
9
|
+
if ('date' === value.value) return new Date();
|
|
10
|
+
return Date.now();
|
|
11
|
+
}
|
|
2
12
|
function cloneStepValue(value) {
|
|
13
|
+
if (isRuntimeValue(value)) return resolveRuntimeValue(value);
|
|
3
14
|
if (value instanceof Date) return new Date(value);
|
|
4
15
|
if (Array.isArray(value)) return value.map((item)=>cloneStepValue(item));
|
|
5
16
|
if (null !== value && 'object' == typeof value) return Object.fromEntries(Object.entries(value).map(([key, nestedValue])=>[
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
BUILT_IN_INTEGRATION_CATEGORIES: ()=>BUILT_IN_INTEGRATION_CATEGORIES,
|
|
28
|
+
builtInScriptIntegrations: ()=>builtInScriptIntegrations,
|
|
29
|
+
getBuiltInScriptIntegration: ()=>getBuiltInScriptIntegration,
|
|
30
|
+
getBuiltInScriptIntegrationBySubpath: ()=>getBuiltInScriptIntegrationBySubpath,
|
|
31
|
+
getBuiltInScriptIntegrationByVendor: ()=>getBuiltInScriptIntegrationByVendor
|
|
32
|
+
});
|
|
33
|
+
const BUILT_IN_INTEGRATION_CATEGORIES = [
|
|
34
|
+
{
|
|
35
|
+
key: 'analytics',
|
|
36
|
+
label: 'Analytics'
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
key: 'ads-and-pixels',
|
|
40
|
+
label: 'Ads & Pixels'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
key: 'functional',
|
|
44
|
+
label: 'Functional'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
key: 'tag-manager',
|
|
48
|
+
label: 'Tag Managers'
|
|
49
|
+
}
|
|
50
|
+
];
|
|
51
|
+
const builtInScriptIntegrations = [
|
|
52
|
+
{
|
|
53
|
+
key: 'googleTagManager',
|
|
54
|
+
vendor: 'google-tag-manager',
|
|
55
|
+
label: 'Google Tag Manager',
|
|
56
|
+
hint: "GTM container script",
|
|
57
|
+
docsSlug: 'google-tag-manager',
|
|
58
|
+
packageSubpath: 'google-tag-manager',
|
|
59
|
+
integrationCategory: 'tag-manager',
|
|
60
|
+
consentCategory: 'necessary'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
key: 'gtag',
|
|
64
|
+
vendor: 'gtag',
|
|
65
|
+
label: 'Google Tag (gtag.js)',
|
|
66
|
+
hint: 'Google Analytics 4',
|
|
67
|
+
docsSlug: 'google-tag',
|
|
68
|
+
packageSubpath: 'google-tag',
|
|
69
|
+
integrationCategory: 'analytics',
|
|
70
|
+
consentCategory: 'measurement'
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
key: 'ahrefsAnalytics',
|
|
74
|
+
vendor: 'ahrefs-analytics',
|
|
75
|
+
label: 'Ahrefs Analytics',
|
|
76
|
+
hint: 'Cookieless web analytics from Ahrefs',
|
|
77
|
+
docsSlug: 'ahrefs-analytics',
|
|
78
|
+
packageSubpath: 'ahrefs-analytics',
|
|
79
|
+
integrationCategory: 'analytics',
|
|
80
|
+
consentCategory: 'measurement'
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
key: 'cloudflareWebAnalytics',
|
|
84
|
+
vendor: 'cloudflare-web-analytics',
|
|
85
|
+
label: 'Cloudflare Web Analytics',
|
|
86
|
+
hint: 'Cookieless analytics from Cloudflare',
|
|
87
|
+
docsSlug: 'cloudflare-web-analytics',
|
|
88
|
+
packageSubpath: 'cloudflare-web-analytics',
|
|
89
|
+
integrationCategory: 'analytics',
|
|
90
|
+
consentCategory: 'measurement'
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
key: 'microsoft-clarity',
|
|
94
|
+
vendor: 'microsoft-clarity',
|
|
95
|
+
label: 'Microsoft Clarity',
|
|
96
|
+
hint: 'Session replay and heatmaps',
|
|
97
|
+
docsSlug: 'microsoft-clarity',
|
|
98
|
+
packageSubpath: 'microsoft-clarity',
|
|
99
|
+
integrationCategory: 'analytics',
|
|
100
|
+
consentCategory: 'measurement'
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
key: 'databuddy',
|
|
104
|
+
vendor: 'databuddy',
|
|
105
|
+
label: 'Databuddy',
|
|
106
|
+
hint: 'Data collection',
|
|
107
|
+
docsSlug: 'databuddy',
|
|
108
|
+
packageSubpath: 'databuddy',
|
|
109
|
+
integrationCategory: 'analytics',
|
|
110
|
+
consentCategory: 'measurement'
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
key: 'fathomAnalytics',
|
|
114
|
+
vendor: 'fathom-analytics',
|
|
115
|
+
label: 'Fathom Analytics',
|
|
116
|
+
hint: 'Privacy-friendly cookieless analytics',
|
|
117
|
+
docsSlug: 'fathom-analytics',
|
|
118
|
+
packageSubpath: 'fathom-analytics',
|
|
119
|
+
integrationCategory: 'analytics',
|
|
120
|
+
consentCategory: 'measurement'
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
key: 'mixpanelAnalytics',
|
|
124
|
+
vendor: 'mixpanel-analytics',
|
|
125
|
+
label: 'Mixpanel Analytics',
|
|
126
|
+
hint: 'Product analytics and funnels',
|
|
127
|
+
docsSlug: 'mixpanel-analytics',
|
|
128
|
+
packageSubpath: 'mixpanel-analytics',
|
|
129
|
+
integrationCategory: 'analytics',
|
|
130
|
+
consentCategory: 'measurement'
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
key: 'hotjar',
|
|
134
|
+
vendor: 'hotjar',
|
|
135
|
+
label: 'Hotjar',
|
|
136
|
+
hint: 'Heatmaps and session recordings',
|
|
137
|
+
docsSlug: 'hotjar',
|
|
138
|
+
packageSubpath: 'hotjar',
|
|
139
|
+
integrationCategory: 'analytics',
|
|
140
|
+
consentCategory: 'measurement'
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
key: 'matomoAnalytics',
|
|
144
|
+
vendor: 'matomo-analytics',
|
|
145
|
+
label: 'Matomo Analytics',
|
|
146
|
+
hint: 'Self-hosted privacy analytics',
|
|
147
|
+
docsSlug: 'matomo-analytics',
|
|
148
|
+
packageSubpath: 'matomo-analytics',
|
|
149
|
+
integrationCategory: 'analytics',
|
|
150
|
+
consentCategory: 'measurement'
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
key: 'posthog',
|
|
154
|
+
vendor: 'posthog',
|
|
155
|
+
label: 'PostHog',
|
|
156
|
+
hint: 'Product analytics',
|
|
157
|
+
docsSlug: 'posthog',
|
|
158
|
+
packageSubpath: 'posthog',
|
|
159
|
+
integrationCategory: 'analytics',
|
|
160
|
+
consentCategory: 'measurement'
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
key: 'promptwatch',
|
|
164
|
+
vendor: 'promptwatch',
|
|
165
|
+
label: 'Promptwatch',
|
|
166
|
+
hint: 'AI traffic analytics',
|
|
167
|
+
docsSlug: 'promptwatch',
|
|
168
|
+
packageSubpath: 'promptwatch',
|
|
169
|
+
integrationCategory: 'analytics',
|
|
170
|
+
consentCategory: 'measurement'
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
key: 'segment',
|
|
174
|
+
vendor: 'segment',
|
|
175
|
+
label: 'Segment',
|
|
176
|
+
hint: 'Customer data platform',
|
|
177
|
+
docsSlug: 'segment',
|
|
178
|
+
packageSubpath: 'segment',
|
|
179
|
+
integrationCategory: 'analytics',
|
|
180
|
+
consentCategory: 'measurement'
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
key: 'rybbitAnalytics',
|
|
184
|
+
vendor: 'rybbit-analytics',
|
|
185
|
+
label: 'Rybbit Analytics',
|
|
186
|
+
hint: 'Privacy-friendly web analytics',
|
|
187
|
+
docsSlug: 'rybbit-analytics',
|
|
188
|
+
packageSubpath: 'rybbit-analytics',
|
|
189
|
+
integrationCategory: 'analytics',
|
|
190
|
+
consentCategory: 'measurement'
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
key: 'plausibleAnalytics',
|
|
194
|
+
vendor: 'plausible-analytics',
|
|
195
|
+
label: 'Plausible Analytics',
|
|
196
|
+
hint: 'Privacy-friendly cookieless analytics',
|
|
197
|
+
docsSlug: 'plausible-analytics',
|
|
198
|
+
packageSubpath: 'plausible-analytics',
|
|
199
|
+
integrationCategory: 'analytics',
|
|
200
|
+
consentCategory: 'measurement'
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
key: 'umamiAnalytics',
|
|
204
|
+
vendor: 'umami-analytics',
|
|
205
|
+
label: 'Umami Analytics',
|
|
206
|
+
hint: 'Open-source cookieless analytics',
|
|
207
|
+
docsSlug: 'umami-analytics',
|
|
208
|
+
packageSubpath: 'umami-analytics',
|
|
209
|
+
integrationCategory: 'analytics',
|
|
210
|
+
consentCategory: 'measurement'
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
key: 'vercelAnalytics',
|
|
214
|
+
vendor: 'vercel-analytics',
|
|
215
|
+
label: 'Vercel Analytics',
|
|
216
|
+
hint: 'Vercel web analytics',
|
|
217
|
+
docsSlug: 'vercel-analytics',
|
|
218
|
+
packageSubpath: 'vercel-analytics',
|
|
219
|
+
integrationCategory: 'analytics',
|
|
220
|
+
consentCategory: 'measurement'
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
key: 'crisp',
|
|
224
|
+
vendor: 'crisp',
|
|
225
|
+
label: 'Crisp',
|
|
226
|
+
hint: 'Live chat widget',
|
|
227
|
+
docsSlug: 'crisp',
|
|
228
|
+
packageSubpath: 'crisp',
|
|
229
|
+
integrationCategory: 'functional',
|
|
230
|
+
consentCategory: 'functionality'
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
key: 'intercom',
|
|
234
|
+
vendor: 'intercom',
|
|
235
|
+
label: 'Intercom',
|
|
236
|
+
hint: 'Messenger and live chat widget',
|
|
237
|
+
docsSlug: 'intercom',
|
|
238
|
+
packageSubpath: 'intercom',
|
|
239
|
+
integrationCategory: 'functional',
|
|
240
|
+
consentCategory: 'functionality'
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
key: 'metaPixel',
|
|
244
|
+
vendor: 'meta-pixel',
|
|
245
|
+
label: 'Meta Pixel',
|
|
246
|
+
hint: 'Facebook/Instagram tracking',
|
|
247
|
+
docsSlug: 'meta-pixel',
|
|
248
|
+
packageSubpath: 'meta-pixel',
|
|
249
|
+
integrationCategory: 'ads-and-pixels',
|
|
250
|
+
consentCategory: 'marketing'
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
key: 'redditPixel',
|
|
254
|
+
vendor: 'reddit-pixel',
|
|
255
|
+
label: 'Reddit Pixel',
|
|
256
|
+
hint: 'Reddit ads tracking',
|
|
257
|
+
docsSlug: 'reddit-pixel',
|
|
258
|
+
packageSubpath: 'reddit-pixel',
|
|
259
|
+
integrationCategory: 'ads-and-pixels',
|
|
260
|
+
consentCategory: 'marketing'
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
key: 'tiktokPixel',
|
|
264
|
+
vendor: 'tiktok-pixel',
|
|
265
|
+
label: 'TikTok Pixel',
|
|
266
|
+
hint: 'TikTok ads tracking',
|
|
267
|
+
docsSlug: 'tiktok-pixel',
|
|
268
|
+
packageSubpath: 'tiktok-pixel',
|
|
269
|
+
integrationCategory: 'ads-and-pixels',
|
|
270
|
+
consentCategory: 'marketing'
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
key: 'linkedinInsights',
|
|
274
|
+
vendor: 'linkedin-insights',
|
|
275
|
+
label: 'LinkedIn Insight Tag',
|
|
276
|
+
hint: 'LinkedIn conversion tracking',
|
|
277
|
+
docsSlug: 'linkedin-insights',
|
|
278
|
+
packageSubpath: 'linkedin-insights',
|
|
279
|
+
integrationCategory: 'ads-and-pixels',
|
|
280
|
+
consentCategory: 'marketing'
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
key: 'microsoftUet',
|
|
284
|
+
vendor: 'microsoft-uet',
|
|
285
|
+
label: 'Microsoft UET',
|
|
286
|
+
hint: 'Bing Ads tracking',
|
|
287
|
+
docsSlug: 'microsoft-uet',
|
|
288
|
+
packageSubpath: 'microsoft-uet',
|
|
289
|
+
integrationCategory: 'ads-and-pixels',
|
|
290
|
+
consentCategory: 'marketing'
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
key: 'snapchatPixel',
|
|
294
|
+
vendor: 'snapchat-pixel',
|
|
295
|
+
label: 'Snapchat Pixel',
|
|
296
|
+
hint: 'Snapchat ads tracking',
|
|
297
|
+
docsSlug: 'snapchat-pixel',
|
|
298
|
+
packageSubpath: 'snapchat-pixel',
|
|
299
|
+
integrationCategory: 'ads-and-pixels',
|
|
300
|
+
consentCategory: 'marketing'
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
key: 'xPixel',
|
|
304
|
+
vendor: 'x-pixel',
|
|
305
|
+
label: 'X (Twitter) Pixel',
|
|
306
|
+
hint: 'X/Twitter conversion tracking',
|
|
307
|
+
docsSlug: 'x-pixel',
|
|
308
|
+
packageSubpath: 'x-pixel',
|
|
309
|
+
integrationCategory: 'ads-and-pixels',
|
|
310
|
+
consentCategory: 'marketing'
|
|
311
|
+
}
|
|
312
|
+
];
|
|
313
|
+
function getBuiltInScriptIntegration(key) {
|
|
314
|
+
const integration = builtInScriptIntegrations.find((item)=>item.key === key);
|
|
315
|
+
if (integration) return integration;
|
|
316
|
+
throw new Error(`Unknown built-in script integration: ${key}`);
|
|
317
|
+
}
|
|
318
|
+
function getBuiltInScriptIntegrationBySubpath(subpath) {
|
|
319
|
+
return builtInScriptIntegrations.find((integration)=>integration.packageSubpath === subpath);
|
|
320
|
+
}
|
|
321
|
+
function getBuiltInScriptIntegrationByVendor(vendor) {
|
|
322
|
+
return builtInScriptIntegrations.find((integration)=>integration.vendor === vendor);
|
|
323
|
+
}
|
|
324
|
+
exports.BUILT_IN_INTEGRATION_CATEGORIES = __webpack_exports__.BUILT_IN_INTEGRATION_CATEGORIES;
|
|
325
|
+
exports.builtInScriptIntegrations = __webpack_exports__.builtInScriptIntegrations;
|
|
326
|
+
exports.getBuiltInScriptIntegration = __webpack_exports__.getBuiltInScriptIntegration;
|
|
327
|
+
exports.getBuiltInScriptIntegrationBySubpath = __webpack_exports__.getBuiltInScriptIntegrationBySubpath;
|
|
328
|
+
exports.getBuiltInScriptIntegrationByVendor = __webpack_exports__.getBuiltInScriptIntegrationByVendor;
|
|
329
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
330
|
+
"BUILT_IN_INTEGRATION_CATEGORIES",
|
|
331
|
+
"builtInScriptIntegrations",
|
|
332
|
+
"getBuiltInScriptIntegration",
|
|
333
|
+
"getBuiltInScriptIntegrationBySubpath",
|
|
334
|
+
"getBuiltInScriptIntegrationByVendor"
|
|
335
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
336
|
+
Object.defineProperty(exports, '__esModule', {
|
|
337
|
+
value: true
|
|
338
|
+
});
|