With a lack of a module available and the need for us to test owa I have written a module. No guarantees that it's done the best way possible, but at least people can start testing it and hopefully giving me info on where it can improve.

Works on drupal 6.

CommentFileSizeAuthor
#3 owa.js_.tar_.gz738 bytestagawa
owa.tar_.gz10.53 KBredndahead

Comments

tagawa’s picture

Thanks for making this.
I'm trying to use it in Drupal 6 but not having much luck.
I have OWA installed with owa-data/logs/errors.txt showing various success messages and have made sure the tracking ID is entered in your module correctly with all users tracked. I've turned on debugging in the OWA config file but nothing is reported when I visit the site, so either:
* the module is not tracking any visitors (but the JavaScript code seems to be included in each page) or
* OWA is not logging anything (but I've given owa-data and all subfolders/files 777 permission)

Any ideas of what I can do next to find the problem?
Thanks in advance.

redndahead’s picture

I'll say one thing that needs to get done is there is a console.log in there that prohibits IE users from being tracked. Are you testing on IE?

tagawa’s picture

StatusFileSize
new738 bytes

Thanks for the quick reply, redndahead. No, not using IE - I use Opera.

I checked the console (don't know why I didn't earlier!) and it seems it couldn't create an owa object from Drupal.settings because owa.js was being executed before the Drupal object had even been created.

I tried putting all of your JS code inside the document.ready function which seems to be better, although I'm still getting no reports in OWA. At least I'm getting logs in error.txt, though, so my next job is to trawl through that (although no weird messages so far).

Attached is my updated version of owa.js - I also appended the tracker to the end of body to hopefully make the page load a bit faster, and checked for the existence of console so IE shouldn't be ignored anymore.

padams66’s picture

You should be putting OWA's script tag in the if possible.

redndahead’s picture

Gaaa it would be nice if I was the maintainer.

@padams66 what did you mean by the last comment.

padams66’s picture

Jus that the OWA tracker JS snippet should be placed in the of the page as opposed of the footer to get the most accurate tracking to occur.

redndahead’s picture

Version: » 6.x-1.0-alpha1
Status: Needs review » Closed (fixed)

A release has been made. Please start opening issues of any problems you have.