How to Display Ads Only to Search Engine Visitors in WordPress


How to Display Ads Only to Search Engine Visitors in WordPress
Courtney Page

The code above analyzes whether the Referrer agent is from any type of Search URL which includes Google, Yahoo, Delicious, etc. If a visitor’s browser says that the Referrer Agent is from any search site that we have specified, it will store a cookie on their browser called ‘sevisitor’ for a duration of 1 hour from the time they visited your site. Most search visitors do not go on the second page, but if your site is optimized to increase pageviews or has interesting content then, they will visit additional pages. In that case, WordPress will display the Search Engine Specific Ad that you have specified to these users for the duration of one hour from the time they first visited your site. If this user bookmarks your site and comes back to it one day later because they like your site, then they will be considered your regular reader and will not see the Search Engine specific content.

How to Display Ads Only to Search Engine Visitors in WordPress
Cherelle Delossantos

The code above analyzes whether the Referrer agent is from any type of Search URL which includes Google, Yahoo, Delicious, etc. If a visitor’s browser says that the Referrer Agent is from any search site that we have specified, it will store a cookie on their browser called ‘sevisitor’ for a duration of 1 hour from the time they visited your site. Most search visitors do not go on the second page, but if your site is optimized to increase pageviews or has interesting content then, they will visit additional pages. In that case, WordPress will display the Search Engine Specific Ad that you have specified to these users for the duration of one hour from the time they first visited your site. If this user bookmarks your site and comes back to it one day later because they like your site, then they will be considered your regular reader and will not see the Search Engine specific content.

Display Adsense Ads Only to Search Engine Visitors in WordPress
Aurea Terrell

What the above code does is it analyzes whether the referring agent includes any type of search URL from Google, Yahoo, Delicious etc.… Let’s say, if a visitor entered your site from Google Image search, then it will store a cookie on their browser with the name “sevisitor” for 1 hour from the time they visited your site. If the same visitor has bookmarked your site and visited after that hour, then he will be treated as a regular visitor and the ads will not be shown to him.

Be the first to comment

Leave a Reply

Your email address will not be published.


*