Ecwid integration
Fast and easy to use e-commerce shopping cart.
This integration method is for Ecwid shopping cart. The integration is done with a special code inserted into the cart ‘Thank you‘ page in Ecwid and a plugin in your Post Affiliate Pro merchant panel. The plugin works with ECWID API.
With the plugin you can track per order and per product commissions and you can track coupons. The plugin enables automatic affiliate registration, Lifetime commissions tracking and automatic approval, declining and refunding of commissions. Commmissions are created with status based on the status of the order placed and the status can be additionally changed thanks to step 4 of the guide.
Enabling the special section
Login to your Ecwid account and navigate to Settings > General > Cart. In the lower section Checkout Settings enable Tracking code on “Thank you for your order” page.
Sale tracking
When tracking code section is enabled, you can easily insert the needed tracking code to your shopping cart:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
var orderId = '%order_id%';
var callBack = false;
PostAffTracker.setAccountId('Account_ID');
function getVisitorId() {
return PostAffTracker._getAccountId() + PostAffTracker._cmanager.getVisitorIdOrSaleCookieValue();
}
function visitorCallBack() {
if (callBack == false && "null" != getVisitorId()) {
callBack = true;
var pixel = document.createElement("img");pixel.width=1;pixel.height=1;
pixel.src = 'https://URL_TO_PostAffiliatePro/plugins/EcwidAPI/ecwidapi.php?visitorId=' + getVisitorId() + '&orderId=' + orderId;
document.body.appendChild(pixel);
}
}
try {
PostAffTracker.track();
PostAffTracker.executeOnResponseFinished.push(function() {visitorCallBack();});
}
catch(e){}
</script>
Save the code.
Enable the tracking plugin
The final step is to activate your Ecwid plugin in your Post Affiliate Pro merchant panel. The plugin needs an authorization first, so navigate to ‘More Info‘ section of the plugin. When it is authorized, you can then configure the plugin and start tracking your sales.
Do not forget to integrate your site with the click tracking code so the sale tracking will work correctly.
Explore seamless integrations with Post Affiliate Pro to enhance your affiliate marketing strategies. Discover solutions for e-commerce, email marketing, payments, and more, with easy integrations for platforms like 1&1 E-Shop, 2Checkout, Abicart, and many others. Optimize your affiliate network with these powerful tools.
Discover seamless e-commerce payment processing with ccBill and Post Affiliate Pro. Enjoy automated business growth, fraud protection, and 24/7 support while accepting multiple payment methods and currencies. Easily integrate ccBill and expand your online business with our smart tools. Get started today!
Effortlessly integrate your e-commerce site with Post Affiliate Pro and boost your affiliate program's success. Our expert team ensures seamless integration with your payment processor, handling technical issues along the way. Enjoy a free trial and free integration service, saving you time and maximizing your ROI. Join now and experience top-notch affiliate management with over 500 integration options.
Integrate your Wix store effortlessly with Post Affiliate Pro to track orders, customize thank you pages, and add click tracking codes. Follow detailed instructions for per order and per product tracking, and enhance your e-commerce capabilities with a free trial and comprehensive support. Discover seamless integration and maximize your store's potential today!