Skip to main content
Topic: [ADDON] Google Analytics tracking (Read 14459 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[ADDON] Google Analytics tracking

A very small and quick addon that introduces a couple of admin settings to add a Google Analytics tracking code to the pages of the forum.
By default admin pages are excluded (I should have excluded the moderation center as well...), but there is a checkbox to enable the tracking here as well.
And another option is to track only guests. I'm not sure if the specular (track only registered members) is worth. Let me know. ;)

Repository:
https://github.com/emanuele45/GAnalytics
Last Edit: November 10, 2014, 08:06:43 am by emanuele
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Google Analytics tracking

Reply #1

Fastest addon ever released :D

I'll try it ;) thank you!
sorry for my bad english

Re: [ADDON] Google Analytics tracking

Reply #2

lol

That was easy. ;D
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Google Analytics tracking

Reply #3

Sweet :)

Re: [ADDON] Google Analytics tracking

Reply #4

Good work @emanuele :thumbsup:

Re: [ADDON] Google Analytics tracking

Reply #5

Useful :)

There is small 'typo' in uninstall instructions, there should be <remove-file but it is <require-file

/edit:
One more typo, also in uninstall instruction. After LANGUAGEDIR/english there should be / :)
Last Edit: November 09, 2014, 11:38:38 am by phantom

Re: [ADDON] Google Analytics tracking

Reply #6

 emanuele blames copy&paste... O:-)
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Google Analytics tracking

Reply #7

The addon is not working. I enter the code and press save, but it doesn't save it.

Re: [ADDON] Google Analytics tracking

Reply #8

Updated with the fixes from @phantom thanks!

@Alphonse is the code you have any different from the "UA-1234567-1" structure?
Bugs creator.
Features destroyer.
Template killer.

 

Re: [ADDON] Google Analytics tracking

Reply #9

@emanuele same

Re: [ADDON] Google Analytics tracking

Reply #10

Strange, it works fine here...

Try copy and pasting the example in the comment next to the field.
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Google Analytics tracking

Reply #11

I see the problem.

is saves when I type UA-1234567-1
but when I type mine it doesn't. I believe it 's cause mine has 8 numbers in the middle,  UA-12345678-1

Re: [ADDON] Google Analytics tracking

Reply #12

Ahh!
I'm not much into GA stuff, so I thought they were all the same, but I also expected some may be different. lol

Quick fix, open the GAnalytics.integrate.php and change the two 7 here:
https://github.com/emanuele45/GAnalytics/blob/master/GAnalytics.integrate.php#L54
and here:
https://github.com/emanuele45/GAnalytics/blob/master/GAnalytics.integrate.php#L71
to 7,8 (seven comma eight)
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON] Google Analytics tracking

Reply #13

@emanuele
It works now, thanks for your help   :D

Re: [ADDON] Google Analytics tracking

Reply #14

Thanks for the add-on (and the fix)