Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 1 commit
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 28 additions and 6 deletions.
  1. +15 −0 views/admin/games/mapeditor.erb
  2. +13 −0 views/admin/layout.erb
  3. +0 −6 views/layout.erb
View
15 views/admin/games/mapeditor.erb
@@ -481,6 +481,21 @@ $(function(){
});
</script>
+
+<% if Controller::GA_ID %>
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', '<%= Controller::GA_ID %>']);
+ _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);
+ })();
+ </script>
+<% end %>
+
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.3.0/bootstrap.min.css">
</head>
View
13 views/admin/layout.erb
@@ -7,6 +7,19 @@
<script type="text/javascript" src="/game-common.js"></script>
<link rel="stylesheet" type="text/css" href="/reset.css" />
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.3.0/bootstrap.min.css">
+ <% if Controller::GA_ID %>
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', '<%= Controller::GA_ID %>']);
+ _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);
+ })();
+ </script>
+ <% end %>
</head>
<body>
<div class="container">
View
6 views/layout.erb
@@ -27,12 +27,6 @@
_gaq.push(['_setAccount', '<%= Controller::GA_ID %>']);
_gaq.push(['_trackPageview']);
- <% if request.path =~ /^\/$/ %>
- // geoloqi.com A/B Testing
- _gaq.push(['gwo._setAccount', 'UA-25750303-7']);
- _gaq.push(['gwo._trackPageview', '/0594274968/goal']);
- <% end %>
-
(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';

No commit comments for this range

Something went wrong with that request. Please try again.