mortenbennedsen Posted February 23, 2013 Share Posted February 23, 2013 Hello. I'm using PS v1.5.3.1. I cannot get figure out how to get dynamic values in my Adwords Conversation Tracking. My order-confirmation.tpl looks like: {* * 2007-2011 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-2011 PrestaShop SA * @version Release: $Revision: 6599 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <script type="text/javascript"> //<![CDATA[ var baseDir = '{$base_dir_ssl}'; //]]> </script> {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 to your e-mail.'}</p> <a href="{$link->getPageLink('guest-tracking.php', true)}?id_order={$id_order}" 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.php', true)}?id_order={$id_order}" title="{l s='Follow my order'}">{l s='Follow my order'}</a> {else} <a href="{$link->getPageLink('history.php', 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.php', true)}" title="{l s='Back to orders'}">{l s='Back to orders'}</a> {/if} <!-- Google Code for Shop Conversion Page --> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = 123456789; var google_conversion_language = "en"; var google_conversion_format = "2"; var google_conversion_color = "ffffff"; var google_conversion_label = "123456789987654321"; var google_conversion_value = 0; /* ]]> */ </script> <script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/123456789/?value=0&label=123456789987654321&guid=ON&script=0"/> </div> </noscript> I want to change 0 in "var google_conversion_value = 0;" to the total order price without shipping fee. Something like this: "var google_conversion_value = {$total_paid_without_shipping};". But i cannot find the right variable in the new version of PS. There’s a lot topics about same question for earlier versions, but they do not answer my question for the new version 1.5x. Hope someone can help me. Thank you very much. Link to comment Share on other sites More sharing options...
Geronimo2012 Posted February 24, 2013 Share Posted February 24, 2013 Why not install Google Analytics module included in PrestaShop? Link to comment Share on other sites More sharing options...
hybrid59 Posted April 2, 2013 Share Posted April 2, 2013 Have you find a solution ? i'm look for something similar. Link to comment Share on other sites More sharing options...
stebee Posted April 5, 2013 Share Posted April 5, 2013 Been looking for a solution for presta v.1.5.3 for some time now - I dare not even update to the latest "stable' version after the nightmare of updating from 1.4.7 If anybody knows of a successful way to track adwords conversions with a variable conversion amount - then please let your solution be known! Been absorbing way too much of my time recently Link to comment Share on other sites More sharing options...
Geronimo2012 Posted April 7, 2013 Share Posted April 7, 2013 Its explained here: http://support.google.com/adwords/answer/1722054?hl=en&uls=en Link to comment Share on other sites More sharing options...
dpcdpc11 Posted June 20, 2013 Share Posted June 20, 2013 (edited) <p>what the hell is with this lack of support connecting conversions to AdWords?? This is an online shop platform and most of us use AdWords to get visitors leading to clients.</p><p>And it's a vital piece of the puzzle to be able to measure the success of the campaign!</p><p>In PS 1.4.x this solution was working fine with dynamic values:</p><p>- in the tracking code replace:</p><p><span> var google_conversion_value = 0;</span></p><p>with</p><div><span></span> <div><span>if (10.0) {</span></div> <div><span> var google_conversion_value = 10.0</span></div> <div><span> }</span></div> <span></span></div><div> </div><div>It might work in PS 1.5 but I'm not sure. Can anyone confirm if they found a way to track conversions with values in AdWords?</div>P.S. wtf is wrong with the forum editor!??! Edited August 5, 2014 by dpcdpc11 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts