Closed (fixed)
Project:
Google Analytics
Version:
5.x-1.x-dev
Component:
Documentation
Priority:
Critical
Category:
Task
Assigned:
Reporter:
Created:
15 May 2008 at 19:36 UTC
Updated:
7 Jun 2008 at 20:22 UTC
Jump to comment: Most recent file
Comments
Comment #1
hass commentedComment #2
Shai commentedFor anyone who doesn't feel comfortable patching a file or reading a patched file. I've posted a new version of the read me followed by the current version at: http://privatepaste.com/41IfqYSi17
Also. You actually don't even need to patch the file to see what changes I'm doing. You can open the file in a text editor. Lines preceeded by a "+" are added and those with a "-" are deleted.
Shai
Comment #3
gregglesYeah - how many people lost analytics information due to the fact that they didn't know about this change? I did. I know at least one other person aside from Shai who did. This change deserves documentation.
That said, I believe this belongs in an UPGRADE.txt or into a drupal_set_message() in a googleanalytics_update_ID() function instead of the README.txt, though. README.txt should be used for things that are going to be true more permanently. The UPGRADE.txt is a place for things like this that changed from one version to another.
Also, this patch appears to remove some information about not tracking admin pages. Was that purposefully done?
So, I'd say this definitely needs to have the "tracking admin pages" part changed or addressed and then there's the debate about where to put this. BUT, I do agree with Shai that it should be taken care of quickly.
Comment #4
hass commentedI've already added messages in the upgrade... checkout. If users read the update results they would know what the new settings value is.
Comment #5
Shai commentedhass, great.
I'm attaching a new patch for the README.txt which just talks about the new tracking role functionality in general. This is in response to Greggles. Removed all the warning stuff I had previously written etc.
The new patch is also against the most recent dev version.
I'm also attaching a new file UPGRADE.txt as Greggles suggested which is where the warning info goes.
I had deleted that line about automatically not counting the admin stuff by accident. (Hass, what will happen if the site admin deletes the admin pages from the page settings set by default via the block visibility like settings?)
I like the idea of the drupal_set_message() in a googleanalytics_update_ID() but I'm not up to it right now.
Shai
Comment #6
hass commentedIf you delete this setting the pages are tracked... this gives you additional the ability to track admin part only... whyever you should do this... but it's possible. That's why this fieldset is collapsed by default :-)
Aside you are often writing version "1.4". Please keep in mind the next version will be "1.5". It is a major overhaul of all previous releases and logics not really comparable. The notice on project home may be "wrong" for 1.5... do don't write documentation for something that is outdated or partly outdated. I should really read all this stuff again...
Comment #7
michelleDunno if you realize this, but there is already an issue about this from way back when it happened and there is a note on the project page as a result of that issue... I thought he added it to the release notes as well but I could be misremembering.
Michelle
Comment #8
michelleHere's the issue, BTW: http://drupal.org/node/229220
Michelle
Comment #9
hass commentedSome points about the text:
1. Users must check their role settings after the upgrade!
2. You are telling users to check "page specific settings". I haven't done any logic change here. I only added configurable paths that have been hardcoded in past ("admin*") and added some more paths as they seems to be bad in tracking and may create privacy issues. I don't know why we should track users editing their nodes and so on and this is why the filter have been extended to
3. It wasn't very wrong that you removed the admin path line... but i think we should change the line to document the new default settings from #2. This way users are able to restore this value them self after a change and don't need to ask us and we are able to tell them to RTFM.
4. "If no boxes are checked, the code will be placed on all pages." is specific to the next 1.5, not 1.4. In 1.4 - nothing get's tracked if no role is checked...
5. I would remove "See the following issue for more background on this topic: http://drupal.org/node/248075".
Comment #10
Shai commented@hass
Oops. I fixed that.
I've changed the README.txt usage section to describe the new page tracking feature per your suggestion. See the new patch attached.
I'm assuming that the new UPGRADE.txt and README.txt will be for 1.5 and I've gone through both files and made clear what changes are 1.4 and 1.5. Please review and let me know if I got it right. @Hass: Any chance you'd be up to creating a CHANGELOG.txt for this module. That might help alleviate some of the confusion.
I've removed the "See the following issue..."
The new README patch (ga_new_document3.patch) is against the new 5-18 dev version.
To do: per your suggestion at: http://drupal.org/node/248075#comment-845791 I think it would be great to improve my sample code snippet at: http://drupal.org/node/248075#comment-845538. It would be nice to have a code snippet ready to go that allowed for both opt-out role filtering as in 1.3 AND allowed for path specific settings. By choosing the custom php for visibility settings in 1.5 the admin loses the possibility of using the path visibility functionality.
We're gettin' there.
Shai
content2zero
Comment #11
Shai commentedHmm,
The attachments I included in #10 got stripped when I used the preview button, arghh. I'm attaching them here.
Comment #12
hass commentedYep, we should work on http://drupal.org/node/248075#comment-845538 and add it to the GA handbook pages. I tried it yesterday night, but something was wrong...
Comment #13
hass commented1.5
Comment #14
Shai commented@hass
Done. See attached patch.
Comment #15
Shai commented@hass:
It is it throwing an error or is it not delivering the tracking code on the right pages? '
Remember that the roles included in the array are just sample role names, they need to be replaced with real role names from the specific Drupal install.
Shai
Comment #16
hass commentedNo, i haven't tried your code as it's missing the path_match part... I've added the path match part together with your code and something seems wrong. I need to investigate...
Comment #17
Shai commentedPost what you've done and I can try it, take a look as well.
Comment #18
hass commentedComment #19
Shai commentedHass,
How about this way:
I tested it and it works for me.
Shai
Comment #20
Shai commentedThis is a slight variation. It's better in that it reduces the chances that a url will be included in the don't show list simply because it has "admin", "node" or "user" in it's custom url by coincidence, not because it is one of those special pages. The downside to the following code is that it only works with clean urls turned on and you need to make slight modifications for clean urls off.
Shai
content2zero
Comment #21
hass commentedFollow up in http://drupal.org/node/260367 as this case if for the readme and upgrade docs patch.
Comment #22
hass commentedI've done a few changes. Please review.
Comment #23
hass commentedReminder: correct link to handbook http://drupal.org/node/261997
@all: Could someone of the subscriber take a look to the latest text patches, please? The next GA version will be released on next Sunday and I'd like to get this in before...
Comment #24
Shai commented@Hass, I looked at them and they look good. But I guess you want someone else to look at them. There is a missing word that I'd like to add to the UPGRADE.txt new file. I'll post that here soon.
That's a reminder for yourself, yes?
I made some edits to the handbook page you created (only the explanation, didn't touch the code).
Shai
Comment #25
hass commentedReminder is only for me or if you provide a newer patch :-)
Comment #26
hass commentedCommitted. THX for you help.
Comment #27
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.