I
I
Ivan Huk2020-05-13 01:52:00
PHP
Ivan Huk, 2020-05-13 01:52:00

How to determine in PHP that the user came to the site from facebook or instagram ads?

How to determine in PHP that the user came to the site from facebook or instagram ads?
PS: Yandex Metrica and Google Analytics somehow determine this, but I need to do such a check on the server (do not offer UTM tags)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander, 2020-05-13
@AleksandrB

In what sense utm not to offer? This is the only reliable way to find out about the user. You make a link from utm to the handler page, then you send it to the main portal.

P
paran0id, 2020-05-13
@paran0id

https://developer.mozilla.org/en-US/docs/Web/HTTP/...
Is this?

H
hitkorn, 2020-05-13
@hitkorn

Doesn't a simple http_referrer solve your problem?

I
Ivan, 2020-05-14
@Rog2000

Wait, after all, the facebook offers a "pixel" that counts clicks from ads... This is a script, in my opinion, put in and hello)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question