muchosleds Posted October 21, 2014 Share Posted October 21, 2014 Hola a todos: Estoy teniendo un problema con la inserción del código de remarketing de google. Os cuento el caso. Tengo una tienda que de momento está en prestashop versión 1.5.4.1. Para subir los productos al merchar center de google, utilizo el módulo Google merchat center de Business tech. Este módulo, asigna automáticamente el ID de cada producto al ecomm_prodid de google cuando el feed es importado por google. Este módulo me agrega auntomáticamenet el "ES" de españa al ID, quedando el ID de producto algo como ES123. Ha un caso "especial". Los productos que tienen combinaciones, mantienen el mismo ID pero le agrega "vXXX", donde las X son el identificador de la combinación que asigna prestashop. POr ejemplo: ES123V111 El problema viene cuando el siguiente script lo inserto en el footer: <!-- Google Code para etiquetas de remarketing --> <script type="text/javascript"> var google_tag_params = { {if $page_name == 'index'} ecomm_pagetype: 'home' {elseif $page_name == 'search'} ecomm_pagetype: 'searchresults' {elseif $page_name == 'category'} ecomm_pagetype: 'category' {elseif $page_name == 'product'} ecomm_pagetype: 'product', ecomm_prodid: 'ES{$product->id|intval}', ecomm_totalvalue: '{$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)}' {else} ecomm_pagetype: 'other' {/if} }; </script> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = XXXXXXXXXXX; var google_custom_params = window.google_tag_params; var google_remarketing_only = true; /* ]]> */ </script> <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/991954823/?value=0&guid=ON&script=0"/> </div> </noscript> Aparentemente todo funciona bien, salvo las identificaciones de los productos con combinaciones, que fallan ya que el script reconoce el producto como ES123, y google tiene reconocido en el merchat center el artículo ES123v111 de la combinación correspondiente. Alguien sabe como solucionarlo? Habría que agregar al script la opción de que si existen combinaciones agregue su valor, pero no he conseguido hacerlo. Espero vuestros comentarios. Saludos Link to comment Share on other sites More sharing options...
David Niry Posted August 26, 2015 Share Posted August 26, 2015 Hello, I do not speak Spanish but I translated your post with Google Translate, so I will reply in English. Indeed, Merchant Center has specifi requirements concernign product ID's, and we have implemented them in our module. However, if you try to do the remarketing code in your template by hand, you will get this problem. This is why we have a Remarketing module that is meant to work with our Google Merchant Center module. Here is th elink to the module in Spanish: http://addons.prestashop.com/es/publicidad-marketing-newsletter-modulos/9736-google-remarketing-dynamic.html Best Regards, -David Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now