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.


Basic tracking tag

The tracking tag measures all traffic and assigns incoming traffic to the correct channels. It also launches our tag management container, which will launch 3rd party pixels as needed. This tag needs to be implemented on all pages of your website

Configuration

We make a distinguishment between four pagetypes, which each have their own configuration that needs be passed on to the Tracking Tag. These four pagetypes are listed below and can also be found in the menu on the left. You can navigate there for further implementation instructions on these specific pagetypes.

For every other page than the pagetypes listed above, the configuration can be left out and the basic Tracking Tag only will suffy. The only exception to this is the order confirmation page, where our Order Tag needs to be implemented instead.

How to implement

Add the Tracking Tag to every page of your site just after the opening tag of the document.
Below you find an example of the Tracking Tag. Please integrate this JavaScript code as shown below.
Make sure the shop_code (in the example code on lines 6 and 21) always matches your shop code in Shop2market.
Your Shop2market shop code is REPLACE_WITH_SHOPCODE

Do not make any changes to this code or we cannot guarantee our tracking.

Code to use

Paste the code below inside the < body > tag of your website.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!-- Start Shop2market Tracking Tag -->
  <script type="text/javascript">
    // Do not edit anything below or we cannot guarantee our tracking!
    try{
      var __s2m_host_prefix = (("https:" == document.location.protocol) ? "https://" : "http://");
      var __s2m_link = "track.shop2market.com/track_visit.js?shop_code=REPLACE_WITH_SHOPCODE&v=2.1.20160413";
      var __s2m_js = document.createElement('script');
      __s2m_js.type = 'text/javascript'; __s2m_js.async = true;
      __s2m_js.src = __s2m_host_prefix + __s2m_link;
      __s2m_js.onerror = function(){
        if( typeof( __s2mPixel ) === "undefined" &&
        typeof( window.OnS2MPixelFail ) === "function" ){OnS2MPixelFail();}
      }
      var __s2m_script = document.getElementsByTagName('script')[0];
      __s2m_script.parentNode.insertBefore( __s2m_js, __s2m_script );
    }
    catch(err){}
  </script>
  <!-- Start Shop2market backup Image Tracking tag -->
  <noscript>
    <img src="//track.shop2market.com/v3/tvi.gif?shop_code=REPLACE_WITH_SHOPCODE&v=2.1.20160413" height="1" width="1" border="0" style="border:0px;display:block;" />
  </noscript>
  <!-- End Shop2market backup Tracking Image tag -->
<!-- End Shop2market Tracking Tag -->

Example page


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
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
<head>
  <title>Your Website Title</title>
  <meta name="title" content="Your Title" />
  <meta name="description" content="Your Description" />
</head>
<body>
<!-- Start Shop2market Tracking Tag -->
  <script type="text/javascript">
    // Do not edit anything below or we cannot guarantee our tracking!
    try{
      var __s2m_host_prefix = (("https:" == document.location.protocol) ? "https://" : "http://");
      var __s2m_link = "track.shop2market.com/track_visit.js?shop_code=REPLACE_WITH_SHOPCODE&v=2.1.20160413";
      var __s2m_js = document.createElement('script');
      __s2m_js.type = 'text/javascript'; __s2m_js.async = true;
      __s2m_js.src = __s2m_host_prefix + __s2m_link;
      __s2m_js.onerror = function(){
        if( typeof( __s2mPixel ) === "undefined" &&
        typeof( window.OnS2MPixelFail ) === "function" ){OnS2MPixelFail();}
      }
      var __s2m_script = document.getElementsByTagName('script')[0];
      __s2m_script.parentNode.insertBefore( __s2m_js, __s2m_script );
    }
    catch(err){}
  </script>
  <!-- Start Shop2market backup Image Tracking tag -->
  <noscript>
    <img src="//track.shop2market.com/v3/tvi.gif?shop_code=REPLACE_WITH_SHOPCODE&v=2.1.20160413" height="1" width="1" border="0" style="border:0px;display:block;" />
  </noscript>
  <!-- End Shop2market backup Tracking Image tag -->
<!-- End Shop2market Tracking Tag -->
 
//rest of your website here
 
</body>
</html>