alleyinteractive / wp-allegro-audience
WordPress Plugin to include Allegro Audience on your site.
Package info
github.com/alleyinteractive/allegro-audience
Type:wordpress-plugin
pkg:composer/alleyinteractive/wp-allegro-audience
Requires
- php: ^8.3
- alleyinteractive/composer-wordpress-autoloader: ^1.0
- alleyinteractive/wp-type-extensions: ^4.0
Requires (Dev)
This package is auto-updated.
Last update: 2026-08-01 06:48:15 UTC
README
Allegro Audience WordPress Plugin
Connect your WordPress site to Allegro Audience. Enter your organization URL, verify the connection, and Allegro Audience's client.js is automatically injected on every front-end page.
Installation
Install via Composer:
composer require alleyinteractive/allegro-audience
Or upload the plugin ZIP through Plugins → Add New in WordPress.
Configuration
- Activate the plugin.
- Go to Settings → Allegro Audience.
- Enter your Allegro Audience organization URL (e.g.
https://your-org.allegrocdp.com). - Click Save & Verify — the plugin confirms the URL is a live Allegro Audience instance and checks that CORS is configured for your domain.
- Once verified,
client.jsis injected automatically on every front-end page.
How it works
- Health check — on save, the plugin makes a server-side request to
<org-url>/upand verifies thex-allegro-health: 1response header. - CORS check — the browser fetches
<org-url>/client.jsdirectly to confirm cross-origin access is configured. If it isn't, the settings page shows a warning with a link to the Allegro Audience developer docs. - Script injection — once verified,
<script src="<org-url>/client.js"></script>is output inwp_headon every front-end page.
Development
composer install
composer serve # starts wp-env
Run tests and linting:
composer test # lint + PHPUnit composer phpunit # PHPUnit only composer phpstan # static analysis (level max) composer phpcs # coding standards
Releasing
Run npm run release to bump the version and trigger the built-release workflow, which creates a versioned tag.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
Maintained by Alley Interactive. Like what you see? Come work with us.
License
The GNU General Public License (GPL) license. Please see License File for more information.