skip to main content

Division of Marketing
& Communications

Google Analytics

If you're a university webmaster on the .tamu.edu domain, our team can help you set up a Google Analytics profile, even if you don't have a Google Analytics account.

To give you a deeper insight into the behavior and characteristics of your visitors, we can include data from www.tamu.edu along with your own site information. For example, you can track what pages your visitors viewed on your website after leaving the A&M site and vice versa — and possibly what popular keywords brought them there. If you manage two or more subdomains, your custom analytics profile will let you study the traffic between each of them and compare the effectiveness of each site.

Simply paste the following code into the <head> of each web page you want to track:

<script>  
    (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-1617721-2', 'auto');
    ga('send', 'pageview');  
</script>

Then email the University Webmasters Office so we can give you access to view Google Analytics reports.

The advanced subdomain code and subdirectory code allow university webmasters to continue tracking visitors under their existing Google Analytics account, while still participating in the cross-site tracking project.