Google Analytics

Step 1:

The following asynchronous code should be already part of your templates. However, if your pages lack the analytics code place the following directly after the opening body tag (<body>). This code should not be modifed.

<script type="text/javascript">

var _gaq = _gaq || []; 

_gaq.push(['_setAccount', 'UA-4471790-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'; 

(document.getElementsByTagName('head')[0] || 

 document.getElementsByTagName('body')[0]).appendChild(ga); 

})(); 

</script>


Possible Conditions:

If your Website has a virtual domain (examples: "inbre.montana.edu", "www.facilities.montana.edu", "tbi.montana.edu") or your own URL (examples: "www.weedcenter.org", "www.techlinkcenter.org"), you must contact Web and Digital Communications immediately to set up a new Google Analytics id (this is assigned to you by Web and Digital Communications).

If you have been assigned you will need to replace the ID in your Google Analytics code on each page of your Website.

_gaq.push(['_setAccount', 'UA-XXXXXXX-X']);


Existing IDs:


Site ID
http://www.ampc.montana.edu UA-4471790-8
http://www.cnhp.montana.edu/ UA-4471790-11
http://www.coe.montana.edu UA-4471790-13
http://www.montana.edu UA-4471790-1
http://www2.montana.edu UA-4471790-9
http://eu.montana.edu UA-4471790-15
http://gapps.montana.edu UA-4471790-14
http://plantsciences.montana.edu UA-4471790-5
http://tto.montana.edu UA-4471790-6
http://www.weedawareness.org UA-4471790-4
http://www.weedcenter.org UA-4471790-3
http://www.msubobcats.com UA-4471790-7