Plugin Directory

Changeset 1282493


Ignore:
Timestamp:
11/09/2015 12:27:47 PM (10 years ago)
Author:
bigbadboy
Message:

Minor GA update

Location:
point-and-stare-cms-functions/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • point-and-stare-cms-functions/trunk/pands-functions.php

    r1266681 r1282493  
    11151115        $options = get_option('pands_script_plugin_options');
    11161116        ?>
    1117         <script type="text/javascript">
    1118             var _gaq = _gaq || [];
    1119             _gaq.push(['_setAccount', '<?php echo $options['google_analytics_number']; ?>']);
    1120             _gaq.push(['_setDomainName', '<?php echo site_url(); ?>']);
    1121             _gaq.push(['_trackPageview']);
    1122             (function() {
    1123                 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    1124                 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    1125                 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    1126             })();
    1127         </script>
     1117        <script>
     1118  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
     1119  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
     1120  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
     1121  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
     1122
     1123  ga('create', '<?php echo $options['google_analytics_number']; ?>', 'auto');
     1124  ga('send', 'pageview');
     1125
     1126</script>
    11281127        <?php
    11291128    }
  • point-and-stare-cms-functions/trunk/readme.txt

    r1266681 r1282493  
    5151
    5252== Changelog ==
     53
     54= 3.1.3 =
     55* Updated GA code
    5356
    5457= 3.1.2 =
Note: See TracChangeset for help on using the changeset viewer.