Ignore:
Timestamp:
May 26, 2011, 9:16:27 PM (10 years ago)
Author:
real3t@…
Message:

Google analytics en asynchrone : http://www.google.fr/support/googleanalytics/bin/answer.py?answer=174090

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/soyezcreateurs_net/plugins_2.1/plugins/soyezcreateurs/noisettes/header/header.html

    r47131 r48172  
    9090CancelMonitorTextSize = false;
    9191</script>
    92 [<script type="text/javascript">
    93 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    94 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    95 </script>
    96 <script type="text/javascript">
    97 var pageTracker = _gat._getTracker("(#CONFIG{soyezcreateurs_google/google_analytics,''})");
    98 pageTracker._initData();
    99 pageTracker._trackPageview();
     92<link rel="shortcut icon" type="image/x-icon" href="#URL_SITE_SPIP/spip.php?page=favicon.ico" />
     93[(#REM) Appel Google Analytics selon la documentation officielle :
     94        http://www.google.fr/support/googleanalytics/bin/answer.py?answer=174090
     95][<script type="text/javascript">
     96  var _gaq = _gaq || [(#EVAL{chr(91)})][(#EVAL{chr(93)})];
     97  _gaq.push([(#EVAL{chr(91)})]'_setAccount', '(#CONFIG{soyezcreateurs_google/google_analytics,''})'[(#EVAL{chr(93)})]);
     98  _gaq.push([(#EVAL{chr(91)})]'_trackPageview'[(#EVAL{chr(93)})]);
     99  (function() {
     100    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
     101    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
     102    var s = document.getElementsByTagName('script')[(#EVAL{chr(91)})]0[(#EVAL{chr(93)})]; s.parentNode.insertBefore(ga, s);
     103  })();
    100104</script>]
    101 <link rel="shortcut icon" type="image/x-icon" href="#URL_SITE_SPIP/spip.php?page=favicon.ico" />
    102105</head>
    103106<body[ id="(#ENV{idbody})"]>
Note: See TracChangeset for help on using the changeset viewer.