Warning, the below is advanced tracking that should be done by a Tech oriented person.
If you want to enable Ecommerce tracking whenever someone purchases, you can add our special e-commerce tracking snippets to the page your users will reach right after they place the order.
Here are the order details snippets that can be used:
m10_OrderDetails.transactionId => Will display the transaction ID
m10_OrderDetails.productId => Will display the product ID
m10_OrderDetails.productName => Will display the product name
m10_OrderDetails.price => Will display the product price
m10_OrderDetails.customerId => Will display the customer ID (not available with Paypal)
m10_OrderDetails.country => Will display the customer Country (not available with Paypal)
m10_OrderDetails.email => Will display the customer email
m10_OrderDetails.firstName => Will display the customer First name
m10_OrderDetails.lastName => Will display the customer Last name
For Order Bump:
m10_OrderBumpDetails.transactionId => Will display the Order Bump transaction ID
m10_OrderBumpDetails.productId => Will display the Order Bump product ID
m10_OrderBumpDetails.productName => Will display the Order Bump product name
m10_OrderBumpDetails.price => Will display the Order Bump product price
m10_OrderBumpDetails.customerId => Will display the Order Bump customer ID (not available with Paypal)
m10_OrderBumpDetails.country => Will display the Order Bump customer Country (not available with Paypal)
m10_OrderBumpDetails.email => Will display the Order Bump customer email
m10_OrderBumpDetails.firstName => Will display the Order Bump customer First name
m10_OrderBumpDetails.lastName => Will display the Order Bump customer Last name
These snippets need to be used with a tracking script and your script needs to be wrapped like this:
<script> if (m10_OrderDetails) { INSERT YOUR SCRIPT HERE WITH THE SNIPPETS } </script>
Example 1: If you want to get the purchased data into your Facebook account, here is how it will look like:
<script> if (m10_OrderDetails) { fbq('track', 'Purchase', {content_name: m10_OrderDetails.productName, value: m10_OrderDetails.price, currency:'USD'}); } </script>
Example 2: If you want to get the purchased data into your Google analytics account, here is how it will look like:
<script> if (m10_OrderDetails) { dataLayer.push({ "event": "purchase", 'ecommerce': { 'purchase': { 'actionField': { "id": m10_OrderDetails.transactionId, //transaction ID "affiliation": "Online Store", //affiliate store "revenue": m10_OrderDetails.price, //revenue "tax": 0, //tax "shipping": 0, "coupon": '' // If user added a coupon code at checkout. }, "products": [{ "id": m10_OrderDetails.productId, //ID product "name": m10_OrderDetails.productName, //product name "price": m10_OrderDetails.price, //price "brand": "INSERT YOUR BRAND NAME", //brand "category": "INSERT", //category "variant": "full", //variant "position": 0, //position in the list "quantity": 1 //quantity, example: 2 }] } } }); } </script>
You will then add this to your page using the Page Options Footer Code box.
You can use ANY kind of tracking script, not just google analytics, as long as you wrap your script and add the snippets, KLEQ will pass the data.
Contact us if you need more help with this.