Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add GA tracking everywhere

  • Loading branch information...
commit 2573329b3b7aab6e55f7a1b8374d89afd5316d9c 1 parent 741a6f3
David Leadbeater authored
Showing with 26 additions and 0 deletions.
  1. +13 −0 share/html/grep.html
  2. +13 −0 share/html/results.html
13 share/html/grep.html
View
@@ -12,6 +12,19 @@
<link rel="stylesheet" type="text/css" href="//s.cpan.me/cpangrep.css" media="screen, projection" />
<link rel="search" type="application/opensearchdescription+xml" href="//s.cpan.me/opensearch.xml" title="CPAN->grep" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-21173598-1']);
+ _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>
</head>
<body id="grep_index" onload="$('INPUT:text:eq(0)').focus();">
<a href="https://github.com/dgl/cpangrep"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_green_007200.png" alt="Fork me on GitHub"></a>
13 share/html/results.html
View
@@ -11,6 +11,19 @@
<link rel="icon" type="image/png" href="/favicon.png" />
<link rel="stylesheet" type="text/css" media="screen, projection" href="//s.cpan.me/cpangrep.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-21173598-1']);
+ _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>
<script>
$(document).ready(function() {
$(document).bind("keypress", function(e) {
Please sign in to comment.
Something went wrong with that request. Please try again.