Integrate SamCart
This guide explains how to integrate Partnero affiliate tracking into your SamCart checkout pages and funnels.
These instructions can also be found on your Partnero account, under Integration > Guides tab > SamCart:
Step 1: Start tracking website visitors
To track visitors on your website, you need to install the PartneroJS snippet as custom code.
Install the PartneroJS Snippet
- Go to Integration > Guides tab > SamCart. Click Instructions.
- Copy the PartneroJS snippet:
- On your SamCart account, navigate to Advanced Settings → Scripts/Pixels
- Find the section labeled Embed HTML/Scripts in Header
- Paste the PartneroJS snippet into this text area
- Click Save Changes at the top-right
Note: This will automatically apply to all your checkout pages and funnels.
Step 2: Customer sign-up tracking (optional)
This step is optional for SamCart since customers can purchase without creating accounts. However, if you collect customer information (email signups, account creation, etc.), this will improve attribution accuracy.
When to use signup tracking:
- Have email opt-in forms before checkout
- Require customer account creation
- Use lead magnets or free offers
- Want to track newsletter signups
For direct purchases only: Skip this step and proceed directly to the transaction tracking section below.
Track customer registrations:
- On Partnero, copy the customer signup tracking snippet:
- On SamCart, navigate to Advanced Settings → Scripts/Pixels
- Find Embed HTML/Scripts in Header (same section as PartneroJS)
- Paste the signup tracking script after the PartneroJS snippet.
Step 3: Transaction tracking
Partnero offers three transaction tracking methods, each with unique instructions. Select one that works best for your setup and follow the instructions provided in the SamCart integration guide under Integration > Guides tab > SamCart.
For e-commerce stores like SamCart, JavaScript tracking (Method 1) is typically the most straightforward approach.
Method 1: JavaScript tracking
Track all purchases globally using SamCart's built-in conversion tracking. This is the most straightforward method for e-commerce stores.

Method 2: Payment processor integration
Use this method if your SamCart checkout uses Stripe or other supported payment processors; connect your payment processor directly to Partnero.
Method 3: Webhooks
Use webhooks to receive purchase notifications from SamCart automatically.

Your integration with SamCart is now complete! We strongly recommend testing the integration by purchasing through an affiliate link.