Closed (fixed)
Project:
Open Web Analytics
Version:
6.x-1.0-alpha1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2011 at 17:58 UTC
Updated:
13 May 2011 at 02:56 UTC
Jump to comment: Most recent file
Comments
Comment #1
tagawa commentedThanks 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.
Comment #2
redndahead commentedI'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?
Comment #3
tagawa commentedThanks 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
owaobject fromDrupal.settingsbecause owa.js was being executed before theDrupalobject had even been created.I tried putting all of your JS code inside the
document.readyfunction 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
bodyto hopefully make the page load a bit faster, and checked for the existence of console so IE shouldn't be ignored anymore.Comment #4
padams66 commentedYou should be putting OWA's script tag in the if possible.
Comment #5
redndahead commentedGaaa it would be nice if I was the maintainer.
@padams66 what did you mean by the last comment.
Comment #6
padams66 commentedJus 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.
Comment #7
redndahead commentedA release has been made. Please start opening issues of any problems you have.