New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-Think skip tracking filter #103
Comments
More context: https://wordpress.org/support/topic/logged-in-users-12/ |
I agree that the function should be rewritten. There should only be one condition or conditional function in each if block and all of then should be able to be disabled using a filter. And additional filter at the end should allow skipping the teaching due to other conditions. |
Agree on that, however a user should be able to white and blacklist on arbitrary conditions, that's what the hook is for in my opinion. To not overload the existing hook, we might consider adding a second hook to filter the default settings. like Thinking further, an array of 9+ booleans is not what comes to my mind when I think of comfort. What about adding a settings page checkboxes instead? |
I think that's a great idea! I stumbled upon another related issue in the support forums (about the first block "Skip tracking via User Agent."):
Then there is a block about "Skip tracking via Referrer check and Conditional_Tags.": I think I am not sure about |
@2ndkauboy I am not sure if you read the two last comments on this ticket. What about using a user faced setting instead of a filter? Additionally I don't think that every filter is necessary here. Why do you want to track the visit of the robots file or a trackback call? And Feed, Search or 404 views should add those info in the database IMHO, so that we can show this info in the dashboard, like the mobile usage mentioned in #104 Maybe we could extend this with more boolean values, like |
Sorry, I have not seen your latest comments, before I worked on the patches. We could easily remove some of the filters/conditions. A settings page would be nice, but is also quite a lot of work to be done. |
Yes and No.
No problem. Your solution is great, if we decide against a settings page.
Hand full of settings API calls and a common Boolean sanitizer is not what I would call "a lot", more of a copy&paste orgy, but you're right. We should evaluate if the effort would bring benefit for more than a few users. |
Added three options to not skip tracking. preview, trackback, 404 and robots are still hardcoded.
I think so. Although we probably should either revert the settings for feed and search tracking or document it. JS snippet is not included there, so if those pages are cached, it is far from trivial to consistently track users there. And even if the description does claim that, it would always raise a "why"... |
I'm not convinced of the usage of the skip tracking filter.
For example: If someone wants to track a Membership site (or community site with BuddyPress) it would be necessary to track logged in visitors. But our approach is to exit the skip_tracking function if the filter is not null.
The user needs to set the filter and he/she needs to copy all the other code lines to just remove
is_user_logged_in()
which is not as easy as it could be.https://github.com/pluginkollektiv/statify/blob/master/inc/class-statify-frontend.php#L139-L176
For example:
The text was updated successfully, but these errors were encountered: