Counter not working

2022 Jul 21 NEOPETS PASSWORDS: This is a reminder that you should be using UNIQUE passwords for all of your accounts (including NeoMallers) - especially the important ones. Many browsers have built-in password managers to help you generate complex passwords and keep track of these. For more information, please visit JellyNeo's post.

12 posts / 0 new
Last post
jealith's picture
Offline
Last seen: 23 hours 54 min ago
Joined: 22/06/2016 - 4:31pm
Counter not working

Sorry I wasn't sure who to contact about this. It was working fine yesterday. Today it's blank. Help please?http://www.neopets.com/browseshop.phtml?lower=2240&owner=jealith&

My counter has started working again but it says E where #viewing is instead of a number. Must be something Neo did to the site because I haven't changed my code at all.

neoatic_101's picture
Offline
Last seen: 1 year 9 months ago
Joined: 08/08/2012 - 11:26am

Mine hasn't been working either. :/

jetcitywoman13's picture
Offline
Last seen: 6 months 1 week ago
Joined: 29/12/2008 - 2:44am

I noticed that they are not working when you look in the shops, but when I log in here I see I am still getting hits.

ayamayei's picture
Offline
Last seen: 5 days 12 hours ago
Joined: 05/04/2009 - 11:17am

I actually logged on here to see if anyone else said something! It's frustrating because I know I should be getting huge page hits, but it's showing I'm at under 100 for the day. I really hope we don't lose this information because I'm so proud of my total number.

peetree87871's picture
Offline
Last seen: 1 month 1 week ago
Joined: 30/09/2007 - 9:03pm

There was a recent change in regards to tracking for most popular browsers and so a lot of the hits aren't being counted unfortunately

Brandon James

saudor's picture
Offline
Last seen: 1 week 2 days ago
Joined: 10/06/2007 - 12:30pm

The issue arises from the privacy features built into modern web browsers (chrome and safari mainly). Normally, when people load your shop with your banners, counters, etc, your browser sends the URL of that shop to the servers hosting those images. So when your counter is loaded, your browser normally tells the server where that visitor was accessing the counter from.

Neomallers was built to save those stats when it receives this information from the browser. This is how the &banner, &hut, etc work. However, it also uses this information to make sure only you can use your counter from your shop. For mallers, this means if your counter is loaded from your hut in the marketplace, that hit is ignored by neomallers (and rightfully so) because that hit is not a hit from someone entering your shop. They're just loading the hut and your shop could be at the bottom of the hut, etc.

The problem arises with newer versions where your browser only tells NeoMallers that it's loaded the counter on neopets.com. This tells our server nothing as it has no idea whose shop it was loaded and cannot tell the difference between a load from browseshop.phtml (your shop) vs market.phtml (the hut). Unfortunately, a fix is not possible at this time as the problem seems pretty complex (at least without the use of javascript which neopets blocks). I did patch the code so that it will continue to ignore those hits but still display your stats anyways (hence the "E").

This also means that the other neopets counters are completely broken and cannot be fixed. Without the referring url information being sent to us, the server cant tell if "saudor" is the petpage, the user lookup or the pet lookup, etc.

That being said, it is possible to create a "normal" counter based on the shop counter code. It's basically like a normal counter usable anywhere. This version of the counter should be enough for lookups, petpages, etc. It can still inflate hits if someone takes the counter and puts it on a high traffic page but i can still restrict the counter to only work on neopets.

-----------------------------
Protect your account
http://www.neopets.com/~punchback_bob
CG information & more

jealith's picture
Offline
Last seen: 23 hours 54 min ago
Joined: 22/06/2016 - 4:31pm

Thank you. At least we now know what the problem is.

saudor's picture
Offline
Last seen: 1 week 2 days ago
Joined: 10/06/2007 - 12:30pm

An update to the shop counters! I removed the validation checks so hits should get counted better than they are now. A few side effects.

1.) Marketplace will now be counted towards your totals since the validation checks also made sure those hits came from your shop and your shop only. Without this information, there is no way to check for this.

2.) Stuff like &banner, &nb are all dead and wont work until i can come up with a workaround. Everything will get counted into other (unless you are using firefox or any old versions of chrome, etc that hasn't removed this functionality

3.) These changes will be pushed to other counters as well (e.g. userlookup)

-----------------------------
Protect your account
http://www.neopets.com/~punchback_bob
CG information & more

Crow's picture
Offline
Last seen: 7 months 1 week ago
Joined: 12/05/2015 - 9:51am

The images appear broken for the counters. Is that a known issue right now? I'm using Chrome.

saudor's picture
Offline
Last seen: 1 week 2 days ago
Joined: 10/06/2007 - 12:30pm

Can you link me to a shop where it's broken? They were broken for a bit but should not be broken now

-----------------------------
Protect your account
http://www.neopets.com/~punchback_bob
CG information & more

o_ya_toe_knee_is_gr8's picture
Offline
Last seen: 7 hours 21 min ago
Joined: 14/05/2010 - 8:23pm

does the relatively recent https addition to most of Neopets (I think the Neoboards are excluded?) affect counters showing the visitor numbers? I view say a petpage with the URL as https and the image is broken but I manually change it to http and the image is there but I can't see what the numbers are (today, total, #viewing) which are only showing dashes but Last Visit does show recent dates

Pages