• Hello,
    I am currently working on a new website and I am running some banners trying to monetize it and make some money to maintain the site as it takes off.
    A friend of mine owns a domain that receives some type in traffic and told me he would redirect it for now to my domain as long as i can give him the revenue from the banners on my site.
    To do that I would need to have a system to serve banners dynamically, like:
    – When a visitor comes from myfriendwebsite.com wordpress would serve set 1 of banners
    – All the other visitors to the site coming in from google and other sources wordpress would have to serve set of banners 2

    Is there a way to do that in wordpress?

Viewing 3 replies - 1 through 3 (of 3 total)
  • There are a few ways of doing this, but the easiest that I can think of is to check the referrer and see if it’s from one of the sources that you want to track and if it is set a cookie or a session value that tells you which banner to serve.

    Another solution is to set up DFP which is a professional ad delivery program which allows you to set parameters on who and which ads are served what, sometimes requiring a bit of a hack.

    You set it up then paste the code in, use DFP to manage your ads.

    Hi all, I’m new here, but familiar with WP, no expert. I’m trying to install code that will record the source site of web visitors who make an enquiry. ie at the bottom of their emailed enquiry something like this:

    referrer: https://www.facebook.com

    I have Contact Form 7 installed, but using options tied to Analytics isn’t practical for me.
    Here’s one I found but it doesn’t seem to work, only gives my own site url. https://www.fldtrace.com/wordpress/referral-conversion-tracking-with-wordpress-contact-form-7

    Any pointers to something similar or what’s wrong with this code, or my setup. I’m not much of a coder I’m afraid.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ad codes based on referrer’ is closed to new replies.