<script>
/* -------------------------------------------------------
IMPORTANT!
The code below requires a developer to install and setup.
Please do not simply copy/paste this onto your website.
----------------------------------------------------------- */
// Initiate Web Behaviour Tracking (this section MUST come prior any other dmPt calls)
(function(w,d,u,t,o,c){w['dmtrackingobjectname']=o;c=d.createElement(t);c.async=1;c.src=u;t=d.getElementsByTagName
(t)[0];t.parentNode.insertBefore(c,t);w[o]=w[o]||function(){(w[o].q=w[o].q||[]).push(arguments);};
})(window, document, '//static.trackedweb.net/js/_dmptv4.js', 'script', 'dmPt');
// Replace DM-000000000-00 with your web behaviour profile's Unique ID
// Replace test.com with the domain of your store
window.dmPt('create', 'DM-000000000-00', 'test.com');
// Setup the last browsed product
var viewed_product = {
product_name: "Name of Product",
product_url: "https://test.com/productname",
product_image_path: "https://test.com/images/product.png",
product_description: "The description of the product",
product_sku: "ABC123",
product_price: "99.99",
product_status: "In stock",
product_currency: "GBP",
product_specialPrice: "89.99",
product_categories: "Category1, Category 2, Category 3",
product_brand: "Brandname"
};
// Initiate the tracking script, pass the product object
window.dmPt('track', viewed_product);
// Replace test@test.com with the email address of the identified contact
window.dmPt("identify", "test@test.com");
</script>
Comments