SamCart and Post Affiliate Pro (PAP) have teamed up to build an integration that allows you to track SamCart orders inside of Post Affiliate Pro.
Follow the steps below to get integrated!
Step #1: Create a Custom Field for Post Affiliate Pro:
In order for Post Affiliate Pro to track your SamCart orders, we need to get the Post Affiliate Pro's tracking cookie onto your SamCart Product pages. The first step in doing so is creating a Custom Field.
If you're not familiar with how to go about creating Custom Fields inside of SamCart, then head over to this Knowledge Base article. It'll take you through the steps of building one!
*Important: For this specific Custom Field, set the Internal Field Name (1) to "papCookie"
Set Checkout Page Label (2) to anything you'd like.
Set Field Type (3) to Text Input.
Make sure Required? and Show In Receipt? are unchecked and click Save (4).
Once the Custom Field is created, add it to all of the Products that you'd like to be tracked by Post Affiliate Pro.
Step #2: Add Post Affiliate Pro Tracking Code to SamCart
Now that our Custom Field is created, we need to inject Post Affiliate Pro's tracking cookie onto your SamCart Product pages. To do this, head into your SamCart Dashboard and click into your Settings. In your General Settings, paste the following code into the Embed HTML/Scripts field:
*Important: After you've pasted in the code, replace CUSTOM_SLUG with the Slug from the Custom Field you created in Step #1.
Step #3: Create a Notify URL Integration for Post Affiliate Pro:
In SamCart, head to Settings > Integrations and click the New Integration button. From the dropdown menu, choose Notify URL (1) and click Next Step (2):
On the following screen, name the integration anything you'd like. Under Notify URL (1), paste in the following URL:
*Important: Replace "SHOPNAME" with your SamCart Marketplace name. In the example below, the Marketplace name is "cscheben.samcart.com," so "cscheben" is entered.
After the Notify URL is pasted in and "SHOPNAME" is replaced, click Save Integration (2):
On the same screen, click the Global Rules tab followed by New Rule (2):
Here, you'll want to create Product Purchased and Subscription Charged rules for the Notify URL integration we just created.
For the Integration (1) select the name of the Notify URL integration. For Action (2), select Send Notify Url POST.
Click Next Step (3) and you're done!
*Important: Remember to complete this process for both Product Purchased and Subscription Charged.
Step #4: Activate the SamCart plugin in Post Affiliate Pro
Log in to your Post Affiliate Pro merchant panel and navigate to Configuration (1) followed by Plugins (2):
Here, search for SamCart under Plugins and, after SamCart webhook handling appears, hit Activate:
Make sure to match your Shop URL with your SamCart Marketplace URL (yourshopURL.samcart.com).