Website

Tags and code, the content API and importing a site

Add tools such as Google Analytics, embeds and your own CSS, let other apps read your site's content, and bring in an old site.

Website › Site settings › Tags and code · Updated 20 November 2026

The pages under Site settings in Website's menu set up what your site loads, who else can read it, and how an existing site comes in.

Tags and code

Tags and code saves four things together from the foot of the page. Nothing here loads until a visitor agrees to cookies.

  • Tools: choose a tool from the list (Google Tag Manager, Google Analytics, Meta Pixel, LinkedIn's tag, Plausible Analytics, Fathom Analytics or Cookiebot), type Its identifier, choose Head or Body in Where, and choose Add the tool. Your own scripts are not allowed.

  • Embeds from other sites: the hosts embedded content may come from, each its name alone, such as Loom's. YouTube, Vimeo and Google Maps need no entry.

  • Custom CSS: styles added after the site's own, up to 50,000 characters.

  • Visitor tracking: tick Remember the visits of people who agree, and tie them to their record once they are known to keep visits of people who press Accept, and write The bar's words they see. With Cookiebot on the site, its own banner asks instead.

A page can have tools of its own as well, such as a thank-you page's conversion tag, under Tools on this page only in the page's editor.

Content API

The content API lets another app, a screen in reception or another website read what your site publishes: pages, posts, collections, menus and media. Keys shows the address it is read at.

Choose New key, give it a Name, and add Browser origins (each website's whole address, starting https, one a line) only if a website will read it in visitors' browsers; leave them empty for an app or a server. Choose Save. The key is shown once: copy it then. An app sends it with each request, after the word Bearer.

Each key shows when it was Last used. Revoke stops it; anything using it stops within a minute.

Warning:

Anyone with a key can read your published content. Keep it out of shared documents, and revoke any you no longer use.

Import

Import brings in an existing site in three steps:

  1. The file: choose Choose the file and pick a WordPress export (Tools › Export in WordPress) or a spreadsheet (CSV) with a Title column.

  2. Where it goes: in Into, the blog and pages of your site, or one of your collections. Leave Publish what was published there, with its dates ticked to publish what was live on the old site.

  3. Bring it in: the file is sent and read in the background. Pictures go into Media, in a folder called Imported.

The last import shows at the top when you come back: how many were made, passed over and pictures brought in, and why each line was passed over.

Bringing a site in needs a paid plan. To send the old site's addresses to the new pages, add redirects: see Search engines.

Managers can see Tags and code and the content API, and can import with Publish what was published there unticked, so everything arrives as drafts. Saving Tags and code, making or revoking content keys, and importing with that box ticked need a role that can publish the website.

Steps

  1. Step 1

    In Website's menu, under Site settings, choose Tags and code. Choose Website at the top of the screen, then Tags and code.

  2. Step 2

    Under Tools, in Tool, choose the tool, such as Google Analytics.

  3. Step 3

    In Its identifier, type the identifier the tool gave you.

  4. Step 4

    Choose Add the tool. It joins the list of tools.

    Picture made at release: Tags and code, with Google Analytics added to the site's tools and not yet saved.

  5. Step 5

    Choose Save at the foot of the page. Pages load the tool within a few minutes, once a visitor agrees.

  6. Step 6

    In Website's menu, under Site settings, choose Content API. Choose Website at the top of the screen, then Content API.

  7. Step 7

    Choose New key.

  8. Step 8

    In Name, say what will use the key. Add Browser origins only if a website reads it.

    Picture made at release: A new content key called Reception screen, with no browser origins, before it is saved.

  9. Step 9

    Choose Save, then copy the key straight away. It is not shown again.

  10. Step 10

    In Website's menu, under Site settings, choose Import. Choose Website at the top of the screen, then Import.

    Picture made at release: Import, with its three steps, The file, Where it goes and Bring it in, and Choose the file.

  11. Step 11

    Choose Choose the file and pick your WordPress export or spreadsheet. Then choose where it goes and Bring it in.

If something goes wrong

  • It says the identifier is not the shape this tool gives.

    Why it happens: Each tool's identifier has its own shape, such as G-ABC123DEF4 for Google Analytics.

    What to do: Copy it again from the tool's own settings.

  • I want to add a script that isn't on the list.

    Why it happens: Only the tools on the list can be turned on. Your own scripts are not allowed on the site.

    What to do: Use Google Tag Manager, from the list, if you need more.

  • An embedded video or map from another site doesn't show.

    Why it happens: Embeds load only from hosts you allow. YouTube, Vimeo and Google Maps need no entry.

    What to do: Type the host's name alone, as the Host box's example shows, under Embeds from other sites. Choose Allow, then Save.

  • Save says your role does not allow that.

    Why it happens: Tools, embeds, CSS, visitor tracking and content keys change the live site, so they need a role that can publish the website.

    What to do: Ask an owner or administrator.

  • I lost a content key.

    Why it happens: A key is shown once, when it is made.

    What to do: Make a new key, then choose Revoke beside the old one.

  • A site reading the content API is refused.

    Why it happens: The key is revoked, or the site's address is not one of the key's Browser origins.

    What to do: Make a new key with that website's whole address, starting https, in Browser origins.

  • The import says the file is neither a WordPress export nor a spreadsheet with a Title column.

    Why it happens: Only a WordPress export (Tools › Export) or a CSV with a Title column can be brought in.

    What to do: Export again from WordPress, or add a Title column to the spreadsheet.

  • Bring it in says your role does not allow that.

    Why it happens: Publishing what was published on the old site needs a role that can publish the website.

    What to do: Untick Publish what was published there, with its dates to bring everything in as drafts, or ask an owner or administrator.

  • The import says bringing a site in comes with a paid plan.

    Why it happens: Bringing a site in is a large import, which needs a paid plan.

    What to do: Choose a paid plan, then import again.

Signed in? The ? beside every page's title opens its help, with answers. Found a mistake here? Write to hello@consonas.com with the page's address.