Wordpress plugin to create a visit counter (with text)?

Asked

Viewed 3,083 times

0

How can I put a visit counter on my website Wordpress so that each access goes up +1 ?

I tried to search for plugins, but I did not find any that showed only the number of accesses in text form, what I found was just what counts statistics, as IP, browser, etc...

  • You can mention the plugins you found?

  • http://wordpress.org/plugins/who-hit-the-page-hit-counter/ - http://wordpress.org/plugins/free-counter/ - http://wordpress.org/plugins/counterize/ - among others...

1 answer

1


I found a script PHP + TXT so there is no need for database.

Link: http://www.codigofonte.net/scripts/php/contador/1352_jcr-contador-v1-0

I downloaded the script and sent it to the theme directory, and gave permissão 777 in the archive contador.txt, to save the data to the file .txt.

Then I went to the directory of my theme and edited the file header.php and put:

<?php include("contador/contador.php"); ?>

In the place I wanted to appear.

With this script it is possible:

  • Show visits from today
  • Show visits from yesterday
  • Show the total of visits
  • Show the record and date of visits

Problem solved!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.