Sign in to follow this  
Followers 0

Googleanalytics funzt nicht


1 post in this topic

Posted · Report post

Wir benutzen xt:Commerce v3.0.4 SP2.1. Wenn wir den neuen Googleanalyticscode auf unserer Index-html einfúgen

<script type="text/javascript">

var _gaq = _gaq || [];

_gaq.push(['_setAccount', 'xxxxxxxxxxx']);

_gaq.push(['_trackPageview']);

(function() {

var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

})();

</script>

bekommen wir folgende Fehlermeldung:

Fatal error: Smarty error: [in SpringTime/index.html line 54]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 583) in /homepages/18/d4578205558/htdocs/test/includes/classes/Smarty_2.6.14/Smarty.class.php on line 1095

dies ist genau die Zeile in der INdexdatei von der (function() { bei dem Googlecode. Kann uns jemand sagen wie wir den Code richtig einfúgen kónnen?

Saludos

Share this post


Link to post
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
Sign in to follow this  
Followers 0