I added links to CCount and then shortened with Bit.ly but when I look at statistics CCount shows visits twice.
Is there any solution to this?
Counts clicks twice
Re: Counts clicks twice
Does the same thing happen in you use original CCount generated links?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: Counts clicks twice
No, this only happens when I shorten with Bitly.
Re: Counts clicks twice
It appears Bitly sends a bot to the link used for something like determining popular links.
You can try opening click.php and just below add
You can try opening click.php and just below
Code: Select all
define('IN_SCRIPT',1);
Code: Select all
if ( isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'TweetmemeBot') !== false)
{
die('');
}
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: Counts clicks twice
Thanks. But if I insert this code, will my Twitter statistics still show clicks and country or they won't work?
Re: Counts clicks twice
It will block a bot used by Bitly, not your Twitter account.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: Counts clicks twice
I've added the code, but unfortunately it doesn't solve the problem.
CCount shows 10s times more clicks than Twitter.
CCount shows 10s times more clicks than Twitter.
Re: Counts clicks twice
In that case I can't be of help - CCount works fine (as proved if you use CCount generated links), but Twitter (or Bitly) probably verifies links and CCount counts visits from their bots.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools