taggor

Platforms

Install Taggor on your platform

The same snippet, pasted where each platform allows code.

01

One snippet

The platforms below take the same script tag, except WordPress and Next.js, which have their own way to load a script. A site keeps one snippet, and its key identifies the site: paste it once per site.

Replace <site-key> with the key that taggor sites snippet prints for your site.

02

Pick your platform

Limits are the ones each platform documents.

Plain HTML (native)

No platform or framework: paste the script tag in the page's HTML, in the head or before the closing body tag, then write the component's tag where it should appear.

Install snippet

<script async src="https://cdn.taggorcdn.com/s/<site-key>.js"></script>

Using the component

<contact-form headline="Ask for a quote"></contact-form>
  • The component appears once the site's Taggor script is on the page.

Documented limits

  • The tag shows nothing until the script has loaded and the component is defined.
  • A page with a Content-Security-Policy must allow the loader's address: the snippet page of the docs lists what to allow.

MDN: the script element

WordPress

Add it to your theme's functions.php, or to a small plugin that loads code. It uses wp_enqueue_script with the async strategy (WordPress 6.3 or later).

Install snippet · functions.php

add_action( 'wp_enqueue_scripts', function () {
	wp_enqueue_script( 'taggor', 'https://cdn.taggorcdn.com/s/<site-key>.js', array(), null, array( 'strategy' => 'async', 'in_footer' => true ) );
} );

Documented limits

  • On WordPress.com, code needs a plan that allows plugins: free sites do not accept it.
  • The editor's Custom HTML block keeps a script only for users who have the unfiltered_html capability.

WordPress: wp_enqueue_script

Webflow

In the site settings, open Custom code and paste the tag in the Head or the Footer area.

Install snippet

<script async src="https://cdn.taggorcdn.com/s/<site-key>.js"></script>

Documented limits

  • Webflow's own help page lists the plans and the size limit for custom code. Check it for your plan before you paste.

Webflow Help: custom code

Shopify

Open the theme code (Online Store, Themes, Edit code) and add the tag to the theme.

Install snippet

<script async src="https://cdn.taggorcdn.com/s/<site-key>.js"></script>

Documented limits

  • A theme update can discard edits to the theme code: duplicate the theme before you edit, and add the tag again after you switch themes.
  • Shopify recommends async only for independent third-party scripts. The Taggor loader is one.

Shopify Help: edit theme code

Wix

Add an Embed Code element, choose Embed HTML and paste the snippet and the component's tag in it. Wix's Custom Code adds scripts to the pages and shows nothing, so it does not show a component.

Install snippet

<script async src="https://cdn.taggorcdn.com/s/<site-key>.js"></script>

Documented limits

  • The component lives in the frame of its Embed HTML element, so give the element the component's height.
  • Wix does not give support for external code.

Wix Help: embed custom code

Squarespace

Open Code Injection and paste the tag in the Header or the Footer.

Install snippet

<script async src="https://cdn.taggorcdn.com/s/<site-key>.js"></script>

Documented limits

  • Code Injection is available on the Core, Plus and Advanced plans, and on some older plans.
  • Checkout pages do not accept custom code.
  • Squarespace support does not help with custom code.

Squarespace Help: code injection

Framer

Add an Embed element, set its type to HTML and paste the snippet and the component's tag in it. To load the snippet once for the whole site, paste it in Settings, General, Custom Code, at the end of the body.

Install snippet

<script async src="https://cdn.taggorcdn.com/s/<site-key>.js"></script>

Documented limits

  • Custom code needs a published site and does not run in the canvas preview.
  • If the Embed element is a frame, the component lives only inside it.

Framer Help: add an iframe or embed script

Carrd

Add an Embed element, set its Type to Code and its Style to Hidden, at Body End, and paste the snippet in it. Then add an Embed element with the Inline style where the component should appear and write its tag there.

Install snippet

<script async src="https://cdn.taggorcdn.com/s/<site-key>.js"></script>

Documented limits

  • The Embed element for your own code needs the Pro Standard plan or Pro Plus.
  • An Embed element prints nothing in the builder: the component shows on the published site.

Carrd Docs: embedding custom code

Ghost

In Ghost Admin, open Code injection and paste the snippet in Site Footer. Then write the component's tag in an HTML card of a post or a page.

Install snippet

<script async src="https://cdn.taggorcdn.com/s/<site-key>.js"></script>

Documented limits

  • A post sent as an email newsletter does not run scripts: keep fallback content inside the tag.
  • Code Injection is printed by the theme's ghost_head and ghost_foot helpers.

Ghost Help: code injection

Bubble

In the app's Settings, paste the snippet in the Script in the body field. Then add an HTML element where the component should appear and write its tag there.

Install snippet

<script async src="https://cdn.taggorcdn.com/s/<site-key>.js"></script>

Documented limits

  • Script tags run in run mode, not in the editor.
  • With Display as iFrame checked, the element is an independent page: leave it unchecked.

Bubble Manual: the HTML element

Duda

In Settings, open Header HTML and paste the snippet in Body End HTML. Then add an HTML widget where the component should appear and write its tag there.

Install snippet

<script async src="https://cdn.taggorcdn.com/s/<site-key>.js"></script>

Documented limits

  • Custom code is available on the Team plan and the plans above it.
  • Head HTML keeps only link, script and meta tags: the component's tag goes in an HTML widget.
  • Duda Support does not troubleshoot custom code.

Duda Support: custom code

Google Tag Manager

Create a Custom HTML tag with the snippet and trigger it on the pages that hold components. Tag Manager loads the script; the component's tag still goes in the page's HTML.

Install snippet

<script async src="https://cdn.taggorcdn.com/s/<site-key>.js"></script>

Documented limits

  • The component appears later than with a snippet in the page, because it waits for the trigger: keep fallback content inside the tag.
  • A consent tool that blocks Tag Manager until the visitor accepts also blocks the component.

Tag Manager Help: Custom HTML tag

React (Vite or Create React App)

Paste the script tag in the project's index.html (at the root in Vite, in public/ in Create React App), and write the component's tag in a React component.

Install snippet

<script async src="https://cdn.taggorcdn.com/s/<site-key>.js"></script>

Using the component · ContactForm.tsx

export function ContactForm() {
  return <contact-form headline="Ask for a quote" />;
}
  • The component appears once the site's Taggor script is on the page.
  • React 19 sets a property when the element already has it and an attribute otherwise, so a number or a boolean may arrive either way. The runtime accepts both.

Documented limits

  • React 18 passes every prop of a custom element as a text attribute, so a number or a boolean arrives as text.

Vite: the index.html file

Next.js

In the root layout, load the snippet with next/script (the lazyOnload strategy), and write the component's tag in a Client Component.

Install snippet · app/layout.tsx

import Script from "next/script";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        {children}
        <Script src="https://cdn.taggorcdn.com/s/<site-key>.js" strategy="lazyOnload" />
      </body>
    </html>
  );
}

Using the component · ContactForm.tsx

"use client";

export function ContactForm() {
  return <contact-form headline="Ask for a quote" />;
}
  • The component appears once the site's Taggor script is on the page.
  • React 19 sets a property when the element already has it and an attribute otherwise, so a number or a boolean may arrive either way. The runtime accepts both.
  • In the Next.js App Router, a component that uses hooks is a Client Component.

Documented limits

  • In the App Router, a component that uses hooks must be a Client Component. The snippet adds the directive.
  • The page's HTML carries the tag. The component appears once the Taggor script runs in the browser.

Next.js: the Script component

Vue

Paste the script tag in the project's index.html. In vite.config.ts, tell Vue's compiler that the component's tag is a custom element, then write the tag in a template.

Install snippet

<script async src="https://cdn.taggorcdn.com/s/<site-key>.js"></script>

Using the component · src/ContactForm.vue

<template>
  <contact-form headline="Ask for a quote" />
</template>

Using the component · vite.config.ts

import vue from "@vitejs/plugin-vue";
import { defineConfig } from "vite";

export default defineConfig({
  plugins: [
    vue({
      template: {
        compilerOptions: {
          isCustomElement: (tag) => tag === "contact-form",
        },
      },
    }),
  ],
});
  • The component appears once the site's Taggor script is on the page.
  • vite.config.ts must tell Vue's compiler that the tag is not a Vue component.

Documented limits

  • The tag must be declared as a custom element (isCustomElement). Without it Vue looks for a Vue component with that name and warns.

Vue: custom elements

Angular

Paste the script tag in src/index.html, then write the component's tag in an Angular template.

Install snippet

<script async src="https://cdn.taggorcdn.com/s/<site-key>.js"></script>

Using the component · src/app/contact-form.component.ts

import { Component, CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";

@Component({
  selector: "app-contact-form",
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  template: `
    <contact-form headline="Ask for a quote"></contact-form>
  `,
})
export class ContactFormComponent {}
  • The component appears once the site's Taggor script is on the page.
  • The Angular component that uses the tag must declare CUSTOM_ELEMENTS_SCHEMA; without it Angular refuses the unknown element.

Documented limits

  • Angular's event binding cannot name an event such as tag:event: listen with addEventListener.

Angular: CUSTOM_ELEMENTS_SCHEMA

Server rendering (SSR)

A site with its own server: the server asks Taggor for the component and writes it into the first HTML response, so the browser shows it before any script. The snippet stays on the page.

Install snippet · lib/taggor.ts

// npm install @taggor/server
import { createTaggorServer } from "@taggor/server";

export const taggor = createTaggorServer({
  origin: "https://cdn.taggorcdn.com",
  siteKey: "<site-key>",
  serverKey: process.env.TAGGOR_SERVER_KEY, // a secret: the server's environment only
});

Using the component · server/page.ts

import { taggor } from "../lib/taggor";

// Write the result where the tag would go in the page's HTML.
const faq = await taggor.render("faq-accordion", { headline: "Delivery" }, { lang: "en" });

Do not pass personal data (an email, a name, a document, anything about the logged-in visitor) as an attribute: attributes travel in the URL of the request to Taggor. Server rendering: limits

Documented limits

  • Needs the site's server key, created in the portal and kept in the server's environment, never in the page.
  • If Taggor is slow or down, or a component cannot render on a server, the page gets the bare tag and the component renders in the browser as usual.

Taggor docs: server rendering

03

For developers, agencies and freelancers

The same component on many sites, and the data in one place.

The problemWhat Taggor does
The same form or banner, rebuilt for each siteOne component, published once; each site loads it through its own snippet.
A fix means opening each sitePromote a version: the sites on that channel follow, with no edit to the pages.
Each site wants its own wording and colorsValues set per site, without a new version.
Submissions scattered across toolsThey land in one portal, listed per collection and exportable as CSV or NDJSON.

For developers, agencies and freelancers who run many sites and want to ship new components without opening each site's code.

04

Other hosts

A site with a Content-Security-Policy, fallback content and what a visitor sees if something fails are in the snippet page of the docs.

05

Try it with your agent

Paste the prompt into your coding agent, or start from the quickstart.

One-line prompt for your agent

Fetch https://taggor.dev/agent-setup/prompt.md and follow its instructions to set me up for Taggor. Ask me before you sign in, create an account, accept terms, pay for anything or type a secret.