Jump to content

 

webus

Member Since 13 Jul 2013
Offline Last Active Feb 17 2020 05:46 AM
-----

Topics I've Started

Order Tracking Code For Affiliate Script

12 February 2020 - 11:48 AM

Hello. I installed an affiliate script.
 
to integrate it to my cs-cart website i must enter the codes shown below
 
which codes must i enter for cs-cart in these sections "general_code", "OrderId", "OrderCurrency", "OrderTotal", "ProductIDs" ?
 
would this system work with smart-html block? or do i need to enter them to tpl?
 
Thanks
 
 
General Click Tracking
Use Following code to track genreal clicks of website.
 
<script type="text/javascript" src="https://www.mysite.c...tion"></script>
<script type="text/javascript">
AffTracker.setWebsiteUrl( "WebsiteUrl" );
AffTracker.generalClick( "general_code" );
</script>
 
All possible tracking parameters
WebsiteUrl : Website root URL
general_code : Unique code of general click like (home,about,contact-us) without any space or special charector.
 
Order Tracking
To track whole order, add following code to your thank you page or order success page
 
<script type="text/javascript" src="https://www.mysite.c...tion"></script>
<script type="text/javascript">
AffTracker.setWebsiteUrl( "WebsiteUrl" );
AffTracker.add_order({
    order_id : "OrderId",
    order_currency : "OrderCurrency",
    order_total : "OrderTotal",
    product_ids : "ProductIDs"
})
</script>
 
All possible tracking parameters
WebsiteUrl : Website root URL
OrderId : Unique Order ID
OrderCurrency : Currency Symball of Order
OrderTotal : Total amount of order
ProductIDs : product ids of order, comma separated string