Questions tagged [hitcounter]

A web counter or hit counter is a computer software program that indicates the number of visitors, or hits, a particular webpage has received. Once set up, these counters will be incremented by one every time the web page is accessed in a web browser.

A web counter or hit counter is a computer software program that indicates the number of visitors, or hits, a particular webpage has received. Once set up, these counters will be incremented by one every time the web page is accessed in a web browser.

The number is usually displayed as an inline digital image or in plain text or on a physical counter such as a mechanical counter. Images may be presented in a variety of fonts, or styles; the classic example is the wheels of an odometer.

The counter is often accompanied by the date it was set up or last reset, otherwise it becomes impossible to estimate within what time the number of page loads counted occurred.

Some websites have been known to offer prizes to the visitor who makes the web counter roll over to a specific number. Such an event is known as a kiriban.

Source:http://en.wikipedia.org/wiki/Web_counter

109 questions
16
votes
5 answers

Display number of visitors of google analytics on website

A client asked me to display the number of hits/visitors in their website. I would like to know how can you do display this. I would insert it in my footer as displayed: If not possible with google analytics, do you know of a snippet which will…
14
votes
4 answers

How to implement a basic page view counter for a GitHub-Pages-powered site?

I want to host a Jekyll blog using GitHub Pages. I have purchased a license to display a web font for up to 50.000 page views/month. I order to not violate this agreement, I need to implement some kind of mechanism to count page views, so that I can…
typeduke
  • 6,494
  • 6
  • 25
  • 34
5
votes
2 answers

Using 'incr' with spymemcached client

I am trying set up a very basic hit rate monitor in memcached using the spymemcached-2.8.4 client however the value stored in memcached never actually seems to increment... Is this a bug or am I missing something? public static void…
travega
  • 8,284
  • 16
  • 63
  • 91
4
votes
4 answers

How can I visit a webpage without incrementing the hit counter?

I frequently visit a certain page on the web to view the hit-counter, but my visit is counted every time and it's inflating the number of actual hits. Is there a way to visit the page without adding another hit to the hit counter?
Keyslinger
  • 4,903
  • 7
  • 42
  • 50
4
votes
3 answers

Using Memcache as a counter for multiple objects

I have a photo-hosting website, and I want to keep track of views to the photos. Due to the large volume of traffic I get, incrementing a column in MySQL on every hit incurs too much overhead. I currently have a system implemented using Memcache,…
Justin
  • 9,419
  • 7
  • 34
  • 41
3
votes
5 answers

How do I keep track of how many times an external link is clicked?

I have a site affiliated with a university and we want to link to another site that has a certain teaching program. How can we track the number of times this link has been clicked from within our website?
3
votes
1 answer

Blogger - get view counter's value with JavaScript?

I am only able to fetch the value after HTML is finished loading by using this code: var array = $('#Stats1_totalCount strong').map(function(){ return $(this).text() }).get(); var vcount = ''; for (i = 0; i < array.length; i++) { …
Louis55
  • 408
  • 6
  • 17
3
votes
2 answers

Hit Counter in Codeigniter

I have the code below: (Step by step) Put counter.txt in APPPATH . 'logs/counter.txt' Make counter_helper.php set in APPPATH . 'helpers/counter_helper.php'; Autoload newly created helper in APPPATH . 'config/autoload.php' file; Make…
ariyanti dwiastuti
  • 95
  • 1
  • 3
  • 10
3
votes
2 answers

PHP MySQL image hit counter

I'm new to PHP and have been working on a hit counter. The hit counter works great but now I want to convert the numbers into images. I have created 12 images 0-9, a spacer, and a comma image. I have searched high and low for a hint of what I need…
2
votes
1 answer

How to make visits count seperate for each item

Hello I am making django app, i would like to add visit counter feature but seperate for each item. I think it would be a nice feature. def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) …
user16476339
2
votes
2 answers

Simple visitor counter for github blog page

Back in the day, much before there was google analytics, there used to be simple visitor counter for webpages. It was just an updating counter which you could link on any page & the page count would be updated each time the page had a hit. Is there…
user93353
  • 13,733
  • 8
  • 60
  • 122
2
votes
3 answers

How to reset a persistent counter at a particular value?

I had asked a question earlier( How to keep this counter from reseting at 100,000? ), and now have a follow-up question. I have another version of the counter in question that can be told to reset at a certain number, and I would like to make sure…
mobilestimulus
  • 180
  • 1
  • 14
2
votes
2 answers

PHP multiple clients accessing same file

I started playing with PHP, and saw this code snippet that is supposed to act a hit counter for a webpage: /* counter */ //opens countlog.txt to read the number of hits $datei = fopen("/countlog.txt","r"); $count =…
Kasra
  • 3,045
  • 3
  • 17
  • 34
2
votes
1 answer

PHP page hit counters in database

I run a podcast network and I'm redoing my site from scratch. One of the features on my network is to listen to podcasts directly from the site in an HTML5 player. I have all that functionality working just fine, but I'd like some analytical data…
Mark Bogner
  • 451
  • 1
  • 5
  • 19
2
votes
1 answer

Page hits counter - Am I overexerting the database?

I've built a simple hit counter on my website (PHP & MySQL, using Codeigniter as my framework). This is the table I use: CREATE TABLE page_hits (id INT NOT NULL AUTO_INCREMENT, page_url VARCHAR(350) NOT NULL, ip VARCHAR(11) NOT NULL, hits INT NOT…
einav
  • 553
  • 9
  • 27
1
2 3 4 5 6 7 8