Welcome, Guest
Please Login or Register.
Lost Password?
SSL Google Analytics -- Hack (1 viewing)
Post Reply

TOPIC: SSL Google Analytics -- Hack

#7976
freebrew (User)
Posts: 6
graphgraph
SSL Google Analytics -- Hack 2007/10/16 20:25  
This is a quick hack I had to use today to finally get IE(n) to finally get off my case about Secure and Non-Secure links within one of my websites, and I think it should be brought into the main source tree(Mozilla doesn't bother bothering you...which I like, but not everyone uses Mozilla/Firefox)

If you open your servers file system(As Root..) and find:
/usr/libexec/webmin/virtualmin-google-analytics/Virtualmin/GoogleAnalytics.pm

At or around line 47(Depending of your Version/OS) find and mod

From
Code:

$addscript .="<script src=\"http://google-analytics.com/urchin.js\"....



To
Code:

$addscript .="<script src=\"https://ssl.google-analytics.com/urchin.js\"....



If you have Caching enabled on your site, you may not get the changes right-o-way, but you can validate it is working by looking at your page source.

Hacks wont work for everyone all of the time but this setup works for me.

Fedora 6 x86_64

Post edited by: freebrew, at: 2007/10/16 20:26
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.