﻿// ----------------------------------------------------------------------
// WSGoogleAnalytics1.js
//
// Western Standard Translation - Google Analytics API related code.
//
// (c) 2009 Western Standard Translation.  All rights reserved.
// Portions provided by Google are copyrighted (c) by Google.  All rights reserved.
//
// WARNING: The 2 Google Analytics files must be separate, so that the object is
// created and valid from the first before code in the second executes.
// ----------------------------------------------------------------------

WSTrace(9, "WSGoogleAnalytics1.js - Begin");

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
var gaScriptTag = unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E");
document.write(gaScriptTag);
WSTrace(9, "Script Tag: " + gaScriptTag);

WSTrace(9, "WSGoogleAnalytics1.js - End");
