Jump to:

10851 Posts in 2517 Topics by 1793 members

All other Modules

SilverStripe Forums » All other Modules » How can I get site statistics ?

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2339 Views
  • sryan
    Avatar
    Community Member
    2 Posts

    How can I get site statistics ? Link to this post

    I am using SS 2.3.1 and I came across the statistics module ( http://silverstripe.org/statistics-module/ ), downloaded from http://silverstripe.org/assets/modules/trunk/statistics-trunk-r70114.tar.gz.

    I installed and configured the module, and I got the top level menu for statistics from the admin menu. The error thrown is "Plotr depends on the Prototype framework (version 1.5.1).". The net result is the admin page hangs on loading due to a javascript exception.

    This comes from the statistics/javascript/plotr.js:22 where it is checking for the Prototype.Version.

    The framework inclusions is as follows:

    StatisticsAdmin.php:
    ...
    //Get rid of prototype 1.4.x
    Requirements::clear();

    //Load prototype 1.5.x
    Requirements::javascript("jsparty/prototype15.js");
    ...

    I can see that the jsparty/prototype15.js has Version set to 1.5.1.1, and I can see that the jsparty/prototype.js has Version set to 1.4.0_rc3.

    When I print the Prototype.Version in the js exception, I see that the version in play seems to be 1.4.0_rc3 rather than the 1.5.1.1 ( even though the inclusion suggests that it should use the newer version.

    I tried modifying/removing the version check, and then it complains about a "new Hash()" ( there is another post for this error on the forums somewhere ). I'm not sure why but I suspect that the Hash() function/class is not defined in the old version.

    So my question is this:

    1) Why is the incorrect Prototype version seem to be loading, and how can I debug this ?

    2) If there is an easier way to have/gather site statistics, how/what/where ( preferably with a working example ) ?

    Thanks,
    Sean

  • sryan
    Avatar
    Community Member
    2 Posts

    Re: How can I get site statistics ? Link to this post

    Also, I've just noticed that this appears to stem from the assets/base.js having the prototype.js defined. I'm new to SS ( and working from an install that I didn't create ), so if I'm missing something that I should, just point me to the right docs and I can read up.

    Thanks,
    /sr

  • rino
    Avatar
    Community Member
    12 Posts

    Re: How can I get site statistics ? Link to this post

    i haven't heard back many good things about the build-in (or now module-driven) silverstripe statistics. maybe using an external tool like Google Analytics is a better idea?

    2339 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.