SSL Google Analytics -- Hack

2 posts / 0 new
Last post
#1 Tue, 10/16/2007 - 20:25
freebrew

SSL Google Analytics -- Hack

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

Tue, 12/20/2016 - 07:11
Emily Braun

What is I can't find /usr/libexec/webmin/virtualmin-google-analytics/Virtualmin/GoogleAnalytics.pm ? What should I do here?

Topic locked