WordPress

Install the Partnersify tracking pixel on WordPress and connect it to Stripe Payment Links.

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)

  1. Install and activate the free WPCode plugin
  2. Go to Code Snippets → Header & Footer
  3. Paste the snippet into the Header section
  4. 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

  1. Sign up as an affiliate on your own portal
  2. Visit your site via the affiliate referral link
  3. Go to Setup → Install tracking and click the Test Pixel button. It should show a green check
  4. Complete a test checkout through your Stripe Payment Link using a test card
  5. The sale should appear in Sales within 30 seconds

Updated