Skip to main content

Installing on WordPress

There are three ways to add One Privacy to a WordPress website. Pick the one that matches how comfortable you are editing your site.

Get your script

In One Privacy, open Scripts and copy the Production snippet.

The snippet looks like:

<script data-oneprivacy-widget="true" src="https://.../live/<projectId>/sdk.js"></script>

Option 1: Use a header scripts plugin (easiest)

Most WordPress sites already have a plugin that lets you add scripts to the header. If yours does, this is the easiest path.

Common plugins: Insert Headers and Footers, WPCode, Header Footer Code Manager.

  1. Open your WordPress admin area.
  2. Open the plugin's settings page.
  3. Find the field labelled Scripts in Header (or similar).
  4. Paste the One Privacy snippet.
  5. Save.

That's it. The banner now loads on every page.

Option 2: Use Google Tag Manager

If your site already loads GTM, follow Installing with Google Tag Manager instead. This keeps all your scripts in one place.

Option 3: Edit the theme directly

If you don't want to install a plugin and don't use GTM, your developer can add the snippet directly to your theme.

  1. In your WordPress admin, go to Appearance → Theme File Editor.
  2. Open header.php.
  3. Paste the snippet inside the <head> tag, near the top.
  4. Click Update File.

Verify it works

Open your live website in a fresh browser session (incognito works well). The banner should appear within a couple of seconds.

See Verifying the banner is live.

What's next

Verifying the banner is live.

Troubleshooting installation.