Support anonymous user tracking (+ Improve frontpage presentation)
vstmusic - October 31, 2008 - 15:44
| Project: | Clickpath |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
Description
How make the block visible by anonymous users ? Possible ?

#1
No response ?
#2
As the module stands there is a critical bug #216308: call to undefined drupal_get_path_alias but it otherwise works with anonymous users, you just have to set the permission for anonymous to see the block.
Note, the latest patch in that issue at this time would mean clickpath wouldn't work for anonymous users ...
#3
Version 1.1 effectively keeps paths from being stored by the module for anonymous users. To provide anonymous user support there will need to be a solution to the problems identified in #216308: call to undefined drupal_get_path_alias. I am open to a solution but will not being pursuing one myself any time soon.
#4
+1 subscribe
#5
Changing priority and status.
#6
Subscribing
#7
What more info is needed?
Seems to me this feature could work just fine if page caching is turned off. With caching turned off all the right modules would be loaded and the problem from http://drupal.org/node/216308 (call to undefined drupal_get_path_alias) would never show itself.
I propose to replace the check for
$user->uidwith a test forfunction_exists('drupal_get_path_alias')and be done with it.Thoughts?
#8
I believe that would work fine, but needs a patch (hence status back to active) and testing.
#9
I think there should be some help text in the README but probably also the admin page explaining that page caching must be off for clickpath to work for anonymous users.
#10
OK, I rolled the patch and everything works great for anon users, even with normal (not aggressive) caching on.
Note, I added another enhancement to this patch, concerning the home page treatment. The default behavior (hardcoded 'Home') is not very helpful. I added the ability to specify this string in module settings and if it is not specified, default to 'Home' and if it is set to nothing, use the site name.
Everything is tested and ready to commit.
#11
RTBTC indeed!
Works like a charm. Thx!
#12
Could you attach full clickpath.module to work for anonymous users ?