Skip to main content

WordPress

The OptSens | Cookie Consent & Privacy Compliance Platform plugin connects your WordPress site to your OptSens account and injects the banner script for you. The plugin is free. An OptSens account is required.

Install the plugin

  1. In WordPress admin, open Plugins > Add New.
  2. Search for OptSens and open OptSens | Cookie Consent & Privacy Compliance Platform in the results.
  3. Click Install Now, then Activate.

Connect your site

  1. Open OptSens in the admin sidebar.
  2. Enter your Domain ID from the dashboard Integration page or the Integration step of the guided onboarding.
  3. Click Connect website.

The settings screen validates the ID against your account and shows a status of Active, Saved, awaiting verification, or an error. The ID is per-site, and each site in a multisite network needs its own ID and its own activation.

What the plugin does

The plugin injects the OptSens script as the first element in <head> on every public page:

<script src="https://cdn.optsens.com/optsens.min.js/YOUR_DOMAIN_ID"></script>

It runs at the earliest WordPress head hook, and the script loads ahead of Google Analytics, the Meta Pixel and other trackers, which lets the auto-blocking layer intercept them. No script is added until a Domain ID is saved.

Banner design, languages, geo rules and consent records are all managed in your OptSens dashboard, not in the plugin. The plugin only injects the script and reads configuration from your account.

After installing

  1. Open your site in a private window. The banner shows on first visit.
  2. Run the implementation check. During first-time setup it runs as the onboarding Verify step, and you can run it at any time from the dashboard Integration page.
  3. Work through Verify installation.

If the banner does not show, start with Install troubleshooting.