ThriveCart integration
The no. 1 cart software that grows your income from existing traffic and pays for itself many times over with high converting checkout pages, upsells & affiliate campaigns.
ThriveCart (https://thrivecart.com/) is a modern shopping cart.
Integration with ThriveCart is made by using custom variables and webhook with our built-in plugin.
It is possible to track total cost, product IDs, order ID, customer name and email (supports Lifetime Commissions).
Custom variables
The idea is to set your ThriveCart links (to checkout) with an extra value. The value would be the tracking cookie value (visitorId) which we will need in webhook to track a sale later.
To do this you have to make sure each ThriveCart link has a unique ID. If it does not have an ID already, you have to add a unique one. The HTML code of your link should then look like this:
<a id="link-unique-id" href="http://webactix.thrivecart.com/example-product/">Example product</a>
As you can see, the links has “link-unique-id” set. We will work with this.
The second step is to add the following code to a page with your ThriveCart links. If the page has more buttons you have to add such a code for each (with specific link unique ID):
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.writeCookieToLink('link-unique-id', 'passthrough[visitorid]');
</script>
What is this good for? The code will load tracking cookie value, then it will search for a link with ID “link-unique-id” and add the cookie value to the link with parameter name passthrough[visitorid] – this is the custom field ThriveCart allows us to use.
ThriveCart plugin
The next step is to activate and to configure your ThriveCart plugin. Login to your merchant panel and navigate to Configuration > Plugins. Find and activate the plugin ThriveCart webhook handling.
Now, to configure the plugin you need a secret word value from your ThriveCart so login to its admin panel and navigate to Settings > API & Webhooks > ThriveCart order validation and copy the secret word from there. Set the copied secret to your plugin in Post Affiliate Pro.
Webhook setup
The last step is to configure a webhook to send data to your plugin in Post Affiliate Pro. In ThriveCart admin navigate to Settings > API & Webhooks > Webhooks & notifications and create a new webhook – set whatever name you like and use this URL:
https://URL_TO_PostAffiliatePro/plugins/ThriveCart/thrivecart.php
That’s it. Your store has just been integrated.
Do not forget to integrate your site with the click tracking code too.
If you do not want to use webhooks, you can follow these steps instead:
Shop setup
To be able to track a sale you have to enable Success URL in each of your products. ThriveCart sends order details there, so we will integrate the sale tracking code there. The Success URL should be able to read URL params, that is the only requirement.
To setup Success URL of a product navigate to Products and edit it. Navigate to Product > Fulfillment section and setup a Success URL. The same for Bump > Fulfillment in case you use it.
Sale tracking – per order
If you want to track per order commission, use the following code and place it to you Success page:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
var sale = PostAffTracker.createSale();
sale.setTotalCost('<?php echo ($_GET['thrivecart']['order_total']/100) ?>');
sale.setOrderID('<?php $_GET['thrivecart']['order_id'] ?>');
sale.setProductID('<?php $_GET['thrivecart']['product_id'] ?>');
PostAffTracker.register();
</script>
The method used for sale tracking is PHP. If your site does not work with PHP, use a different approach of reading URL parameters. You can contact us in case you need a help with it.
Per product tracking
In case you want to track each product separately, use the following code. The method uses PHP code:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
<?php
$i = 0;
foreach ($_GET['thrivecart']['order'] as $product) {
echo "var sale = PostAffTracker.createSale();";
echo "sale.setTotalCost('".($product['p']/100)."');";
echo "sale.setOrderID('".$_GET['thrivecart']['order_id']."($i)');";
echo "sale.setProductID('".$product['id']."');";
}
?>
PostAffTracker.register();
</script>
That’s it. Do not forget to integrate your site with the click tracking code.
If you want to track additional values, you can also use currency:
$_GET['thrivecart']['order_currency']
and customer email:
$_GET['thrivecart']['customer']['email']
and customer name:
$_GET['thrivecart']['customer']['firstname']
$_GET['thrivecart']['customer']['lastname']
The TEXT includes mentions of various integrations for improving affiliate software, such as Expression Engine with Membrr and Wholesale2b. There are also references to the integration of OptimizePress and pricing tables with PayPal links. The TEXT goes on to list features, alternatives, support, and company information for Post Affiliate Pro. The rest of the TEXT includes updates on the progress of account installation and a call to schedule a one-on-one call to discuss the benefits of Post Affiliate Pro for businesses. The website's use of cookies is also mentioned.
Threads by Instagram Growth Hack
To succeed on Instagram Threads, consistency, engaging with creators in your niche, interacting with followers, trying new content styles, and following successful strategies are essential. These tips can also impact the affiliate marketing industry. Start implementing them to grow your personal brand.
Setcom (Auto-post used by other script)
Post Affiliate Pro offers a wide range of features, integration methods, and support for affiliate software. It also provides a free trial and customer support. Choose a name for your PostAffiliate Pro subdomain and start your free account to benefit from their services.