The AdCurve Conversion Tracking Tag Template provides a way to quickly add AdCurves conversion tracking tag to your website using Google Tag Manager's Community Template Gallery.
The tag can automatically grab the data it requires from the dataLayer using Google's Enhanced Ecommerce dataLayer model. However if this dataLayer model is not implemented on your website, you can manually configure each of the variables.
AdCurve Shop Id:
Enter your AdCurve Shop Id. This can be found in the address bar when you viewing the AdCurve app (app.adcurve.com/shops/1234/...). If in doubt, just ask us. It's important that this id is correct, and the tag won't let you enter a value that is not number at least 3 digits long.
Use Enhanced Ecommerce DataLayer:
This option is checked by default and tells the tag to look for the Purchase action in the ecommerce object in the dataLayer.
If you do not use the Enhanced Ecommerce dataLayer, or if your implementation does not conform to the purchase action model in Google's documentation then you should uncheck the box and configure the variables manually
If you are not using Enhanced Ecommerce then these two fields should be filled with Google Tag Manager variables that return a javascript object. If you're unsure how to set this up, please contact AdCurve support and we can assist you with it.
A javascript object representing the basic order information:
| Key | Description | Type |
|---|---|---|
| id | Order id | string |
| revenue | Total order amount including tax and shipping | string |
| tax | Tax amount of the order | string |
| shipping | Shipping cost of the order | string |
| coupon | Any promotion or coupon code applied to the order | string |
Example
{
id: "#1005",
revenue: "9.99",
tax: "1.99",
shipping: "1.95",
coupon: "COUPON"
}An array of javascript objects representing the unique products sold in an order:
| Key | Description | Type |
|---|---|---|
| name | Product name/title | string |
| id | Product Id / SKU | string |
| brand | Brand / Manufacturer | string |
| category | Product category, can be a delimited path | string |
| quantity | Number of this item sold | string |
| coupon | Any promotion or coupon code applied to just this product | string |
Example
[
{
name: "product one",
id: "12345",
brand: "Brand",
category: "Category > Path",
quantity: "1",
coupon: ""
},
{
name: "product two",
id: "23456",
brand: "Brand",
category: "Category > Path",
quantity: "1",
coupon: ""
},
]