Integration Guides
Choose the integration method that fits your stack. All methods use the same 1Consent dashboard for configuration.
Connect your AI assistant
Set up Lovable, Cursor, Claude, Codex or ChatGPT, choose site permissions, and recover missing MCP tools.
Lovable
Add 1Consent to a Lovable app with one prompt, for TanStack Start and Vite projects. Connecting the MCP is optional.
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 for typed services and consent gates in your React application.
Native apps
Add the banner of your site to an Android, iOS or Expo app and check consent on a device.
Next.js
Use @1consent/nextjs with an App Router provider, client gates, and optional server hints.
Google Tag Manager
Set up Google Consent Mode v2 with the Google tag, a website script alongside GTM, or the 1Consent CMP template.
Google tag gateway
Hold Google tags served from your own domain until consent, and keep Consent Mode defaults ahead of them.
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 consent gates for React applications. Render timing depends on the app and its available consent and configuration.
- Next.js covers App Router setup, client components and the limits of server-side consent hints.
- Native apps adds the banner of the same site to an Android, iOS or Expo app with the 1Consent SDK. A website and its apps can share one site.
- Google Tag Manager and Consent Mode covers connecting an existing banner to GTM and installing from a container when it has the 1Consent CMP template. The guide also covers a direct Google tag setup.
All methods use the same 1Consent dashboard for configuration.
Connect your coding assistant
Follow Connect your AI assistant for client-specific setup in Lovable, Cursor, Claude, Codex and ChatGPT. It covers the production server URL, site selection, permissions, a first successful account read, and missing-tool recovery. Installing does not need a connection: the prompt in the Dashboard's Install step points your assistant at your site's install guide (/install.md?site=<site ID>). The Lovable guide covers Lovable projects.
Choose the intended site and the access the task needs: 1Consent suggests the recommended setup permissions to your assistant, and you pick a preset or custom access. Installation uses context and site-configuration reads; design and analytics reads are separate permissions. Keep OAuth credentials in the assistant connection, outside your visitor-facing app.
The assistant edits your project using the returned guidance. Theme drafts, framework assignment and private runtime previews require separately approved capabilities. A hosted MCP Live publication needs your separate review and approval of the exact proposal in the Dashboard before execution. Review the changes and verify fresh rejection, a partial grant, withdrawal and navigation against the site's actual trackers.