FEATURE: 2016.3 - Added mergecodes for use with Google Dynamic Remarketing tags.
Added mergecodes for use with Google Dynamic Remarketing tags.
##GOOGLEREMARKETINGPAGETYPE##
Renders 'home', 'searchresults', 'category', 'product', 'cart', 'purchase', or 'other' depending on store page type.
##GOOGLEREMARKETINGPRODID##
On a product page renders '##ITEMID##', on cart, checkout and orderview renders array of itemids, ex: ['123'.'456','789']
Alternatively, ##GOOGLEREMARKETINGITEMNR## is available which will render item nr(s) instead of the ids
##GOOGLEREMARKETINGTOTALVALUE##
On a product page renders '##RAWPRICE##', on cart and checkout it renders the raw subtotal, and on order view renders the raw total.
Normal usage would be:
<script type="text/javascript">
var google_tag_params = {
ecomm_prodid: ##GOOGLEREMARKETINGPRODID##,
ecomm_pagetype: ##GOOGLEREMARKETINGPAGETYPE##,
ecomm_totalvalue: ##GOOGLEREMARKETINGTOTALVALUE##
};
</script>
<script>
...The rest of the Adwords code...
</script>
Unrelated to Remarketing also added the following merges:
##JSENCODE[...]## - encodes a string for use inside quotes, useful for mergecodes inside JS.
##URLENCODE[...]## - encodes a string for a url
##CARTRAWSUBTOTAL## - the cart subtotal as a decimal value (without $)
##CARTRAWTOTAL## - the cart total as a decinal value (without $)
Please sign in to leave a comment.
Comments
0 comments