---
title: Integration
description: Platform-specific guides for adding 1Consent to your stack.
url: https://1consent.app/docs/integration
---

# Integration Guides

Choose the integration method that fits your stack. All methods use the same 1Consent dashboard for configuration.

<Cards>
  <Card
    title="Connect your AI assistant"
    description="Set up Lovable, Cursor, Claude, Codex or ChatGPT, choose site permissions, and recover missing MCP tools."
    href="/docs/integration/ai-assistants"
  />
  <Card
    title="Lovable"
    description="Add 1Consent to a Lovable app with one prompt, for TanStack Start and Vite projects. Connecting the MCP is optional."
    href="/docs/integration/lovable"
  />
  <Card
    title="Script Tag"
    description="The universal install — one <script> tag on any website, no build step."
    href="/docs/integration/script-tag"
  />
  <Card
    title="WordPress"
    description="Install the official 1Consent plugin — no code required."
    href="/docs/integration/wordpress"
  />
  <Card
    title="React"
    description="Use @1consent/react for typed services and consent gates in your React application."
    href="/docs/integration/react"
  />
  <Card
    title="Native apps"
    description="Add the banner of your site to an Android, iOS or Expo app and check consent on a device."
    href="/docs/integration/native-apps"
  />
  <Card
    title="Next.js"
    description="Use @1consent/nextjs with an App Router provider, client gates, and optional server hints."
    href="/docs/integration/nextjs"
  />
  <Card
    title="Google Tag Manager"
    description="Set up Google Consent Mode v2 with the Google tag, a website script alongside GTM, or the 1Consent CMP template."
    href="/docs/integration/google-tag-manager"
  />
  <Card
    title="Google tag gateway"
    description="Hold Google tags served from your own domain until consent, and keep Consent Mode defaults ahead of them."
    href="/docs/integration/google-tag-gateway"
  />
</Cards>

## Which one should I use?

- **[Script Tag](/docs/integration/script-tag)** is the universal method — it works on any website, with or without a framework. Start here if you're unsure.
- **[WordPress](/docs/integration/wordpress)** wraps the script tag in a plugin so there's no code to add.
- **[React](/docs/integration/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](/docs/integration/nextjs)** covers App Router setup, client components and the limits of server-side consent hints.
- **[Native apps](/docs/integration/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](/docs/integration/google-tag-manager)** 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](/docs/integration/ai-assistants) 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](/docs/integration/ai-assistants#recover-missing-tools-or-access). 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](/docs/integration/lovable) 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.
