Analytics 1.0 Released
  • LykaonLykaon
    Posts: 101
    This discussion is related to the Analytics addon.
    Initial release of a new plugin: Analytics.

    This is a pretty simple plugin that puts the latest Google Analytics javascript in the head section of every page of your forums.

    There is another plugin in the list, but I couldn't get it to work and it seemed to be using older Analytics code anyway. This one is fresh like Mentos.

    Note: In order for this to work for your site, you must change the $WebId variable in default.php. The file is well commented and it should be obvious where to change it.

    It was tested with Vanilla v2.0.6.
    Tagged:
  • TimTim
    Posts: 1,547
    image

    Approved.

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • LykaonLykaon
    Posts: 101
    @Tim: Woohoo!! Thanks for both the picture and the approval. I'm a real boy now.
  • ithcyithcy
    Posts: 1,290
    the old plugin was mine and was for v1.0 only. i haven't touched it in a long time but i'll update it to use the new GA code. thanks for the nudge.
  • LykaonLykaon
    Posts: 101
    @ithcy: You can just use mine! =D The one I was referring to, though, was by @derekdon and it was for Vanilla 2. I'm sure it worked just fine way back in January when it was posted. I suspect Vanilla 2 has changed substantially since then.
  • ithcyithcy
    Posts: 1,290
    thanks, i'll copy what's in yours.
    i won't pull mine down, only because maybe there's one person somewhere in the world with vanilla 1 who still needs it :)

    //edit: ah, ok, well i'll update mine anyway
  • TimTim
    Posts: 1,547
    Next step: Make the TrackingID configurable via an input box on the dashboard. :D

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • LykaonLykaon
    Posts: 101
    Tim said:

    Next step: Make the TrackingID configurable via an input box on the dashboard. :D

    That's a good idea. I'm about to go on a cruise, but perhaps when I get back! :)

    It doesn't seem like it would be that hard, and there are probably some plugins that would lend a good example.
  • RaizeRaize
    Posts: 695
    Doesn't work with Vanilla 2.0.9
  • remoukremouk
    Posts: 129
    @Raize Works fine in 2.0.14.
  • LyndsyLyndsy
    Posts: 11
    Might I suggest just pasting in the javascript for the tracking code in a Pocket? Pockets even let me omit it for specific levels of users, which is nice.
  • Hi, i'm on 2.0.16 and like your addon, unfortunately - it does not work for the (automatic) mobile theme.

    I got it to work by editing the mobile theme and adding the trcking code at line 45 of the file class.mobilethemehooks.php (in the Base_Render_Before method). Be sure to add \ before the ' characters!
  • Hi,

    I have updated my forum to the 2.0.16 version and this plugin doesn't work anymore.

    Does anybody know why ?


    Thanks
  • @Tim Your recommendation for a Settings menu does also apply for the Google Analytics from @derekdon ;-)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Who's Online 3

Altazarsahotataran422