Changeset 1282493
- Timestamp:
- 11/09/2015 12:27:47 PM (10 years ago)
- Location:
- point-and-stare-cms-functions/trunk
- Files:
-
- 2 edited
-
pands-functions.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
point-and-stare-cms-functions/trunk/pands-functions.php
r1266681 r1282493 1115 1115 $options = get_option('pands_script_plugin_options'); 1116 1116 ?> 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> 1128 1127 <?php 1129 1128 } -
point-and-stare-cms-functions/trunk/readme.txt
r1266681 r1282493 51 51 52 52 == Changelog == 53 54 = 3.1.3 = 55 * Updated GA code 53 56 54 57 = 3.1.2 =
Note: See TracChangeset
for help on using the changeset viewer.