[Moin-user] SSL UserPreferences + Google Analytics

Jim Popovitch yahoo at jimpop.com
Wed May 2 00:32:24 EDT 2007


On Tue, 2007-05-01 at 23:41 -0400, Jim Popovitch wrote:
> On Mon, 2007-04-30 at 09:42 +0200, Juergen Hermann wrote:
> > On Sun, 29 Apr 2007 17:57:50 -0400, Jim Popovitch wrote:
> > 
> > >  page_header1 = '<script
> > >     src="http://www.google-analytics.com/urchin.js"
> > >     type="text/javascript"></script><script
> > >     type="text/javascript">_uacct =
> > >     "UA-XXXXXX-X";urchinTracker();</script>'
> > 
> > Since you're on the JS level anyway, why not just check the protocol via JS and emit 
> > the script tags conditionally?
> 
> Got some ideas on how to do this inside of page_header1? 

Nevermind.  It dawned on me that I can use the SSL url
(https://ssl.google-analytics.com/urchin.js) all the time, rather than
switching between the SSL and non-SSL url.

-Jim P.






More information about the Moin-user mailing list