We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28891b3 commit 4048907Copy full SHA for 4048907
mu-plugins/analytics.php
@@ -0,0 +1,18 @@
1
+<?php
2
+
3
+JQUERY_STAGING || add_action( 'wp_footer', function() { ?>
4
+<script>
5
+ var _gaq = _gaq || [];
6
+ _gaq.push(['_setAccount', 'UA-1076265-1']);
7
+ _gaq.push(['_setDomainName', '<?php echo esc_js( $_SERVER['HTTP_HOST'] ); ?>']);
8
+ _gaq.push(['_setAllowLinker', true]);
9
+ _gaq.push(['_trackPageview']);
10
11
+ (function() {
12
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
13
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
14
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
15
+ })();
16
+</script>
17
18
+});
0 commit comments