Autopilot Pixel
Auto-installed Meta Pixel + Conversions API plugin for WordPress / WooCommerce. Hosted by iteractive.ai Autopilot.
by iteractive.ai · github.com/romankorim/autopilot-pixel-wp · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/romankorim/autopilot-pixel-wp/archive/refs/heads/main.zipAuto-installed Meta Pixel + Conversions API plugin for WordPress / WooCommerce. Hosted by iteractive.ai Autopilot.
What this is
When an Autopilot customer connects their WordPress site (via WP Application Password authorize flow), the Autopilot backend installs this plugin via the WP REST POST /wp/v2/plugins endpoint and sets the autopilot_pixel_id option. The customer never touches code or plugin settings.
What it does
- Fires Meta Pixel
PageViewon every public page load. - Forwards WooCommerce
order_status_completedevents tohttps://app.iteractive.ai/functions/v1/wp-conversion, which signs and posts to Meta's Conversions API server-side. Solves the iOS-14 attribution problem.
Why a separate repo
WordPress.org plugin directory has a long, opinionated review process — comparable to the Shopify App Store. Hosting our own plugin zip at a CDN URL we control sidesteps that entirely. WP's POST /wp/v2/plugins endpoint accepts a source URL and downloads + activates the zip directly.
Releases
Note: The release workflow file isn't in the repo yet because the bot PAT that did the initial commit lacks the
workflowscope. Add the YAML below at.github/workflows/release.yml(one-time setup):name: Release plugin zip on: push: tags: - 'v*' permissions: contents: write jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Build plugin zip run: | mkdir -p build/autopilot-pixel cp autopilot-pixel.php readme.txt build/autopilot-pixel/ cd build && zip -r "autopilot-pixel-${GITHUB_REF_NAME}.zip" autopilot-pixel cp "autopilot-pixel-${GITHUB_REF_NAME}.zip" "autopilot-pixel-latest.zip" - name: Create GitHub release uses: softprops/action-gh-release@v2 with: files: | build/autopilot-pixel-${{ github.ref_name }}.zip build/autopilot-pixel-latest.zip generate_release_notes: true
Push a tag v1.x.y. GitHub Actions builds autopilot-pixel-vX.Y.Z.zip and autopilot-pixel-latest.zip, attaches them to the release, and they become reachable at:
https://github.com/romankorim/autopilot-pixel-wp/releases/download/vX.Y.Z/autopilot-pixel-vX.Y.Z.ziphttps://github.com/romankorim/autopilot-pixel-wp/releases/latest/download/autopilot-pixel-latest.zip← the URL the Autopilot backend uses
(Optional later: copy to cdn.iteractive.ai/wp-plugins/... for vanity + faster downloads.)
Local dev
php -l autopilot-pixel.php
That's it — single PHP file, no build step.
License
GPLv2-or-later (required for WP plugins).