Detailed installation instructions for different platforms
Add the script tag to your <head> section:
<script src="https://cookieconfig.com/api/script" data-token="YOUR_TOKEN"></script>
Add to your _app.tsx or layout component:
import Script from 'next/script'
export default function App() {
return (
<>
<Script src="https://cookieconfig.com/api/script" data-token="YOUR_TOKEN" />
{/* Your app */}
</>
)
}Install using the header/footer plugin or add to your theme's header.php:
<?php wp_head(); ?> <script src="https://cookieconfig.com/api/script" data-token="YOUR_TOKEN"></script>
theme.liquid</head>Create a new Custom HTML tag with the script, set trigger to "All Pages", and set firing priority to 1 (highest).
Always place the CookieConfig script BEFORE any tracking scripts (Google Analytics, Facebook Pixel, etc.) so it can block them until consent is given.