Hi , Below is message from the Google Tag implementation team requesting to add script to website to enable dynamic re-targeting. Please let me know your understanding and how to add these.
Start Message --->
However, kindly refer the code below that needs to be modified according to your product details and paste it in global header section of the website:
<script>
var dataLayer = []; // Declare this array, if its not defined already in the code
dataLayer.push({
'ecomm_prodid':'<product_id>', // In case you need to capture attributes for multiple viewed products, use an array (Ex: [<product_id1>,<product_id2>]).
'ecomm_pagetype':'<page_type>',
'ecomm_totalvalue':<product_price>
});
</script>
Note:
1. Add the above data layers to all the webpages which list the products you want to retarget via dynamic remarketing:
(Ex: The page can be a product detail page, shopping cart page, checkout page, etc,.)
2. Kindly replace the respective value in your webpage for the labels (<product_id>, <page_type> & <product_price>)
We will follow up with you via email, to confirm implementation of the changes, shared.
Should you have questions/clarification regarding implementation of the code, feel free to email us, and we would be happy to assist.
Thank you for your continued partnership with Google.
Best,