I
I
Igor2015-11-29 16:21:29
css
Igor, 2015-11-29 16:21:29

How to connect a counter to a site that shows who came from where?

What kind of counters are there?
I know that there are some that show uniques, and there are others that show from which site, etc.?
Thank you!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vitaly Inchin ☢, 2015-11-29
@In4in

Catch via JavaScript document.referrer, put a cookie that will show next time if the user was here. Next, send a request to the desired script via ajax . Profit!
All the same is possible in PHP.

P
Pavel Volintsev, 2015-12-04
@copist

You can put the Yandex.Metrics or Google Analytics script.
I want to note that in any case, they do not take into account transitions from protected to unprotected sites.
That is, when moving from httpS:/_/domain1.ru to http:/_/domain2.ru, document.referrer will be empty or inaccurate information)
The restriction is implemented at the browser level.
Can't be disabled.
You can fix it if you make your site on httpS.

N
NibiruanChild, 2015-12-12
@NibiruanChild

Of the ready-made solutions, it is worth looking towards Yandex.Metrica. He knows how to count even very tricky things.
Some people also like Google Analytics and LiveInternet.
There are many other ready-made options, but they are not listed, although it is possible that there are mega-cool counters in the bins of the Internet, which are simply not known to many
. How to install? Go to the site, register, click "add counter" and follow the instructions, usually there will be a piece of code that you need to insert into the site page template or on each page if the site is not generated by the engine.

J
Jacob, 2015-11-29
@Logrise

Here are 2 videos about which counters are best to use and how to install ... for an example.

A
Andrey Chursin, 2015-12-02
@AndreyChursin

The browser sends all the information to the server, so catching it on the server (maybe php) would be more logical.
If there is no access to the source code, there are a lot of plugins (if you don’t write in js yourself!))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question