WordPress
WordPress is one of the easiest platforms to get Partnersify running on. You'll install the pixel via a plugin in about two minutes. No theme editing required.
Step 1: Get your pixel snippet
Go to Setup → Install tracking and copy your pixel snippet. It looks like this:
<script>
window.partnersify = window.partnersify || function() { (window.partnersify.q = window.partnersify.q || []).push(arguments); };
</script>
<script async src="https://partnersify.com/partner.js" data-partnersify="YOUR_MERCHANT_ID"></script>
YOUR_MERCHANT_ID is pre-filled when you copy it from the setup page.
Step 2: Add to your site header
Using WPCode (recommended)
- Install and activate the free WPCode plugin
- Go to Code Snippets → Header & Footer
- Paste the snippet into the Header section
- Save
Using Insert Headers and Footers
Same steps: paste into the Header field and save.
Using your theme directly (advanced)
If you're comfortable editing theme files, paste the snippet inside <head> in header.php. Using a child theme is strongly recommended so updates don't overwrite it.
Step 3: Checkout with Stripe
If you use Stripe Payment Links or a Pricing Table (e.g. a "Buy Now" button linking to buy.stripe.com/...), tracking is automatic once the pixel is installed. No extra steps.
If you use WooCommerce or a custom checkout, you'll need to pass the tracking cookie to Stripe at checkout creation time. This requires server-side code. See Stripe Checkout Sessions for how the cookie works and what to pass.
Most WordPress + Stripe setups use Payment Links, so the above is the common path.
Step 4: Test it
- Sign up as an affiliate on your own portal
- Visit your site via the affiliate referral link
- Go to Setup → Install tracking and click the Test Pixel button. It should show a green check
- Complete a test checkout through your Stripe Payment Link using a test card
- The sale should appear in Sales within 30 seconds
Updated