Trace:
wiki:google_analytics
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:google_analytics [2017/04/05 09:54] 127.0.0.1 external edit |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Google Analytics ====== | ||
- | There are a few things that you need to know about http://ece.byu.edu Google Analytics and how it works. First, there is a certain piece of code that you need to know. This is a tracking code that Google Analytics uses to track site traffic. This code is "UA-9342466-4". | ||
- | |||
- | This is how it is for each of the following domain: | ||
- | http://devweb.byu.edu - UA-9342466-6 | ||
- | http://eceweb.byu.edu - UA-9342466-5 | ||
- | http://ece.byu.edu - UA-9342466-4 | ||
- | |||
- | <code javascript> | ||
- | <script type="text/javascript"> | ||
- | var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); | ||
- | document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); | ||
- | </script> | ||
- | <script type="text/javascript"> | ||
- | try { | ||
- | var pageTracker = _gat._getTracker("UA-9342466-4"); | ||
- | pageTracker._trackPageview(); | ||
- | } catch(err) {}</script> | ||
- | </code> | ||
- | |||
- | Instead of putting this in each one of the pages, I have a footer that is called and a link to this page is in that code. It all links to /var/www/templates/template2009/scripts/ga.js |
wiki/google_analytics.1491407676.txt.gz ยท Last modified: 2017/04/05 09:54 by 127.0.0.1