AdWords
1.6K members online now
1.6K members online now
Use AdWords conversion tracking and reporting to measure your results. Have a question about Google Analytics? Post it here, on the Google Analytics Community!
Guide Me
star_border
Reply

AdWords Conversion Tracking on Prestashop : No HTTP response detected

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello !

 

On a Prestashop website, on the "thank you" page after an order, I'm trying to add an Adwords conversion code. I copy / paste the code given by google adwords console but it's marked as "Not verify".

 

I also check with the Chrome extension "Tag Assistant", here is what I have (full report) : https://space.zeo.net/g/5ev6p

 

Could someone help me ?

Thank you !

 

Re: AdWords Conversion Tracking on Prestashop : No HTTP response detec

Participant ✭ ✭ ✭
# 2
Participant ✭ ✭ ✭
Hi Cedric,

It looks like your conversion tag is installed incorrectly. I would remove it and re insert it. From the screen shot the part that stands out is:

var time_start ;
$(window ).load (
function () {
time_start = new Date ();
}
);

Not sure what that is doing in the middle of your conversion code but perhaps someone else more code proficient can shed some light on that one.

This is what your code should look like:

<!-- Google Code for Purchase Conversion Page -->
&lt;script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = xxxxxxx;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "xxxxxxx";
var google_conversion_value = 9.50;
var google_conversion_currency = "EUR";
var google_remarketing_only = false;
/* ]]> */
&lt;/script&gt;
&lt;script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
&lt;/script&gt;
<noscript&gt;
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/xxxxxxxx/?value=9.50&amp;currency_code=EUR&amp;label=xxxx...
</div>
</noscript&gt;

Let me know if that helps

Re: AdWords Conversion Tracking on Prestashop : No HTTP response detec

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Here is my code :

<!-- Google Code for Ventes adwords Conversion Page -->
&lt;script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 971014460;
var google_conversion_language = "fr";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "E3WICI-4ul4QvIKCzwM";
var google_conversion_value = "{$order_total_paid}";
var google_conversion_currency = "EUR";
var google_remarketing_only = false;
/* ]]> */
&lt;/script&gt;
&lt;script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
&lt;/script&gt;
<noscript&gt;

There is some other inline script on that page so there is the " var time_start ;
$(window ).load (
function () {
time_start = new Date ();
}
); " which is not related to the adword conversion code.

Thank you in advance,
Cédric
Marked as Best Answer.
Solution
Accepted by Mini-CM (Community Manager)
December 2015

Re: AdWords Conversion Tracking on Prestashop : No HTTP response detec

Participant ✭ ✭ ✭
# 4
Participant ✭ ✭ ✭
Hi Cedric,

Understood, but if you compare your code to the code example I pasted, you will see some differences. You are missing all of the following:

<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/xxxxxxxx/?value=9.50&amp;currency_code=EUR&amp;label=xxxx...
</div>
</noscript&gt;

Re: AdWords Conversion Tracking on Prestashop : No HTTP response detec

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

 

Hello @Clynton !

Thank you for your answer !

But in fact, I have the above code in my file... I just forgot to paste it... Here is my entire order-confirmation.tpl file :

 

{*
* 2007-2014 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 license@prestashop.com 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 <contact@prestashop.com>
*  @copyright  2007-2014 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}

<h1 class="page-heading">{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}
{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>
    <p class="cart_navigation exclusive">
	<a class="button-exclusive btn btn-default" href="{$link->getPageLink('guest-tracking', true, NULL, "id_order={$reference_order}&email={$email}")|escape:'html':'UTF-8'}" title="{l s='Follow my order'}">{l s='Follow my order'}</a>
    </p>
{else}
<p class="cart_navigation exclusive">
	<a class="button-exclusive btn btn-default" href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" title="{l s='Back to orders'}">{l s='Back to orders'}</a>
</p>
{/if}

<!-- Google Code for Ventes adwords Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 971014460;
var google_conversion_language = "fr";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "E3WICI-4ul4QvIKCzwM";
var google_conversion_value = "{$order_total_paid}";
var google_conversion_currency = "EUR";
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/971014460/?value={$order_total_paid}&amp;currency_code=EUR&amp;label=E3WICI-4ul4QvIKCzwM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

I still don't understand what's wrong :s

Re: AdWords Conversion Tracking on Prestashop : No HTTP response detec

Participant ✭ ✭ ✭
# 6
Participant ✭ ✭ ✭
Hi Cedric,

In that case the issue must lie with: var google_conversion_value = "{$order_total_paid}"; as I can not see anything else that is out of place. It looks like you are making that numeral into a string and conversion value needs to be a number. One way to test it would be to set var google_conversion_value = 1.00;

If that resolves the issue then you know that the issue is with "{$order_total_paid}";

I am not a developer so my knowledge is somewhat limited in this area, but this is one way to find out if that is an issue.

Let me know how that goes

P.S. if this code is being set by GTM and conversion value is pulling in a dataLayer variable then your issue is not the string but that you need to have "{{$order_total_paid}}" and not "{$order_total_paid}".

Re: AdWords Conversion Tracking on Prestashop : No HTTP response detec

Visitor ✭ ✭ ✭
# 7
Visitor ✭ ✭ ✭

Hi Clynton,

I've changed my code to this one :

 

<!-- Google Code for Ventes adwords Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 971014460;
var google_conversion_language = "fr";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "E3WICI-4ul4QvIKCzwM";
var google_conversion_value = 100;
var google_conversion_currency = "EUR";
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/971014460/?value=100&amp;currency_code=EUR&amp;label=E3WICI-4ul4QvIKCzwM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

Still the issue... Event with 100 instead of my var...

Re: AdWords Conversion Tracking on Prestashop : No HTTP response detec

Participant ✭ ✭ ✭
# 8
Participant ✭ ✭ ✭
Hi Cedric,

If that is the case then there does not seem to be a single issue with the code itself. Which indicates that the issue lies either in an incorrect label/id or placement.

I would double check the id/Label although I doubt this is the issue.

The most likely issue is placement. It looks like the code has been placed in between your <h></h> tags, try moving it to between your <body></body> tags.

Both of these are clutching at straws at this point but the movement may resolve the issue, and if it is an id/label issue then that will resolve it.

Re: AdWords Conversion Tracking on Prestashop : No HTTP response detected

Visitor ✭ ✭ ✭
# 9
Visitor ✭ ✭ ✭
If you want to integrate code into Prestashop put your JS between the literal-tags.

{literal}
// Your code goes here.
{/literal}

Re: AdWords Conversion Tracking on Prestashop : No HTTP response detected

Visitor ✭ ✭ ✭
# 10
Visitor ✭ ✭ ✭

Hi !

 

Here is my order-confirmation.tpl code :

 

{*
* 2007-2014 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 license@prestashop.com 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 <contact@prestashop.com>
*  @copyright  2007-2014 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}

<h1 class="page-heading">{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}
{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>
    <p class="cart_navigation exclusive">
	<a class="button-exclusive btn btn-default" href="{$link->getPageLink('guest-tracking', true, NULL, "id_order={$reference_order}&email={$email}")|escape:'html':'UTF-8'}" title="{l s='Follow my order'}">{l s='Follow my order'}</a>
    </p>
{else}
<p class="cart_navigation exclusive">
	<a class="button-exclusive btn btn-default" href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" title="{l s='Back to orders'}">{l s='Back to orders'}</a>
</p>
{/if}

<!-- Google Code for Ventes adwords Conversion Page -->
{literal}
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 971014460;
var google_conversion_language = "fr";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "E3WICI-4ul4QvIKCzwM";
var google_conversion_value = 100;
var google_conversion_currency = "EUR";
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/971014460/?value=100&amp;currency_code=EUR&amp;label=E3WICI-4ul4QvIKCzwM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
{/literal}

Still doesn't work... Same error message Smiley Sad

 

Thank you in advance !