D
D
dmitryosipov2014-09-04 23:45:58
PHP
dmitryosipov, 2014-09-04 23:45:58

How to get a referrer?

Essence:
You need to get textual information, namely the Vkontakte id and the keyword from the search engine with which he came). Further, this whole thing is written to the database
2 problems:
1) if a person came from a search, then the referrer is not displayed for some reason. It is generally empty
2) if a person came from VKontakte, then the ref is also empty (and if the link to my site is from vk, then vk.com/away.php is written in the ref)
What you need:
1) how to make it so that the ref says yandex.ru/?keyword
2) How to make the ref say vk.com/idXXXXXX (You need to get an ID)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
HangGlider, 2014-09-05
@HangGlider

Yandex started hiding 100% of referrers from the search :(
Google enabled HTTPS for 100% of users - referrers now...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question