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.


Checkout page tracking tag

The Checkout page configuration needs to be implemented on the first page of your checkout process. The configuration is an addition to the Tracking Tag. It lets the Tracking Tag know it's being launched on the checkout page and pass on product information if available.

It's not necessary to implement the tag on every checkout page, this tag is intended to capture basket/cart items and amounts only when the customer first starts the checkout process.

How to implement

Add the configuration script to the checkout 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.

Below you find an example of the checkout 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 Checkout page Configuration -->
<script type="text/javascript">
  window.s2m_configuration = new Object();
  window.s2m_configuration.s2m_page = "checkout";
  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 -->