* Run a whole Apple tracking request, prompt sheet and preference centre together. /
// Source: https://github.com/c15t/c15t | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Run a whole Apple tracking request, prompt sheet and preference centre together.
*/
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import type { ConsentDecision } from '../lib/selectors';
import {
DEFAULT_TRACKING_CATEGORIES,
isAdditionalInformationPause,
MAX_TRACKING_REQUEST_TURNS,
mayAskPlatformAgain,
} from '../lib/tracking-journey';
import type {
TrackingAuthorization,
TrackingRequestPayload,
} from '../protocol';
import type { OptionalConsentCategory } from '../protocol/vocabulary';
import { useConsentClient } from '../provider/consent-context';
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key