Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Order Tracking Code For Affiliate Script Rate Topic   - - - - -

 
  • webus
  • Member
  • Members
  • Join Date: 13-Jul 13
  • 49 posts

Posted 12 February 2020 - 11:48 AM #1

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

 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21031 posts

Posted 12 February 2020 - 02:08 PM #2

Check example in the Google Analytics module

 

design/themes/responsive/templates/addons/google_analytics/hooks/checkout/order_confirmation.post.tpl


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • termalert
  • Senior Member
  • Members
  • Join Date: 14-Jan 09
  • 985 posts

Posted 26 April 2020 - 04:26 AM #3

I hope COVID-19 has not touched anyone here or their loved ones.

Moved my question to affiliate thread.