D
D
Danil Trubitsyn2021-07-28 17:42:09
HTTP Cookies
Danil Trubitsyn, 2021-07-28 17:42:09

How to show a banner in Wordpress only to those who switched from ads?

You need to show a banner with a promotion only to those users who have switched from Yandex.Direct. The banner should be displayed on all pages of the site, not just on the landing page. It is highly desirable to implement through a plugin, because. I don't know the code.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Danil Trubitsyn, 2021-07-31
@ali3412

I did it using the if-so plugin. Through the condition of the presence of a part of the url. Works not only on the landing page, but also on the entire site, i.e. the fulfillment of the condition is obligatory only at the first contact.

S
Stanislav, 2021-07-30
@stamel

Show a banner through the ad inserter plugin in which you can already specify the conditions for whom to show.
Or, in the same plugin, enable php and do something like this:
<?php
if (strpos($_SERVER['HTTP_USER_AGENT'], 'yandex')) { ?>
<?php } ?>

E
Evgenij Popov, 2021-07-28
@evgenijpopov

I'll throw in 7 cents. You can add utm tags to the link from the advertisement. And for a site on wordpress, you can write code that will analyze the request to the server. I don't know the details, I didn't do it myself. I saw something similar somewhere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question