Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Google Analytics

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
User avatar
roundtrip
Posts: 35
Joined: Sun 15 Nov 2009 12:10 am
Weather Station: WH1090
Operating System: Windows 7 Pro x32
Location: Freuchie, Fife, Scotland
Contact:

Google Analytics

Post by roundtrip »

Like many other people, I like to track webpage views and other statistics. My preferred way of doing this is to use Google Analytics. Is there anyway to add a Google Analytics tracking code to the Cumulus weather webpages? If not, please can it be considered for the new release.

Thanks.
Many thanks and regards


John A Thomson
allayit
Freuchie Flood Action Group
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Google Analytics

Post by steve »

Yes, you can easily add the Google Analytics code to your Cumulus web pages, just as you would for any other pages. If you're using the supplied Cumulus pages, edit the template files (the ones with the T in them) in the web folder. Bear in mind that these get overwritten when you install/upgrade Cumulus.
Steve
User avatar
roundtrip
Posts: 35
Joined: Sun 15 Nov 2009 12:10 am
Weather Station: WH1090
Operating System: Windows 7 Pro x32
Location: Freuchie, Fife, Scotland
Contact:

Re: Google Analytics

Post by roundtrip »

Thanks again Steve for such fabulous support... I'm getting very close to hitting that donate button.

I'm just playing around with Cumulus and tweaking bits and pieces every day. You've really put a great deal into the product and it just seems to work.
Many thanks and regards


John A Thomson
allayit
Freuchie Flood Action Group
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Google Analytics

Post by daj »

roundtrip wrote:.. I'm getting very close to hitting that donate button.
Go on, push the button. ;)
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
Snicker
Posts: 20
Joined: Tue 07 Jan 2014 2:54 pm
Weather Station: WMR100N
Operating System: Win2012R2
Location: Norway
Contact:

Re: Google Analytics

Post by Snicker »

Where in the HTM should I insert the script? I cant seem to get it to work :(
And Yes I'm useing the T.htm files.
I try to insert the script right after the <head>
Where there's pleasure... there's always some pain!
-Snicker-
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Google Analytics

Post by water01 »

Not after the <head> but just before the </head> tag(i.e. the closing tag not the opening tag) as per these instructions http://www.lunametrics.com/blog/2012/02 ... king-code/
David
Image
Snicker
Posts: 20
Joined: Tue 07 Jan 2014 2:54 pm
Weather Station: WMR100N
Operating System: Win2012R2
Location: Norway
Contact:

Re: Google Analytics

Post by Snicker »

Like this?

Image
Where there's pleasure... there's always some pain!
-Snicker-
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Google Analytics

Post by water01 »

Correct
David
Image
Snicker
Posts: 20
Joined: Tue 07 Jan 2014 2:54 pm
Weather Station: WMR100N
Operating System: Win2012R2
Location: Norway
Contact:

Re: Google Analytics

Post by Snicker »

Thanx! Will lett it run a while an see. :)
Where there's pleasure... there's always some pain!
-Snicker-
Post Reply