fxdesca Posted February 6, 2013 Share Posted February 6, 2013 Bonjour, Pour effectuer des tests sur les pages de mon site j'ai insérer un script donné pas google (il s'agit de tests google experiment). Le problème c'est qu'avec ce script placé dans le header juste après la balise <head>, lorsque je suis sur la page "authentification" et que je veux créer un compte, j'ai beau rentrer l'adresse e-mail et cliquer sur "creer un compte", cela me renvoie toujours sur la même page de depart "authentification" . Voici le script : <!-- Google Analytics Content Experiment code --> {literal} <script>function utmx_section(){}function utmx(){}(function(){var k='48372018-5',d=document,l=d.location,c=d.cookie; if(l.search.indexOf('utm_expid='+k)>0)return; function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c. indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c. length:j))[spam-filter]}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;d.write( '<sc'+'ript src="'+'http'+(l.protocol=='https:'?'s://ssl': '://www')+'.google-analytics.com/ga_exp.js?'+'utmxkey='+k+ '&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date(). valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+ '" type="text/javascript" charset="utf-8"><\/sc'+'ript>')})(); </script><script>utmx('url','A/B');</script> {/literal} <!-- End of Google Analytics Content Experiment code --> J'ai placé les balise {literal} car sinon cela ne fonctionne pas du tout... Une idée ? Link to comment Share on other sites More sharing options...
Hedrad Posted February 6, 2013 Share Posted February 6, 2013 Vous pourriez ajouter une condition {if $page_name == 'authentification'}...{/if} qui encadre le script pour qu'il ne s'affiche pas sur cette page. Il sert à quoi ce script sinon ? Link to comment Share on other sites More sharing options...
fxdesca Posted February 6, 2013 Author Share Posted February 6, 2013 Vous pourriez ajouter une condition {if $page_name == 'authentification'}...{/if} qui encadre le script pour qu'il ne s'affiche pas sur cette page. Il sert à quoi ce script sinon ? En fait je mets en place un test A/B. Je teste 2 design different du meme site : J'ai donc 2 url : page origine : www.monsite.com variante : www.monsite.com?ab=variante Le script permet de tracker l'activité du site oroginal, et de la variante. Il doit donc s'executer sur toute les pages. De plus il faudrait utiliser "!=" et non "==". Mais dans tous les cas ce script doit s'afficher sur toute les pages... Link to comment Share on other sites More sharing options...
Hedrad Posted February 6, 2013 Share Posted February 6, 2013 De plus il faudrait utiliser "!=" et non "==" Oups... oui tout à fait... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now