Jump to content

LØST Google analytic problem


Necesario

Recommended Posts

Jeg har et problem med registring af konvertering selv om der er godkendte ordre i prestashop men igen registring af konvertering på Google analytic, bruger disse moduler til prestashop. Måske nogle der kender nogle der er bedre til dette formål. Google analytic 2.3.4 og Google analytic API hvis begge er sat til aktive er der dobbelt besøgende og igen konvertering, hvis kun den ene er aktiv ok med besøg men igen konvertering, hvis første nævnte kører alene er alle besøg med incl søgemaskiner mm og ingen konvertering begge moduler er opsat med diverse koder mm fra Google analytic (platform)

Edited by Necesario (see edit history)
Link to comment
Share on other sites

Er dette det korrekte sted i ordre-confirmation.tpl filen i mit theme (skal den være i default også?)

 

<script>

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)

})(window,document,'script','https://www.google-analytics.com/analytics.js,ga');

 

ga('create', 'UA-86365119-1', 'auto');

ga('send', 'pageview');

 

</script>{*

* 2007-2015 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-2015 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|urlencode}&email={$email|urlencode}")|escape:'html':'UTF-8'}" title="{l s='Follow my order'}"><i class="icon-chevron-left"></i>{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='Go to your order history page'}"><i class="icon-chevron-left"></i>{l s='View your order history'}</a>

</p>

Link to comment
Share on other sites

Okay dette så det korrekte sted eller skal {/if} være til slut

 

{*

* 2007-2015 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-2015 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|urlencode}&email={$email|urlencode}")|escape:'html':'UTF-8'}" title="{l s='Follow my order'}"><i class="icon-chevron-left"></i>{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='Go to your order history page'}"><i class="icon-chevron-left"></i>{l s='View your order history'}</a>

</p>

{/if}

{literal}

<script>

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)

})(window,document,'script','https://www.google-analytics.com/analytics.js,ga');

 

ga('create', 'UA-86365119-1', 'auto');

ga('send', 'pageview');

 

</script>

{/literal}

Edited by Necesario (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...