Answer the question
In order to leave comments, you need to log in
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
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.
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 } ?>
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 questionAsk a Question
731 491 924 answers to any question