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.
Order confirmation page tracking tag
The Order Tag measures all orders and assigns them to the correct channel. It also launches our tag management container, which will launch 3rd party pixels as needed (i.e. only launch channel pixel if the order was assigned to the channel). This tag needs to be implemented on the order confirmation page of your website.
Configuration
The Order Tag needs to be provided with the information about the order. The information which is needed:
- - Order info; main order information
- - Item info; information per product bought
- - User info; information about the customer
Please see below which variables are exactly needed.
How to implement
Add the Order Tag to the order confirmation page of your site, just after the opening < body > tag of the document. Below you find an example of the Order Tag. Please integrate this JavaScript code as shown below. Replace XXX with the appropriate values.
Make sure the shop_code (in the example code on lines 6 and 48) always matches your shop code in AdCurve. Your AdCurve 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 order confirmation page.
Variables in configuration
Order info variables |
Requirement |
Description |
trans_id |
Required | Unique ordernumber |
trans_type |
Required | I.e. Order, Lead or Pre-Order |
amount_1 |
Required | Total price including tax, excluding shipping costs (two decimals, dot separated). Make sure amount is rounded, so e.g. 19.99 |
amount_2 |
Required | Total price excluding tax, excluding shipping costs (two decimals, dot separated). Make sure amount is rounded, so e.g. 16.52 |
amount_3 |
Required | Shipping costs including tax (two decimals, dot separated). Make sure amount is rounded, so e.g. 2.99 |
coupon_code |
Optional | Insert used coupon code here |
Item info variables (per product) |
Requirement |
Description |
trans_id |
Required | Unique ordernumber |
item_info_id |
Required | Product ID (must be same as in feed!) |
item_info_1 |
Required | Name of the product (escape double quotes) |
item_amount_1 |
Required | Product price including tax (two decimals, dot separated). Make sure amount is rounded, so e.g. 8.99 |
item_amount_2 |
Required | Product price excluding tax (two decimals, dot separated). Make sure amount is rounded, so e.g. 7.43 |
item_quantity |
Required | Amount of products bought |
User info variables |
Requirement |
Description |
user_email |
Required | MD5 hash of user e-mail |
customer_id |
Optional | Customer id of signed in users |
new_customer |
Optional | Specify if it's a new customer: 1=new, 0=existing |