SSL Google Analytics -- Hack

  • freebrew
  • 06/20/07
  • Offline
Posted: Tue, 2007-10-16 19: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:1]$addscript .="<script src=\"http://google-analytics.com/urchin.js\"....[/code:1]

To [code:1]$addscript .="<script src=\"https://ssl.google-analytics.com/urchin.js\"....[/code:1]

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