| . |
|
Web Guidelines:
[Public
web] |
Web Guidelines: MIT LibrariesGoogle AnalyticsThis code, when placed in individual pages, attaches them to the Google Analytics statistics-gathering program. As of February, 2008, Marion has finished placing an SSI into every page on the Libraries site, to include the GA code. (What's SSI?)
REMEMBER: If you want to edit a Guide, please remember to download and work with the updated guide from the server (rather than using something already on your hard disk), so the GA code won't be lost.
Does my page have the code yet?As of February, 2008, Marion has finished placing an SSI onto every page on the Libraries site, to include the GA code. She may have missed a few very deep pages, or you may have created a new page after she finished your directory. If your page is missing the code, please ask Marion to to help! To check in a browser:
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> To check in Dreamweaver:
<!--#include virtual="../../googleanalytics.txt" --></body> What can I do to make sure the code lands in my new page?If you're making a new page, you have a few options: For Dreamweaver-template based pages (eg, Subject Guides):
For non-Dreamweaver template pages:
Can't I just add the code myself?To add it to Dreamweaver-template based pages (e.g. subject guides), download & apply the current template. For anything else, add this code:
just before </body> in your page's code. If the page is in a sub-directory, of course, the code should indicate a deeper page - eg:
To test the code, upload it to the -test directory and View Source. If the SSI is spelled and placed correctly, you should see, at the bottom of the source page,
If the SSI is set up wrong, you'll get a visible error message on the non-source page. (What's SSI?) How can I check the statistics once the code's there?Go to: Sign in: Click on "view reports" next to "libraries.mit.edu." Nicole says, as of 9/28: I'm still learning about what all these stats mean (I have a couple of huge books about it that I haven't read!) So your guess is as good as mine as to what it all means... just read the help files, since I'm not prepared to answer any questions about it yet.
last edited mlcar 3/6/08
|