Changeset 83638 in spip-zone


Ignore:
Timestamp:
Jul 10, 2014, 7:04:39 PM (5 years ago)
Author:
real3t@…
Message:

Et mise à jour en Universal Analytics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/soyezcreateurs_net/trunk/plugins/soyezcreateurs/noisettes/googleanalytics.html

    r83637 r83638  
    11[(#REM) Appel Google Analytics selon la documentation officielle :
    22        http://www.google.fr/support/googleanalytics/bin/answer.py?answer=174090
    3 ][<script type="text/javascript">
    4   var _gaq = _gaq || [(#EVAL{chr(91)})][(#EVAL{chr(93)})];
    5   _gaq.push([(#EVAL{chr(91)})]'_setAccount', '(#CONFIG{soyezcreateurs_google/google_analytics,''})'[(#EVAL{chr(93)})]);
    6   _gaq.push([(#EVAL{chr(91)})]'_trackPageview'[(#EVAL{chr(93)})]);
    7   (function() {
    8     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    9     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    10     var s = document.getElementsByTagName('script')[(#EVAL{chr(91)})]0[(#EVAL{chr(93)})]; s.parentNode.insertBefore(ga, s);
    11   })();
     3][<script>
     4  (function(i,s,o,g,r,a,m){i#EVAL{chr(91)}'GoogleAnalyticsObject'#EVAL{chr(93)}=r;i#EVAL{chr(91)}r#EVAL{chr(93)}=i#EVAL{chr(91)}r#EVAL{chr(93)}||function(){
     5  (i#EVAL{chr(91)}r#EVAL{chr(93)}.q=i#EVAL{chr(91)}r#EVAL{chr(93)}.q||#EVAL{chr(91)}#EVAL{chr(93)}).push(arguments)},i#EVAL{chr(91)}r#EVAL{chr(93)}.l=1*new Date();a=s.createElement(o),
     6  m=s.getElementsByTagName(o)#EVAL{chr(91)}0#EVAL{chr(93)};a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
     7  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
     8
     9  ga('create', '(#CONFIG{soyezcreateurs_google/google_analytics,''})', 'auto');
     10  ga('send', 'pageview');
     11
    1212</script>]
Note: See TracChangeset for help on using the changeset viewer.