Docs / Développeurs

Cet article est affiché en anglais.

WordPress plugin

Plugin version 0.2.0. Sideload the zip. A WordPress.org listing is not submitted yet.

What you get

  1. Pair one WordPress site to one EngageNudge site.
  2. Inject the browser SDK and serve a root-covering service worker.
  3. On publish, create a draft campaign and show Nudge Score in the editor.
  4. Disconnect locally without deleting subscribers.

The plugin never live-sends on publish.

Install

  1. Build or download the zip from the EngageNudge repo (integrations/wordpress/dist/engagenudge-0.2.0.zip).
  2. WordPress → Plugins → Add New → Upload Plugin → activate EngageNudge.
  3. EngageNudge → Integrations → ScriptGenerate pairing code.
  4. WordPress → Settings → EngageNudge → API URL, site id, pairing code → Pair site.
  5. If an existing root worker is detected, choose standalone or merge (importScripts('/en-sw.js');).
  6. Open a public page. Confirm the SDK and Install Doctor.
  7. Send a test Nudge from the dashboard.

Use https://api.engagenudge.com as the API URL. The WordPress origin must match the EngageNudge site origin.

Service worker

ModeBehavior
StandalonePlugin serves /en-sw.js and /engagenudge-sw.js
MergeYou add importScripts('/en-sw.js'); to your worker

Re-save permalinks if the worker 404s. Purge page cache and CDN after pairing.

Publish suggestions

Settings → EngageNudge → Publish suggestions (on by default). Publishing sends title, excerpt, featured image, and URL. The campaign is draft or cancelled, never sent. The editor metabox shows Nudge Score and Open in EngageNudge.

Disconnect

Plugin Disconnect clears local options only. Dashboard Disconnect WordPress revokes the credential.