From b0a24ecadf8da1190e4e69d7c55ae378163e4e2c Mon Sep 17 00:00:00 2001
From: Brett Bieber <brett.bieber@gmail.com>
Date: Wed, 28 Mar 2012 23:42:10 +0000
Subject: [PATCH] Update and move Google Analytics tracker to footer.html

---
 src/UNL/Catalog.php       |  5 -----
 www/templates/footer.html | 10 +++++++++-
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/UNL/Catalog.php b/src/UNL/Catalog.php
index 28daceb..9c5fd74 100644
--- a/src/UNL/Catalog.php
+++ b/src/UNL/Catalog.php
@@ -516,11 +516,6 @@ class UNL_Catalog
         $this->p->leftcollinks    = file_get_contents(dirname(__FILE__).'/../../www/templates/relatedLinks.html');
         $this->p->contactinfo     = file_get_contents(dirname(__FILE__).'/../../www/templates/footerContactInfo.html');
         $this->p->optionalfooter  = file_get_contents(dirname(__FILE__).'/../../www/templates/optionalfooter.html');
-        $this->p->footercontent   .= '<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
-<script type="text/javascript">
-_uacct = "UA-2901646-1";
-urchinTracker();
-</script>';
     }
     
     /**
diff --git a/www/templates/footer.html b/www/templates/footer.html
index 63dbe0b..1377a01 100644
--- a/www/templates/footer.html
+++ b/www/templates/footer.html
@@ -1 +1,9 @@
-&copy; 2011 UNL Graduate Studies | 1100 Seaton Hall | Lincoln NE 68588-0619 | 402-472-2875 | <a href="http://www.unl.edu/gradstudies/comments.shtml" title="Click here to direct your comments and questions">comments?</a>
+&copy; 2012 UNL Graduate Studies | 1100 Seaton Hall | Lincoln NE 68588-0619 | 402-472-2875 | <a href="http://www.unl.edu/gradstudies/comments.shtml" title="Click here to direct your comments and questions">comments?</a>
+<script type="text/javascript">
+var _gaq = _gaq || [];
+_gaq.push(['_setAccount', 'UA-2901646-1']); //replace with your unique tracker id
+_gaq.push(['_setDomainName', '.unl.edu']);
+_gaq.push(['_setAllowLinker', true]);
+_gaq.push(['_setAllowHash', false]);
+_gaq.push(['_trackPageview']);
+</script>
\ No newline at end of file
-- 
GitLab