Mailing List Archive

[interchange] Use newest Google Analytics code
commit 00eec7a05559e0a9fa29a4863925b6b1a877c99c
Author: Josh Lavin <digory@cpan.org>
Date: Tue Oct 11 11:15:37 2016 -0700

Use newest Google Analytics code

dist/strap/variables/JS | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/dist/strap/variables/JS b/dist/strap/variables/JS
index 0d84eb1..8b3adff 100644
--- a/dist/strap/variables/JS
+++ b/dist/strap/variables/JS
@@ -10,9 +10,13 @@ $(document).ready(function() {
[if var GOOGLE_ANL_ID]
<!-- Google Analytics: set GOOGLE_ANL_ID to be your site's ID. -->
<script>
- var _gaq=[['_setAccount','[var GOOGLE_ANL_ID]'],['_trackPageview']];
- (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
- g.src='//www.google-analytics.com/ga.js';
- s.parentNode.insertBefore(g,s)}(document,'script'));
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+
+ ga('create', '[var GOOGLE_ANL_ID]', 'auto');
+ ga('send', 'pageview');
+
</script>
[/if]

_______________________________________________
interchange-cvs mailing list
interchange-cvs@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-cvs