@c15t/react 3.2.0-canary.0 → 3.2.1

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 (50) hide show
  1. package/AGENTS.md +33 -10
  2. package/README.md +5 -7
  3. package/dist/styles.tw3.css +2 -2
  4. package/dist/version.js +1 -1
  5. package/dist-types/version.d.ts +1 -1
  6. package/docs/README.md +33 -10
  7. package/docs/concepts/choose-your-setup.md +8 -9
  8. package/docs/concepts/modes.md +5 -3
  9. package/docs/customization/stylesheets.md +39 -0
  10. package/docs/frameworks/react/hooks.md +2 -1
  11. package/docs/frameworks/react/quickstart.md +3 -3
  12. package/docs/frameworks/react/upgrade-v3.md +2 -2
  13. package/docs/integrations/activecampaign.md +297 -0
  14. package/docs/integrations/ada.md +396 -0
  15. package/docs/integrations/adobe-target.md +460 -0
  16. package/docs/integrations/adroll.md +336 -0
  17. package/docs/integrations/amazon-ads.md +424 -0
  18. package/docs/integrations/appcues.md +368 -0
  19. package/docs/integrations/attentive.md +313 -0
  20. package/docs/integrations/building-integrations.md +29 -16
  21. package/docs/integrations/clearbit.md +1 -1
  22. package/docs/integrations/customer-io.md +369 -0
  23. package/docs/integrations/databuddy.md +139 -50
  24. package/docs/integrations/default-com.md +497 -0
  25. package/docs/integrations/dynamic-yield.md +373 -0
  26. package/docs/integrations/fullstory.md +298 -0
  27. package/docs/integrations/gainsight-px.md +418 -0
  28. package/docs/integrations/gorgias.md +365 -0
  29. package/docs/integrations/hubspot.md +529 -0
  30. package/docs/integrations/insider.md +550 -0
  31. package/docs/integrations/liveintent.md +327 -0
  32. package/docs/integrations/lucky-orange.md +336 -0
  33. package/docs/integrations/marketo.md +309 -0
  34. package/docs/integrations/optimizely.md +411 -0
  35. package/docs/integrations/oracle-eloqua.md +301 -0
  36. package/docs/integrations/overview.md +124 -111
  37. package/docs/integrations/pendo.md +339 -0
  38. package/docs/integrations/rb2b.md +363 -0
  39. package/docs/integrations/salesforce-pardot.md +342 -0
  40. package/docs/integrations/statable-analytics.md +345 -0
  41. package/docs/integrations/the-trade-desk.md +328 -0
  42. package/docs/integrations/vector.md +333 -0
  43. package/docs/integrations/wisepops.md +416 -0
  44. package/docs/integrations/zendesk.md +359 -0
  45. package/package.json +8 -8
  46. package/docs/integrations/other-ads-and-pixels.md +0 -94
  47. package/docs/integrations/other-analytics.md +0 -108
  48. package/docs/integrations/other-chat-and-support.md +0 -112
  49. package/docs/integrations/other-email-and-sms.md +0 -156
  50. package/docs/integrations/other-experience.md +0 -222
@@ -0,0 +1,460 @@
1
+ ---
2
+ title: Adobe Target
3
+ description: Gate a self-hosted Adobe Target at.js download or Adobe Experience
4
+ Platform Web SDK on experience consent, send consent updates and check
5
+ revocation limits.
6
+ seoTitle: Adobe Target cookie consent with c15t
7
+ seoDescription: Load Adobe Target after experience consent with c15t. Configure
8
+ at.js opt-in or Web SDK setConsent, and understand what revocation can stop.
9
+ icon: bullseye
10
+ group: integrations
11
+ ---
12
+
13
+ Adobe Target runs A/B tests and personalizes page content. The c15t
14
+ `adobeTarget` helper waits for `experience` consent before it creates Adobe
15
+ globals or requests the SDK. Pick one mode per page: your self-hosted `at.js`
16
+ file or Adobe Experience Platform Web SDK.
17
+
18
+ On withdrawal, the helper denies Target through Adobe's Opt-in service for
19
+ at.js, or sends `setConsent` with `'out'` for Web SDK. Neither undoes content
20
+ Target already changed, so keep `reloadOnConsentRevoked` enabled.
21
+
22
+ ## Configure Adobe Target
23
+
24
+ Remove the original loader, any Adobe Tags rule and any Web SDK prehiding
25
+ snippet for this installation. A separate Adobe installation can make requests
26
+ before c15t has permission. Without the prehiding snippet, visitors see the
27
+ original page first, then Target's changes once consent allows the SDK to load.
28
+
29
+ | Package manager | Command |
30
+ | :-------------- | :------------------------------- |
31
+ | npm | `npm install @c15t/integrations` |
32
+ | pnpm | `pnpm add @c15t/integrations` |
33
+ | yarn | `yarn add @c15t/integrations` |
34
+ | bun | `bun add @c15t/integrations` |
35
+
36
+ ### at.js
37
+
38
+ Download `at.js` from **Administration > Implementation** in Adobe Target,
39
+ then host the file on your own site. Adobe provides no shared CDN URL for
40
+ `at.js`. Use at.js 1.7.0 or 2.1.0 and later for Opt-in support. Adobe excludes
41
+ 2.0.0 and 2.0.1 from this support.
42
+
43
+ ```ts title="src/consent-scripts.ts"
44
+ import { adobeTarget } from '@c15t/integrations/adobe-target';
45
+
46
+ export const scripts = [
47
+ adobeTarget({
48
+ mode: 'atjs',
49
+ scriptUrl: '/scripts/at.js',
50
+ targetGlobalSettings: { secureOnly: true },
51
+ }),
52
+ ];
53
+ ```
54
+
55
+ The helper writes `window.targetGlobalSettings` before it appends the loader
56
+ and forces `optinEnabled: true`. Pass the rest of your supported settings in
57
+ `targetGlobalSettings`. The helper replaces any previous settings object.
58
+
59
+ Adobe's Opt-in service is part of the Experience Cloud ID (ECID) service. If
60
+ that service is on the page, the helper calls
61
+ `adobe.optIn.approve(adobe.OptInCategories.TARGET)` before it loads at.js and
62
+ `adobe.optIn.deny(adobe.OptInCategories.TARGET)` on revocation. It leaves the
63
+ permissions for ECID and other Adobe products alone. The helper doesn't load
64
+ or configure the ID service. Any ID service deployment needs its own consent
65
+ gate and Adobe configuration.
66
+
67
+ Without that service, `optinEnabled` alone gives no runtime stop API. c15t
68
+ still gates the at.js download, but only the page reload stops an at.js that
69
+ is already running.
70
+
71
+ ### Web SDK
72
+
73
+ As an alternative to at.js, enable Adobe Target on your datastream in Adobe
74
+ Data Collection. Copy the datastream ID and organization ID, then choose an
75
+ exact Web SDK version of `2.21.0` or later from Adobe's
76
+ [release notes](https://experienceleague.adobe.com/en/docs/experience-platform/collection/js/release-notes).
77
+
78
+ ```ts title="src/consent-scripts.ts"
79
+ import { adobeTarget } from '@c15t/integrations/adobe-target';
80
+
81
+ export const scripts = [
82
+ adobeTarget({
83
+ datastreamId: 'YOUR_DATASTREAM_ID',
84
+ mode: 'websdk',
85
+ orgId: 'YOUR_ORG_ID@AdobeOrg',
86
+ version: '2.30.0',
87
+ }),
88
+ ];
89
+ ```
90
+
91
+ Version `2.30.0` is an example. It doesn't update itself. The helper loads the
92
+ minified library from Adobe's CDN for the version you pass. Versions before
93
+ `2.21.0` need `edgeConfigId` instead of the `datastreamId` key this helper
94
+ configures. Older versions, ranges, aliases and prerelease versions log an
95
+ error and skip the loader.
96
+
97
+ Once consent allows the loader, the helper creates the `alloy` base code.
98
+ After the SDK loads, it calls `alloy('configure')` with your IDs and
99
+ `defaultConsent: 'pending'`. Once configuration succeeds, it sends
100
+ `alloy('setConsent')` using Adobe 1.0 consent with the latest permitted state.
101
+ If consent was withdrawn during configuration, that state is `'out'`.
102
+
103
+ Consent updates run one at a time. If the choice changes while a command is
104
+ pending, the helper sends the latest choice after that command settles. A
105
+ rejected `setConsent` logs an error and can retry on a later consent change.
106
+ The helper schedules no automatic retries and can't recover an operation
107
+ stalled inside Adobe. Reload if commands stay pending. A failed configuration
108
+ also logs an error and needs a page reload. Web SDK keeps a rejected
109
+ configuration, so another configure call on the same instance can't recover
110
+ it.
111
+
112
+ The helper configures the SDK and updates consent. It doesn't send a page
113
+ view, request offers or render decisions. Keep your own
114
+ [`sendEvent` personalization code](https://experienceleague.adobe.com/en/docs/experience-platform/collection/js/commands/sendevent/personalization)
115
+ behind the same consent condition and vendor switch, and run it after SDK
116
+ configuration. Calls to `alloy` before the helper creates it fail.
117
+
118
+ Web SDK consent applies to every service on this SDK instance. Use a
119
+ Target-only datastream when you map it to `experience`. If the datastream also
120
+ sends analytics or advertising data, choose a consent condition that covers
121
+ those purposes. Don't share this helper's `window.alloy` installation with a
122
+ separate Adobe Tags or Web SDK initializer.
123
+
124
+ ## Register the scripts
125
+
126
+ Complete your [framework quickstart](https://c15t.com/docs/frameworks) first. Keep its Inth
127
+ endpoint, policy, styles and consent UI. Remove the vendor's original script,
128
+ SDK initializer or tag-manager entry, so the vendor loads only through c15t.
129
+
130
+ The vendor pages put the helper in `src/consent-scripts.ts`. If your framework
131
+ quickstart already has a `scripts` array, such as the one in `c15t.config.ts`
132
+ in the Next.js guide, add the helper to that array instead of creating a
133
+ second file.
134
+ The `scripts` export is a configuration, not an initializer. Add it to the c15t provider you already have, at the registration
135
+ point for your framework below. These are edits to that provider, not a second
136
+ provider.
137
+
138
+ **Next.js**
139
+
140
+ Add the configuration to `scripts` in `c15t.config.ts`, next to
141
+ `next.config.ts`:
142
+
143
+ ```ts title="c15t.config.ts"
144
+ import { defineConsentConfig } from 'c15t/next';
145
+ import { scripts } from './src/consent-scripts';
146
+
147
+ export default defineConsentConfig({ scripts });
148
+ ```
149
+
150
+ Keep the rest of your config, such as `mode` and `routePrefix`, in the
151
+ same call. `ConsentRoot` reads the config in the browser, so the layout
152
+ keeps passing only `state`. App Router, Pages Router and static export all
153
+ read the same file. See
154
+ [Next.js scripts and embeds](https://c15t.com/docs/frameworks/next/scripts).
155
+
156
+ **TanStack Start**
157
+
158
+ Import the configuration into your root route and pass it to the existing
159
+ `ConsentRoot` as a top-level prop. Keep the loader from the
160
+ [TanStack Start quickstart](https://c15t.com/docs/frameworks/tanstack-start/quickstart):
161
+
162
+ ```tsx title="src/routes/__root.tsx"
163
+ import { scripts } from '../consent-scripts';
164
+
165
+ <ConsentRoot state={consent} scripts={scripts}>
166
+ ```
167
+
168
+ Import vendor helpers in the root route module, not in a server function.
169
+ A server function's return value must be serializable, and script
170
+ configurations carry callbacks. See
171
+ [TanStack Start scripts](https://c15t.com/docs/frameworks/tanstack-start/scripts).
172
+
173
+ **React**
174
+
175
+ Add the configuration to the existing `ConsentProvider` options, next to
176
+ `mode`:
177
+
178
+ ```tsx title="src/consent.tsx"
179
+ import { scripts } from './consent-scripts';
180
+
181
+ <ConsentProvider options={{ mode, scripts }}>
182
+ ```
183
+
184
+ `mode` is the `manifest()` value from the
185
+ [React quickstart](../frameworks/react/quickstart.md). Keep the banner,
186
+ dialog and preferences link inside the provider. See
187
+ [React scripts and embeds](../frameworks/react/scripts.md).
188
+
189
+ **Nuxt**
190
+
191
+ Register the scripts under the `c15t` key in `app/app.config.ts`. Adjust the
192
+ relative import to where you created `consent-scripts.ts`:
193
+
194
+ ```ts title="app/app.config.ts"
195
+ import { scripts } from '../src/consent-scripts';
196
+
197
+ export default defineAppConfig({
198
+ c15t: { scripts },
199
+ });
200
+ ```
201
+
202
+ The Nuxt module merges this over its options in `nuxt.config.ts` and starts
203
+ one script loader in the browser after hydration, once it has applied the
204
+ visitor's stored choice and privacy signals. Keep `scripts` out of
205
+ `nuxt.config.ts`, which reaches the browser as JSON and drops the vendor
206
+ callbacks. Write the vendor IDs into `consent-scripts.ts`. See
207
+ [Nuxt scripts and embeds](https://c15t.com/docs/frameworks/nuxt/scripts).
208
+
209
+ **Vue**
210
+
211
+ Pass the scripts to the existing `c15tVue` plugin call in `src/main.ts`:
212
+
213
+ ```ts title="src/main.ts"
214
+ import { c15tVue, manifest } from 'c15t/vue/vue-plugin';
215
+ import { scripts } from './consent-scripts';
216
+
217
+ app.use(c15tVue, {
218
+ mode: manifest(),
219
+ scripts,
220
+ });
221
+ ```
222
+
223
+ Keep your existing `mode` and other options. The plugin starts one
224
+ script loader when the app mounts, after it has applied the visitor's stored
225
+ choice. Do not also call `createScriptLoader` from a component. See
226
+ [Vue scripts and embeds](https://c15t.com/docs/frameworks/vue/scripts).
227
+
228
+ **Astro**
229
+
230
+ Add the scripts to the client entrypoint from the
231
+ [Astro quickstart](https://c15t.com/docs/frameworks/astro/quickstart), `src/c15t.client.ts`,
232
+ which the integration finds on its own. Keep `astro.config.mjs` as it is.
233
+ If the module already exports scripts, combine the two arrays.
234
+
235
+ ```ts title="src/c15t.client.ts"
236
+ import type { C15tClientOptionsExtension } from 'c15t/astro';
237
+ import { scripts } from './consent-scripts';
238
+
239
+ export default { scripts } satisfies C15tClientOptionsExtension;
240
+ ```
241
+
242
+ Vendor helpers contain callbacks, and the integration options in
243
+ `astro.config.mjs` are serialized into the page, so do not put helpers in
244
+ the integration's `scripts` option. The integration passes the client
245
+ entrypoint to the one runtime every page shares, including across
246
+ `ClientRouter` navigation.
247
+
248
+ **Svelte**
249
+
250
+ Import the scripts in the component that owns your existing provider and
251
+ pass them as a top-level prop:
252
+
253
+ ```svelte title="src/App.svelte"
254
+ <script lang="ts">
255
+ import { ConsentProvider, manifest } from 'c15t/svelte';
256
+ import { scripts } from './consent-scripts';
257
+ </script>
258
+
259
+ <ConsentProvider mode={manifest()} {scripts}>
260
+ <!-- Keep your application, consent UI and preferences link here. -->
261
+ </ConsentProvider>
262
+ ```
263
+
264
+ Retain the styles and consent UI from the [Svelte quickstart](https://c15t.com/docs/frameworks/svelte/quickstart).
265
+ The provider owns the loader and disposes it on unmount.
266
+
267
+ **SvelteKit**
268
+
269
+ Add the scripts to the existing `ConsentRoot` in the root layout. Keep the
270
+ handle and the layout load from the [SvelteKit quickstart](https://c15t.com/docs/frameworks/sveltekit/quickstart).
271
+
272
+ ```svelte title="src/routes/+layout.svelte"
273
+ <script lang="ts">
274
+ import { ConsentRoot } from 'c15t/svelte';
275
+ import { scripts } from '../consent-scripts';
276
+
277
+ let { children, data } = $props();
278
+ </script>
279
+
280
+ <ConsentRoot state={data.consent} {scripts}>
281
+ {@render children()}
282
+ <!-- Keep your consent UI and preferences link here. -->
283
+ </ConsentRoot>
284
+ ```
285
+
286
+ Import vendor helpers in the layout component, not in `+layout.server.ts`:
287
+ a server load cannot send functions to the browser. Prerendered, static and
288
+ SPA-mode pages use the same `scripts` prop. If you pass an externally owned
289
+ `runtime` to the provider, register scripts when creating that runtime instead.
290
+
291
+ **HTML**
292
+
293
+ The helpers in `@c15t/integrations` are ES modules that need a bundler. On a
294
+ page that loads the c15t script tag, paste the vendor's own snippet instead
295
+ and keep it inert until its category is allowed:
296
+
297
+ ```html
298
+ <script type="text/plain" data-c15t-category="measurement">
299
+ // The vendor's snippet, unchanged
300
+ </script>
301
+ ```
302
+
303
+ Use the category this guide names for the vendor. c15t runs the snippet
304
+ once that category is allowed, and reloads the page when the visitor
305
+ withdraws it. Helper options on this page, such as `loadMode`, do not apply
306
+ to a pasted snippet. See [HTML scripts](https://c15t.com/docs/frameworks/html/scripts).
307
+
308
+ **JavaScript**
309
+
310
+ Pass the scripts to `init()` from `@c15t/browser`, next to your mode:
311
+
312
+ ```ts
313
+ import { init, manifest } from '@c15t/browser';
314
+ import { scripts } from './consent-scripts';
315
+
316
+ const consent = init({
317
+ mode: manifest(),
318
+ scripts,
319
+ });
320
+ ```
321
+
322
+ Keep the mode from your quickstart. With
323
+ `createConsentRuntime` from `c15t/runtime`, pass `scripts` to it instead.
324
+ A kernel you create yourself needs a loader from
325
+ `c15t/modules/script-loader`. Attach one loader per kernel. See
326
+ [JavaScript scripts](https://c15t.com/docs/frameworks/javascript/scripts).
327
+
328
+ ## Options
329
+
330
+ | Option | Default | Behavior |
331
+ | ---------------------- | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
332
+ | `mode` | Required | `'atjs'` or `'websdk'`. Register one deployment path per page. |
333
+ | `category` | `'experience'` | A c15t category or condition. Use a stricter condition if the SDK also serves other purposes. |
334
+ | `nonce` | None | CSP nonce for the loader. Surrounding whitespace is trimmed. A nonce from the consent provider also reaches the loader. |
335
+ | `scriptUrl` | Required for at.js | URL of your at.js download. Root-relative URLs work. Surrounding whitespace is trimmed. |
336
+ | `targetGlobalSettings` | `{ optinEnabled: true }` | at.js settings applied before the file loads. Supported fields are `cookieDomain`, `secureOnly`, `bodyHidingEnabled`, `bodyHiddenStyle`, `pageLoadEnabled`, `viewsEnabled`, `timeout`, `visitorApiTimeout`, `cspScriptNonce` and `cspStyleNonce`. The helper always sets `optinEnabled` to `true`. |
337
+ | `datastreamId` | Required for Web SDK | Public ID of the Target-enabled datastream. Surrounding whitespace is trimmed. |
338
+ | `orgId` | Required for Web SDK | Organization ID including the `@AdobeOrg` suffix. Surrounding whitespace is trimmed. |
339
+ | `version` | Required for Web SDK | Exact stable version of `2.21.0` or later in `https://cdn1.adoberesources.net/alloy/<version>/alloy.min.js`. Surrounding whitespace is trimmed. Older versions, ranges, aliases and prerelease versions log an error and skip the loader. |
340
+
341
+ A missing or blank required value logs a configuration error and skips the
342
+ integration. The helper stays listed in the preference dialog. It doesn't check
343
+ whether your IDs, SDK version or self-hosted file exist.
344
+
345
+ ## Loading and revocation
346
+
347
+ Before the first permitted grant, neither mode creates Adobe globals, requests
348
+ a loader or writes Adobe storage. Rejecting the mapped consent keeps it that
349
+ way. The Adobe Target vendor switch can also block loading inside an allowed
350
+ category.
351
+
352
+ When several loaders share the same helper options, every registration must
353
+ permit Adobe Target before the shared runtime opts in. An initially denied
354
+ registration counts toward that decision too.
355
+
356
+ After the first grant, at.js stays installed. On revocation, the helper calls
357
+ the Opt-in service's Target denial API if it's available. A later grant
358
+ approves Target again without downloading or running a second copy of at.js.
359
+ The denial doesn't cancel in-flight requests, remove existing offers, restore
360
+ page content or erase cookies. Without the Opt-in service, only a page reload
361
+ stops the installed runtime.
362
+
363
+ After its first grant, Web SDK stays installed so the helper can send
364
+ `setConsent` with `value.general: 'out'` on revocation. A later grant sends
365
+ `'in'` again without configuring or downloading the SDK again. If consent is
366
+ withdrawn during the initial download, the load callback doesn't configure the
367
+ SDK or send an `'in'` signal. It can initialize after a later grant.
368
+
369
+ The helper checks current consent when configuration finishes. It doesn't
370
+ leave an earlier opt-in waiting in Adobe's configuration queue. Once the
371
+ helper hands a command to Adobe, the SDK can still finish that command or an
372
+ in-flight request after revocation. Its consent API doesn't unload listeners
373
+ or restore rendered decisions. Keep c15t's default reload on revocation.
374
+
375
+ Removing the last c15t registration sends a denial to the installed SDK when
376
+ its consent API is available. It can't unload Adobe's runtime. Reload the page
377
+ before you mount the helper again after its last registration was removed,
378
+ even with the same options. Web SDK allows configuration only once per
379
+ instance. Also reload before you change IDs, versions or deployment mode.
380
+
381
+ `defaultConsent: 'pending'` is a configuration default, not a replacement for
382
+ c15t's loading gate. Adobe can use consent saved on an earlier page instead.
383
+ The helper resends the permitted state after loading on each page. Web SDK
384
+ persists consent, including an opt-out, in `kndctr_<orgId>_consent`, and its
385
+ consent update can contact Adobe. Adobe replaces `@` with `_` in the
386
+ organization ID when it names the cookie.
387
+
388
+ If you use [Adobe Analytics](./adobe-analytics.md) to load an
389
+ Adobe Tags property, every rule in that property starts under its configured
390
+ measurement gate. Remove Target and Web SDK rules from that property when you
391
+ use this helper. Registering this helper can't constrain another loader.
392
+
393
+ ## Cookies and storage
394
+
395
+ Actual storage depends on your Adobe deployment and settings. Adobe documents
396
+ these names:
397
+
398
+ | Cookie | Purpose |
399
+ | ------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
400
+ | `mbox` | at.js visitor and session values on your domain. Adobe documents a two-year lifetime from the last login. |
401
+ | `at_check` | Temporary at.js cookie-support test. |
402
+ | `mboxEdgeCluster` | Edge routing when `overrideMboxEdgeServer` is enabled in the at.js installation. |
403
+ | `<clientcode>!mboxPC`, `<clientcode>!mboxSession` | Target server cookies on `tt.omtrdc.net` when cross-domain support is enabled. Your site can't delete these HTTP-only third-party cookies. |
404
+ | `kndctr_<orgId>_consent` | Web SDK's persisted consent preference, with `@` replaced by `_` in the organization ID. Web SDK can also create identity and cluster cookies. |
405
+
406
+ Revocation doesn't delete cookies already written. Check Adobe's
407
+ [Target cookie reference](https://experienceleague.adobe.com/en/docs/core-services/interface/data-collection/cookies/target)
408
+ and the SDK's actual storage in your browser before you configure cleanup.
409
+
410
+ ## Verify Adobe Target
411
+
412
+ For at.js, filter Network by your self-hosted file URL and by `tt.omtrdc.net`.
413
+ After a grant, check that `targetGlobalSettings.optinEnabled` is `true` and
414
+ that your Target activities load. If you use Adobe Opt-in, check that only its
415
+ Target permission changes when you revoke.
416
+
417
+ For Web SDK, filter Network by `cdn1.adoberesources.net` and
418
+ `edge.adobedc.net`. Confirm there is no `alloy` global before consent. After a
419
+ grant, check that `alloy.q.push` is no longer the array's native push method.
420
+ The SDK keeps the `alloy` function when it activates, so the function's
421
+ presence alone doesn't prove the SDK loaded. Use a real Target-enabled
422
+ datastream to check offer delivery and server-side consent persistence.
423
+
424
+ Sources:
425
+ [Target privacy and Opt-in support](https://experienceleague.adobe.com/en/docs/target-dev/developer/implementation/privacy/cmp-privacy-and-general-data-protection-regulation),
426
+ [at.js settings](https://experienceleague.adobe.com/en/docs/target-dev/developer/client-side/at-js-implementation/functions-overview/targetglobalsettings),
427
+ [self-hosting at.js](https://experienceleague.adobe.com/en/docs/target-dev/developer/client-side/at-js-implementation/deploy-at-js/implement-target-without-a-tag-manager),
428
+ [Adobe Opt-in API](https://experienceleague.adobe.com/en/docs/id-service/using/implementation/opt-in-service/api),
429
+ [Web SDK base code](https://experienceleague.adobe.com/en/docs/experience-platform/collection/js/install/base-code),
430
+ [Web SDK library URL](https://experienceleague.adobe.com/en/docs/experience-platform/collection/js/install/library),
431
+ [Web SDK datastream ID and version support](https://experienceleague.adobe.com/en/docs/experience-platform/collection/js/commands/configure/datastreamid),
432
+ [Web SDK default consent](https://experienceleague.adobe.com/en/docs/experience-platform/collection/js/commands/configure/defaultconsent)
433
+ and
434
+ [Web SDK setConsent](https://experienceleague.adobe.com/en/docs/experience-platform/collection/js/commands/setconsent).
435
+
436
+ Test in a private window with an opt-in policy. Open DevTools Network, disable
437
+ the cache and filter by the vendor's domain:
438
+
439
+ 1. Load the page. No request goes to the vendor before you choose.
440
+ 2. Click Reject, then reload. There is still no vendor request.
441
+ 3. Open Privacy settings and allow the helper's category. The vendor script
442
+ loads without a page reload.
443
+ 4. Turn the category off again and save. c15t reloads the page, and the new
444
+ page makes no vendor request.
445
+
446
+ c15t reloads on revocation because removing a script element does not stop
447
+ code that already ran. The vendor's listeners, timers and queued events stay
448
+ alive until the page unloads. If you set `reloadOnConsentRevoked: false`, stop
449
+ the vendor yourself. Register a callback-only script whose `onConsentChange`
450
+ calls the vendor's opt-out API, as shown in
451
+ [custom integrations](./building-integrations.md), and check the
452
+ permission before each of your own event calls. The reload does not delete
453
+ cookies the vendor already set; see
454
+ [clear on revocation for your framework](./overview.md#vendor-switches-and-cookie-cleanup).
455
+
456
+ The helper lists its vendor by name in the preference dialog, so a visitor can
457
+ turn it off inside an allowed category. See
458
+ [vendor consent for your framework](./overview.md#vendor-switches-and-cookie-cleanup). The
459
+ [consent verification guide](../guides/verify-consent.md) covers navigation,
460
+ expiry and hosting checks.