Adcurve - Boost your profit

Implementation / Tags

This documentation describes how to implement Adcurve on your website.Adcurve has two different tags which are required to make full use of the power and features that Adcurve offers.


Cart page tracking tag

The cart (or basket) page configuration needs to be implemented on the cart page of your website. The configuration is an addition to the Tracking Tag. It lets the Tracking Tag know it's being launched on the cart page and pass on product information if available.

How to implement

Add the configuration script to the cart page of your site in the < head > tag of the document. This way you make sure the configuration will be executed before the Tracking Tag is loaded. If this is not possible for some reason; make sure the configuration is placed above the Tracking Tag.

In the configuration also provide the info from the product(s) available in the cart/basket. Please don't fill in more than 5 products per page, since this might give an error in loading our tracking tag in some browsers. If the cart is empty, so if there are no products available on the cart page, please leave out the product variables.

Below you find an example of the cart page configuration. Please integrate this JavaScript code as shown below. Do not make any changes to it or we cannot guarantee our tracking.

Code to use

Paste the code below inside the < head > tag of your website. Replace XXX with the appropriate values. If there is no value, please leave blank, or leave out the complete variable.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!-- Start Shop2market Cart page Configuration -->
<script type="text/javascript">
  window.s2m_configuration = new Object();
  window.s2m_configuration.s2m_page = "cart";
  window.s2m_configuration.s2m_customer_id = "XXX";
  window.s2m_configuration.s2m_email_hash = "XXX";
  window.s2m_configuration.s2m_cart_items = [];
 
  var cart_item1 = new Object();
  cart_item1.s2m_product_id = "XXX";
  cart_item1.s2m_name = "XXX";
  cart_item1.s2m_quantity = "XXX";
  cart_item1.s2m_amount_1 = "XXX";
  cart_item1.s2m_amount_2 = "XXX";
  window.s2m_configuration.s2m_cart_items.push ( cart_item1 );
 
  // Repeat per product in cart / basket, below an example for the second product:
 
  var cart_item2 = new Object();
  cart_item2.s2m_product_id = "XXX";
  cart_item2.s2m_name = "XXX";
  cart_item1.s2m_quantity = "XXX";
  cart_item2.s2m_amount_1 = "XXX";
  cart_item2.s2m_amount_2 = "XXX";
  window.s2m_configuration.s2m_cart_items.push ( cart_item2 );
</script>
<!-- End Shop2market Cart page Configuration -->