Closed (fixed)
Project:
Google Analytics
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2007 at 22:21 UTC
Updated:
23 Feb 2008 at 20:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
bluepuma commentedModule dooesn't work - at least according to the settings.
I searched around and this (http://drupal.org/node/179026) proves to be true:
"Define what user roles should not be tracked by Google Analytics."
has to be reworded to
"Define what user roles should be tracked by Google Analytics."
Then it works as planned.
Who will fix this in the CVS?
Comment #2
duntuk commentedthanks bluepuma... it worked after checking the boxes....
yeah, that's pretty retarded wording... it should definitely be reworded...
Comment #3
brianpkennedy commentedI faced this problem this morning and faced 2 problems:
1) the not track/track problem
2) I was using a custom theme that was not properly set up to call hook_footer(). Our theme_closure output a standard footer with links, and I updated it with
Hope this helps, this problem seems to be documented in multiple tickets.
Comment #4
robloachConfirmed that the tracking code isn't being inserted..... http://www.robloach.net . The module is enabled and the account configuration is setup properly.
Comment #5
robloachIt seemed it was a documentation/design issue.... This patch should fix it.
Comment #6
buddaSomebody else submitted the patch for Drupal 5 with the retarded wording and inverted logic. I agree that it doesn't "feel" natural - but all the code in the patch was working that way.
The other issue with the setting just not working in the D6 branch was also fixed in the D5 branch a while ago -- i just haven't been involved in the D6 branch yet. I thought Hass was handling it.
Comment #7
robloachWell, this patch fixes it. I'm not sure what the status is for the Drupal 5 branch, but this fixes it for Drupal 6. I'll stick it into the CVS the issue is given a RTBC.
Comment #8
hass commented@Rob: This is not correct... "core" line is added by packaging. And the double quotes are not necessary. Remove both lines from your patch, please.
Comment #9
robloachComment #10
robertgarrigos commentedgreat, this fixes the problem. for me it's RTBC
Comment #11
robloachComment #12
hass commentedSomething is not logic here... D5 and D6 are the same.
I checked the code inside _googleanalytics_track(). Now after we have changed the description
"Define what user roles should be tracked by Google Analytics."the check boxes looks wrong.I think this should looks like this in D5 and D6:
This make sure:
1. if a role or user 1 is not checked, nothing get logged.
2. If a user is inside one checked role he get's logged.
3. if a user is in a role that shouldn't be logged, but in a second role that should be logged - he get's logged.
4. by default we do not log anything
Comment #13
hass commentedAhh, no this don't work. I go to bed and think about this again later...
Comment #14
robloachThe patch I provided fixes the logic. It was the description that was deceiving, and was not reflecting the checkboxes correctly. The patch I provided fixed that. Checkboxes should default to off.
Comment #15
hass commented@Rob: No, the patch is missing something. See the following. It tells is we should NOT track a role if the role should be tracked... that's wrong.
I'm working on a new patch... wait some minutes.
Comment #16
hass commentedNew D6 patch with cleaned up logic and documentation.
Comment #17
hass commentedI have committed the patch in #17 to CVS after testing. Now we need to back port this patch to D5.
Comment #18
hass commentedI leave this to budda to commit this into D5. Patch attached.
Comment #19
robloachExactly, that's the key here, because the description given to the user is:
'#description' => t('Define what user roles should not be tracked by Google Analytics.'),... "should not be tracked". If you're going to reverse the logic here, you're going to also have to change that description.
Comment #20
hass commented@Rob: Latest code name the description
t('Define what user roles should be tracked by Google Analytics.'),. The NOT is removed and therefor logic must change. Check out the latest D6 dev. All is changed and should now work like a charm.Comment #21
hass commentedComment #22
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.