Re: [phpOpenTracker-User] Average session length, access_statistics snag
Daniel Kehoe <[email protected]> Mon, 12 Jan 2004 07:27:44 -0800
| Newsgroups | gmane.comp.web.phpopentracker.general |
|---|---|
| Message-ID | <[email protected]> |
Clay Loveless, 'api_call' => 'access_statistics' returns a plot (image). Documented here: http://www.phpopentracker.de/docs/en/api-reference.api- calls.plot_access_statistics.html with an example in the examples sample report here in the distro: phpOpenTracker/docs/examples/tracker/graph.php The correct syntax is phpOpenTracker::plot( array( 'api_call' => 'access_statistics', 'range' => 'today' 'interval' => 'hour', 'mode' => 'line' ) ); It won't give you the the average session length. That would be interesting. Perhaps Sebastian can suggest how to obtain that easily. -- Daniel [email protected] On Jan 12, 2004, at 6:19 AM, Clay Loveless wrote: > Hello, > > I'm new to phpOpenTracker -- and am very excited about it! What a great > project! > > I'm getting pretty familiar with working with the API, but have hit a > few > snags. Note: I'm using phpOpenTracker-1.3.2 > > (I apologize if this is in the archive -- the SourceForge site is > *very* > flaky at the moment, and I've had trouble looking through the > archives.) > > The MAIN snag: > > I can't 'get' access_statistics! > > $stats = phpOpenTracker::get( > array( > 'api_call' => 'access_statistics' > ) > ); > > .... Returns "phpOpenTracker Warning: Unknown API Call > access_statistics." > > From what I can tell in a casual look through the source, > 'access_statistics' *should* be working, but it isn't. > > > I'm trying to get the access_statistics to calculate the average > session > length as a visitor surfs through the site I'm tracking. (Is that > already > available through another API call?) > > Thanks in advance! > > -Clay > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System offering > advanced branching capabilities and atomic changes on 50+ platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > Phpopencounter-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/phpopencounter-user ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html