Jump to content

Google Analytics Module Not Tracking


0sco

Recommended Posts

Hello

I'm running PS 1.6.13 and analytics module 2.08 - The theme is the default bootstarp

Basically noting was working after installing the module.no stats returned in analytics with error messages

 

L'URL de destination de l'annonce http://www.labels4less.co.za, appartenant au compte AdWord a enregistré un nombre de clics important, mais un nombre de sessions moins élevé que prévu. Un fichier robots.txt sur votre site a empêché toute analyse supplémentaire.

 

I saw the module was hooked in the header

Then I tried to hook it in the footer as well and suddenly my goggle analytics seems to wok again

So Please Cedric could tell us in which hook the modules has to been hooked to work correctly ?

Kind regards

Marco

www.labels4less.co.za

Link to comment
Share on other sites

pour verification:

 

header = displayHeader

 

adminOrder = displayAdminOrder (Display in Back Office , tab Admin Order)

footer = displayFooter

home = DisplayHome  (Homepage Content)

productfooter = DisplayFooterProduct(Product Footer)

orderConfirmation : ????

backOfficeHeader: displayBackofficeHeader (Administration panel header)

 

Est-ce bien correct

Je ne trouve pas le hook pour orderConfirmation ....

Amicalement

Marco

Link to comment
Share on other sites

  • 1 month later...

Bonjour,

 

Je rencontre un problème avec le module Google Analytics qui ne remonte plus aucune information : ni compteur de visites, ni stats temps réel, plus rien...
Il semble que le pb soit apparu après l'installation du module Prestaspeed. Je suis sous prestashop 1.6.0.9 et j'utilise ganalytics 2.0.9. J'ai réinitialisé le module, désinstallé et réinstallé mais cela est resté sans effet. J'ai vérifié les hooks qui semblent corrects mais  je note 2 anomalies avec Google Tag Assistant: No HTTP response detected et Missing analytics.js script.

 

L'observation du code source de la page donne :

 

(window.gaDevIds=window.gaDevIds||[]).push('d6YPbH');
(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','//www.google-analytics.com/analytics.js','ga');
 ga('create','UA-30292258-1','auto');
 ga('require','ec');
 
Ce qui n'est pas cohérent avec le contenu du  fichier ganalytics.php 
 
ganalytics.php
<script type="text/javascript">
(window.gaDevIds=window.gaDevIds||[]).push(\'d6YPbH\');
(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\',\'//www.google-analytics.com/analytics.js\',\'ga\');
ga(\'create\', \''.Tools::safeOutput(Configuration::get('GA_ACCOUNT_ID')).'\', \'auto\');
ga(\'require\', \'ec\');
'.($back_office ? 'ga(\'set\', \'nonInteraction\', true);' : '').'
</script>';
 
Merci d'avance pour votre aide
Edited by AshantisBoutik (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

Do you have any right click protection ? I'm unable to see the console.

Yes it is activated and probably the problem of non-tracking ! If you disable visibility for SERP's you will also not have luck with tracking tools. !!! Disable cause it's your damage and not your security for copy content or scripts. Search engines see all what humans can see. If humans cannot see, Search Engines do it by the same way  = (push argument not available).

*/</script><script type="text/javascript">/* <![CDATA[ */;function disableselect(e)
{return false}
function reEnable()
{return true}
document.onselectstart=new Function("return false")
if(window.sidebar)
{document.onclick=reEnable}
function clickIE()
{if(document.all)
{(message);return false;[spam-filter]
document.oncontextmenu=new Function("return false")
window.onerror=new Function("return true")
jQuery.fn.protectImage=function(settings){settings=jQuery.extend({image:'http://www.ashantisboutik.fr/modules/protect/blank.gif',zIndex:10},settings);return this.each(function(){var position=$(this).position();var height=$(this).height();var width=$(this).width();$('<img />').attr({width:width,height:height,src:settings.image}).css({border:'1px solid #f00',top:position.top,left:position.left,position:'absolute',zIndex:settings.zIndex}).appendTo('body')});};var message="Copyright";function clickIE(){if(document.all){(message);return false;[spam-filter]
function clickNS(e){if
(document.layers||(document.getElementById&&!document.all)){if(e.which==2||e.which==3){(message);return false;[spam-filter]}
if(document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
document.oncontextmenu=function(){return false}
if(document.layers)
document.captureEvents(Event.KEYPRESS)
function backhome(e){window.clipboardData.clearData();}
document.onmousedown=click;/* ]]> */</script><style type="text/css" media="print">img { visibility:hidden }</style><script type="text/javascript">/* <![CDATA[ */;var jQuery144=$;/* ]]> */</script><script type="text/javascript">/* <![CDATA[ */;var fbpsc=fbpsc||new FpcModule('fbpsc');fbpsc.msgs={"id":"Vous n'avez pas renseign\u00e9 votre application ID","secret":"Vous n'avez pas renseign\u00e9 votre application Secret","callback":"Vous n'avez pas renseign\u00e9 votre application callback","scope":"Vous n'avez pas renseign\u00e9 les permissions de l'application","developerKey":"Vous n'avez pas renseign\u00e9 la cl\u00e9 d\u00e9veloppeur","socialEmail":"Vous n'avez pas renseign\u00e9 votre e-mail","delete":"Supprimer"};fbpsc.sImgUrl='/modules/facebookpsconnect/img/';fbpsc.sAdminImgUrl='/img/admin/';fbpsc.sWebService='/modules/facebookpsconnect/ws-facebookpsconnect.php';/* ]]> */</script><script type="text/javascript">/* <![CDATA[ */;(window.gaDevIds=window.gaDevIds||[]).push('d6YPbH');(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','//www.google-analytics.com/analytics.js','ga');ga('create','UA-30292258-1','auto');ga('require','ec');/* ]]> */</script><link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800,400italic|Flamenco:300,400&subset=latin,latin-ext" type="text/css" media="all"> <!--[if IE 8]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> <![endif]--><style class="firebugResetStyles" type="text/css" charset="utf-8">/* See license.txt for terms of usage */
/
Edited by selectshop.at (see edit history)
Link to comment
Share on other sites

There is indeed a right click protection but it is not the cause for that GA issue.

 

Problem is finally solved when disabling in performance settings "Move the Javascript code at the end (Déplacer le code JavaScript à la fin)"  :) 

 

This sounds like a bug to me, but i disabled it...

 

For selectshop.at, i am not sure that I really understood your explanation about the impact of right click protection but I have also disabled it. I will check if it has a positive action on search engine activity.

 

Thank you, both of you, for your help anyway.

  • Like 1
Link to comment
Share on other sites

Right click tools are useless. Only noobies cannot copy your content, but it will not stop experts to copy your content.

 

The problem of JS moved to end is a bug of your theme. Prestashop native theme and also some other paid one can handle this without any problem. You should debug with theme developer this issue.

Link to comment
Share on other sites

I don't understand the connection of right click allow and double content on your own shop ???? Right click module is doing nothing than do not allow others in the net to copy your texts and images to another site!?. Such modules are useless, cause you can see text and image link with every browser by reading the source code of your page. So only a quick not copy is not allowed with this module, but not a NOT copy. From source you can read and copy all you want, so such modules are really useless.

 

For double content in your own page you should use a theme (the best is the default one of Prestashop) which is coded well and do not allow double content by added extra features, and of course yourself work by do not add same descriptions on similar or equal products.

Edited by selectshop.at (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...