Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add GATC for translate and irclog sites. #54

Merged
merged 1 commit into from

1 participant

@bobchao
Owner

No description provided.

@bobchao bobchao merged commit f9c11c6 into production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 29, 2013
  1. @bobchao
This page is out of date. Refresh to see the latest.
Showing with 42 additions and 0 deletions.
  1. +21 −0 irclog/index.php
  2. +21 −0 translate/narro/configuration/header.inc.php
View
21 irclog/index.php
@@ -9,6 +9,27 @@
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.3/jquery-ui.min.js"> </script>
<script type="text/javascript" src="LumberJack_js_app.js"> </script>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-1035080-1']);
+ _gaq.push(['_setDomainName', 'moztw.org']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ (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','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-1035080-15', 'moztw.org');
+ ga('send', 'pageview');
+</script>
</head>
<body>
View
21 translate/narro/configuration/header.inc.php
@@ -59,6 +59,27 @@
<script type="text/javascript" src="<?php echo __JS_ASSETS__ . '/control.js'?>"></script>
<script type="text/javascript" src="<?php echo __JS_ASSETS__ . '/date_time_picker.js'?>"></script>
<script type="text/javascript" src="<?php echo __JS_ASSETS__ . '/treenav.js'?>"></script>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-1035080-1']);
+ _gaq.push(['_setDomainName', 'moztw.org']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ (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','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-1035080-15', 'moztw.org');
+ ga('send', 'pageview');
+</script>
</head>
<body>
<?php if (SERVER_INSTANCE == 'dev') {
Something went wrong with that request. Please try again.