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.
Product page tracking tag
The product page configuration needs to be implemented on every product page of your website. The configuration is an addition to the Tracking Tag. It lets the Tracking Tag know it's being launched on a product page and can pass on product information.
How to implement
Add the configuration script to every product 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.
The configuration needs to be filled with the info from the product on the current page.
Below you find an example of the category 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.
Variables in configuration
Variable |
Requirement |
Description |
s2m_page |
Required | Type of page. In this case: product |
s2m_customer_id |
Required | Customer id of signed in users |
s2m_email_hash |
Required | MD5 hash of e-mail of signed in users (used in retargeting purposes) |
s2m_product_id |
Required | Product ID (must be same as in feed!) |
s2m_product_name |
Optional | Name of the product (escape double quotes) |
s2m_amount_1 |
Optional | Product price including tax (two decimals, dot separated e.g. 79.99) |
s2m_amount_2 |
Optional | Product price excluding tax (two decimals, dot separated e.g. 66.11) |
s2m_stock |
Optional | Amount of products in stock |