Integration Guides
Choose the integration method that fits your stack. All methods use the same 1Consent dashboard for configuration.
Script Tag
The universal install — one <script> tag on any website, no build step.
WordPress
Install the official 1Consent plugin — no code required.
React
Use @1consent/react (or @1consent/nextjs) — works in Next.js, Vite, Remix, and Astro.
Google Tag Manager
Gate Google and non-Google tags behind consent with Consent Mode v2 and the 1consent:consent dataLayer event.
Which one should I use?
- Script Tag is the universal method — it works on any website, with or without a framework. Start here if you're unsure.
- WordPress wraps the script tag in a plugin so there's no code to add.
- React adds typed service names and parse-time gating for React, Next.js, Vite, Remix, and Astro.
- Google Tag Manager is not an install method — it's a companion guide for gating tags in GTM once 1Consent is installed with any of the above.
All methods use the same 1Consent dashboard for configuration.