Site Stats – Please don't count my visits
-
Hello, this is a AWESOME Plugin however, Site Stats counts my visits I think both when I’m not logged in and when I am logged in as the administrator. I have tried everything on the settings to prevent this but nothing works.
I sure wish I could just block my ip from being counted.
Please let me know when this will be implemented into the code?
That would be most AWESOME if you could…
Thank you…
Regards,
James
https://www.gojdhl.com
https://www.ads-software.com/plugins/jetpack/
-
I have need to access my site *not* logged in with some regularity. We NEED to be able to exclude IP addresses.
Is that functionality really that hard to implement?
I ran some tests on your site, and stats appear to be recorded properly. I couldn’t test things while being logged in though. Could you contact us via this contact form, so we can run some more tests with you?
We NEED to be able to exclude IP addresses.
Is that functionality really that hard to implement?
To the best of my knowledge, that’s actually never been suggested before this thread. ??
If this becomes a popular request, we’ll definitely consider it. However, it’s worth noting that for most people the existing settings are good enough. That’s most likely why we’ve never had such requests before.
Hi Jeremy, thanks for getting back to me…I don’t always want to be logged in when visiting my sites…I have to admit I have a few no follow pages my wife and I use daily while not being logged in as administrator and it skews my stat numbers dramatically I also work logged in too but the numbers seem way too high. Again it would be great if I could just block my IP address from being counted all together. I did see at least one other thread in this forum asking about this same issue a while back…Please let me know if you need me to do something…Thanks again for looking into this issue.
Regards, JamesTo the best of my knowledge, that’s actually never been suggested before this thread. ??
It has:
https://www.ads-software.com/support/topic/exclude-my-own-page-hits?replies=8
I’m afraid not. Jetpack Stats do not offer this [excluding an IP address] option.
–Jeremy Herve??
It has:
https://www.ads-software.com/support/topic/exclude-my-own-page-hits?replies=8
Nice catch! It looks like my memory is not as sharp as it used to be ??
I created an issue to track this suggestion here. If the request becomes popular, we’ll considering adding the option to a future Jetpack update.
Thanks for the feedback!
Thanks.
I fear though that only a very small percentage of regular Jetpack users check your GitHub repository issues tracker, or know of its existence.
I suspect that most people who run into this issue — for whom it’s a problem — just say the heck with it, and use Google Analytics.
I don’t expect feature parity with GA, but this seems to me a little thing that should be fairly easy to implement and a no-brainer.
Hi cacarr, I have to tell you I was thinking the exact same thing knowing that so many people will just give up and won’t even bother.
It’s so close to being an absolutely great tool but if it counts all my family’s visits I will definitely have to hook up Google Analytics. However, I hate to put more tools and stuff on my wordpress site as it’s already slow enough…LOL
I have been very excited about almost every new update that JetPack comes out with, thinking I bet they fixed the stats issue this time, but it never happens…LOL
Jeremy, I do appreciate your efforts…Thank you
Regards,
JamesJames:
Yeah,Google Analytics is just overkill sometimes and can be a pain to use, so I was excited to give this JetPack feature a try — but shortly after activating it found myself spending the next 30 minutes trying to figure out how to exclude my IP. ??
I fear though that only a very small percentage of regular Jetpack users check your GitHub repository issues tracker, or know of its existence.
That’s true. Don’t worry, though; we’ll add their vote to the issue whenever they send us an email about this, or post here in the forums.
I don’t expect feature parity with GA, but this seems to me a little thing that should be fairly easy to implement and a no-brainer.
While that can be implemented, it’s one more option to add to the interface, one more call to make to your database, and an option we’d have to synchronize with WordPress.com, and use on our servers when adding each visit to your stats. It’s not something we could do on your site, as grabbing the visitor’s IP and comparing it against a blacklist before to display the stats tracking code would impact the performance of your site.
This is not trivial. Each new option adds clutter to the admin interface, and has the potential to make things more confusing for new users. And we carefully weigh the impact of each new feature on the performance of your site before to implement.
That’s not to say we’ll never implement that feature, though. ?? We’ll definitely consider it if it becomes a popular request.
Until then, you could implement it yourself in a small plugin, by unhooking the
stats_template_redirect()
feature in specific situations:
https://github.com/Automattic/jetpack/blob/3.9.4/modules/stats.php#L55I hope this clarifies things a bit.
Thanks Jeremy,
Please delete my post if this discussion is not allowed ??
I am this far on one of my sites:
Editing jetpack/modules/stats.php
add_action( ‘template_redirect’, ‘stats_template_redirect’, 1 );However, I don’t know what modification I would make LOL
I would assume the value 1 might be changed to my ip but unless I know for sure I would not try to attempt it.If possible Jeremy…please give me a few more tips ??
Thank you very much!!!
Regards,
JamesPlease delete my post if this discussion is not allowed ??
Discussion is allowed and encouraged ??
Editing jetpack/modules/stats.php
I’d strongly recommend against editing plugin files, from Jetpack or any other plugin.
Instead, you can use WordPress’ action hook system to add, edit, or remove elements from your own plugin, or from your theme, even when those elements were added by other plugins.
You can read more about it here:
https://developer.www.ads-software.com/reference/functions/add_action/
https://developer.www.ads-software.com/reference/functions/remove_action/In your case, you’d want to store your own IP in an option, and then call that option, and use
remove_action()
to remove thestats_template_redirect()
function when a visitor has an IP that matches that one saved in your options.If you’re not familiar with WordPress’ action hook system, it might be easier to hire someone to do this for you.
I hope this helps.
Not as trivial as I thought then, but this …
Each new option adds clutter to the admin interface, and has the potential to make things more confusing for new users.
…I don’t really buy. A checkbox, “Exclude IP Addresses,” and a field — that’s not confusing.
I’ve been able to find quite a few mentions of IP addresses exclusion (the lack thereof) on various blog comments and such, in support questions for other stats plugins, and over on .com support — so I strongly suspect there’s more interest in this feature than y’all are aware of.
Ah well, I’ll probably uninstall Jetpack entirely as site stats was my primary interest — Google Analytics it is then.
I’ve been able to find quite a few mentions of IP addresses exclusion (the lack thereof) on various blog comments and such
Feel free to post the links here, or on the GitHub issue!
I chimed in on github. Need to exclude logged in admins always from stats, and not counting visits/clicks/etc from a specific IP would be great. Its a small thing, but accuracy sharpens the stick.
@trinity7 Thanks for the comment on GitHub.
As my colleague Brandon mentioned there, Jetpack actually excludes logged in admins from your stats by default. I’d recommend that you check your settings under Jetpack > Site Stats > Configure to make sure the default settings weren’t changed on your site.
- The topic ‘Site Stats – Please don't count my visits’ is closed to new replies.