Statistics and Demographics
I built a little Ajax function that sends data to a script on the server. When the div is tapped, or a page loaded, or …, the data is sent.
Counting Views of a Single Web Page
A script can append a line to a log file every time a page is loaded. The number of lines in the log file is the number of page views.
Download page with optional log and count.
When you offer a downloadable file — PDF, MP3, image, etc — you may wish to know how many people actually download the file. Here is File Download Counter.
A frugal yet easy method to do redirects with logging.
Learn how to use an img
tag to load an image directory, like you usually do. Except this time, it also launches a script on the server.
If your hosting company lets you have your own log files, a lot of good information can be extracted.
Logging Email Opens and Clicks
This article describes how to log email opens and clicks to a CSV file. The software can log either or both email opens and clicks.
Sometimes it is desirable to know how often a certain link is clicked or tapped.
Values of variables and other events and statuses in JavaScript code can be logged in a file located on the server.
How many old, unused (or under-used) CGI scripts do you have lingering on your server, taking up space?
Get instant feedback from your newsletters; do a poll!
One would think counting page loads is a trivial task. Simply increment a count whenever a browser loads the page. Thinking about it a bit, one realizes the mechanism that records page loads is likely to be less than 100% accurate.
Do you know how many people using mobile devices access your site compared to people using computers?
It is possible to specify the URL of a PHP script as the src
value of an img
tag for extra functionality.
Running PHP/CGI Scripts with JavaScript
There is a lot of information available whenever someone visits a web page. Some sites can use certain information to provide a better user experience. For example, sites that customize content depending on device (browser, phone, pad) and whether or not the site visitor has previously visited the website.
Knowing how many hits a specific Twitter or Facebook post garners can be valuable information when planning future campaigns. Number of hits from robots compared to number of hits from people is also nice to know.
Statistics for Syndicated Content
Want page view and domain name statistics for your JavaScript syndicated content, yet don't want to pay for features in Master Syndication Gateway V2 that you won't use? Here is an answer: Use Master Syndicator V4, instead, along with the statistics gathering script presented here.
Statistics From Videos on Your Website
Statistics can be recorded in conjunction with the HTML5 video
tag.
Contamination from illegitimate robot log entries can seriously skew your conversion calculations. Many robots spoof their identity as real browsers.
A video view counter for your website.
An article voting system. Sometimes direct feedback is best.
All information in WillMaster Library articles is presented AS-IS.
We only suggest and recommend what we believe is of value. As remuneration for the time and research involved to provide quality links, we generally use affiliate links when we can. Whenever we link to something not our own, you should assume they are affiliate links or that we benefit in some way.