To add AutoSocialProof to WordPress, paste your campaign pixel into the site header with a header-code plugin such as WPCode, or into your child theme's header. It then loads on every page, including WooCommerce product pages.
You need: Self-hosted WordPress, or WordPress.com on a plan that allows plugins, and your campaign pixel from the AutoSocialProof dashboard.
<script defer src="https://app.autosocialproof.com/pixel/YOUR_PIXEL_KEY.js"></script>Steps
- In WordPress admin go to Plugins, Add New, search for "WPCode" (Insert Headers and Footers) and install and activate it.
- Open Code Snippets, then Header & Footer.
- Paste your AutoSocialProof pixel line into the Header box.
- Click Save Changes.
- Clear any caching plugin and check a page in a private window.
Menu names can change. WordPress's own help: official guide.
Show real orders or signups
For WooCommerce orders, go to WooCommerce, Settings, Advanced, Webhooks, add a webhook with the topic "Order created" and your widget's webhook URL as the delivery URL. Check the widget's Data tab after a test order to see the field names, or use an automation tool to send simple fields.
Good to know
If you edit theme files directly, use a child theme so updates do not remove the line.
Caching and optimisation plugins can delay or combine scripts. Exclude the pixel from "delay JavaScript" features if widgets do not appear.
Other platforms
Ready? Create a free account or log in to follow along.