Counter not working

7 posts / 0 new
Last post
jealith's picture
Offline
Last seen: 3 hours 10 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 month 1 week ago
Joined: 08/08/2012 - 11:26am

Mine hasn't been working either. :/

jetcitywoman13's picture
Offline
Last seen: 1 month 2 weeks 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: 3 weeks 6 days 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 day 2 hours 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: 8 hours 8 min 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: 3 hours 10 min ago
Joined: 22/06/2016 - 4:31pm

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