calpee Posted October 4, 2014 Share Posted October 4, 2014 Hola: Quiero que cuando un cliente compre porque ha pulsado en mi anuncio de google adwords y termine la compra que me cuente la conversión para así valorar la inversión. Según tengo entendido tengo que poner el código del seguimiento de conversiones en el archivo order-confirmation.tpl pero dentro del archivo hay que ponerlo dentro del body y la verdad que ando perdido, lo puse al principio de todo pero no está bien puesto. El código que me dio google adwords es este: <!-- Google Code for compras realizadas Conversion Page --> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = 980310978; var google_conversion_language = "es"; var google_conversion_format = "1"; var google_conversion_color = "ffffff"; var google_conversion_label = "pibRCLWrxFYQwre50wM"; var google_remarketing_only = false; /* ]]> */ </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="//www.googleadservices.com/pagead/conversion/980310978/?label=pibRCLWrxFYQwre50wM&guid=ON&script=0"/> </div> </noscript> A ver si me podéis ayudar y decirme donde lo coloco dentro del *.TPL Saludos Link to comment Share on other sites More sharing options...
ventura Posted October 4, 2014 Share Posted October 4, 2014 al final del .tpl incluido entre las tabs {literal}{/literal} Link to comment Share on other sites More sharing options...
calpee Posted October 9, 2014 Author Share Posted October 9, 2014 Ventura, gracias por tu respuesta pero no he sido capaz de hacerlo funciona aún. Te copio el código del archivo *.tpl y a ver si me puedes indicar exactamente donde iría el código de google adwords. GRACIAS {* * 2007-2013 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2013 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {capture name=path}{l s='Order confirmation'}{/capture} {include file="$tpl_dir./breadcrumb.tpl"} <h1>{l s='Order confirmation'}</h1> {assign var='current_step' value='payment'} {include file="$tpl_dir./order-steps.tpl"} {include file="$tpl_dir./errors.tpl"} {$HOOK_ORDER_CONFIRMATION} {$HOOK_PAYMENT_RETURN} <br /> {if $is_guest} <p>{l s='Your order ID is:'} <span class="bold">{$id_order_formatted}</span> . {l s='Your order ID has been sent via email.'}</p> <a href="{$link->getPageLink('guest-tracking', true, NULL, "id_order={$reference_order}&email={$email}")}" title="{l s='Follow my order'}"><img src="{$img_dir}icon/order.gif" alt="{l s='Follow my order'}" class="icon" /></a> <a href="{$link->getPageLink('guest-tracking', true, NULL, "id_order={$reference_order}&email={$email}")}" title="{l s='Follow my order'}">{l s='Follow my order'}</a> {else} <a href="{$link->getPageLink('history', true)}" title="{l s='Back to orders'}"><img src="{$img_dir}icon/order.gif" alt="{l s='Back to orders'}" class="icon" /></a> <a href="{$link->getPageLink('history', true)}" title="{l s='Back to orders'}">{l s='Back to orders'}</a> {/if} Link to comment Share on other sites More sharing options...
TeaCupApps Posted October 9, 2014 Share Posted October 9, 2014 Buenos días calpee, Como bien dice ventura puedes incluirlo al final del tpl entre la etiquetas {literal}{/literal} Quedaría tal que así: {** 2007-2013 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.or...ses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to [email protected] so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <[email protected]>* @copyright 2007-2013 PrestaShop SA* @license http://opensource.or...ses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*} {capture name=path}{l s='Order confirmation'}{/capture}{include file="$tpl_dir./breadcrumb.tpl"} <h1>{l s='Order confirmation'}</h1> {assign var='current_step' value='payment'}{include file="$tpl_dir./order-steps.tpl"} {include file="$tpl_dir./errors.tpl"} {$HOOK_ORDER_CONFIRMATION}{$HOOK_PAYMENT_RETURN} <br />{if $is_guest}<p>{l s='Your order ID is:'} <span class="bold">{$id_order_formatted}</span> . {l s='Your order ID has been sent via email.'}</p><a href="{$link->getPageLink('guest-tracking', true, NULL, "id_order={$reference_order}&email={$email}")}" title="{l s='Follow my order'}"><img src="{$img_dir}icon/order.gif" alt="{l s='Follow my order'}" class="icon" /></a><a href="{$link->getPageLink('guest-tracking', true, NULL, "id_order={$reference_order}&email={$email}")}" title="{l s='Follow my order'}">{l s='Follow my order'}</a>{else}<a href="{$link->getPageLink('history', true)}" title="{l s='Back to orders'}"><img src="{$img_dir}icon/order.gif" alt="{l s='Back to orders'}" class="icon" /></a><a href="{$link->getPageLink('history', true)}" title="{l s='Back to orders'}">{l s='Back to orders'}</a>{/if}{literal}<!-- Google Code for compras realizadas Conversion Page --><script type="text/javascript">/* <![CDATA[ */var google_conversion_id = 980310978;var google_conversion_language = "es";var google_conversion_format = "1";var google_conversion_color = "ffffff";var google_conversion_label = "pibRCLWrxFYQwre50wM";var google_remarketing_only = false;/* ]]> */</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="//www.googleadservices.com/pagead/conversion/980310978/?label=pibRCLWrxFYQwre50wM&guid=ON&script=0"/></div></noscript>{/literal} Link to comment Share on other sites More sharing options...
ventura Posted October 9, 2014 Share Posted October 9, 2014 Al final del codigo, al final del todo y lo dejas asi <!-- Google Code for compras realizadas Conversion Page --> {literal} <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = 980310978; var google_conversion_language = "es"; var google_conversion_format = "1"; var google_conversion_color = "ffffff"; var google_conversion_label = "pibRCLWrxFYQwre50wM"; var google_remarketing_only = false; /* ]]> */ </script> {/literal} {literal} <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> </script> {/literal} {literal} <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/980310978/?label=pibRCLWrxFYQwre50wM&guid=ON&script=0"/> </div> </noscript> {/literal} Link to comment Share on other sites More sharing options...
calpee Posted October 9, 2014 Author Share Posted October 9, 2014 muchas gracias a los dos! voy a probarlo y os digo algo en unos días. gracias de nuevo Link to comment Share on other sites More sharing options...
calpee Posted October 9, 2014 Author Share Posted October 9, 2014 puede ser que influya el módulo de 1 sólo paso para comprar? el módulo es el de 1stepcheckout de una empresa española. Link to comment Share on other sites More sharing options...
bnventura Posted December 16, 2014 Share Posted December 16, 2014 Hola Ventura. He introducido el codigo tal como indicas pero no aparece en la pagina de confirmación del pedido. www.greenjet.com Link to comment Share on other sites More sharing options...
bnventura Posted December 16, 2014 Share Posted December 16, 2014 Corrijo la entrada. Si funciona. El problema era que no había puesto forzar compilación Link to comment Share on other sites More sharing options...
davlinares Posted February 26, 2015 Share Posted February 26, 2015 Hola calpee o alguno , se que este post lleva ya tiempo.... pero me gustaria saber de donde sacaste ese codigo por que yo lo que veo en internet cada web me dice un sitio donde se saca...que si un modulo de pago, que si yna aplicacion de una web, que si otra aplicacion.... Gracias Link to comment Share on other sites More sharing options...
Recommended Posts