Results 1 to 3 of 3
  1. #1
    Full Member
    Join Date
    October 22nd, 2006
    Hiding Google ads etc for Affiliate Traffic
    There may be occasions when a new merchant wants to retain the revenue from advertising on his site while waiting for affiliate traffic to build up.

    Here is some code that the merchant can put into his site in place of the ads. This allows them to be shown to users that come directly to his site but they are hidden from users that come through an affiliate link.

    PHP Code:
    if (isset ($_COOKIE['AffiliateID'])){
    <img src="affiliatefriendly.jpg">
    <script>adsense javascript </script>
    The value $_COOKIE['AffiliateID'] ie the name of the cookie will vary between networks and in house programs but the code given will work for merchant on the ShareASale network.

    The code can be also be used to hide telephone numbers and any other form of leakage.



  2. #2
    http and a telephoto
    Join Date
    January 18th, 2005
    And as noted elsewhere, make sure that if you use this code that you have a note on the affiliate sign up page that tells affiliates to look at the site after clicking on an affiliate link. The first time an affiliate visits a site to go their pre-sign up checking, the ads will show.
    Deborah Carney

  3. #3
    Affiliate Manager qualityunit's Avatar
    Join Date
    January 8th, 2007
    Bratislava, Slovakia (European Union)
    I think not just cookie should be checked in your script, but also URL parameters
    (e.g. if visitor comes through affiliate link to your website for the first time, he has no cookie yet.)

    Also in case you use in your affiliate tracking software more affiliate link formats, you should adapt your script to fit them all.
    [SIZE=3][FONT=Arial]Viktor Zeman[/FONT][/SIZE]
    [B][URL=]Quality Unit [/URL][/B] Founder and [B][URL=]Post Affiliate Pro[/URL][/B] developer

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Featured: Google now hiding all referrers
    By Prosperent in forum Search Engine Optimization
    Replies: 2
    Last Post: September 24th, 2013, 01:36 PM
  2. How to generate traffic without google ads?
    By Danielias in forum Building Traffic, Newsletters & Advertising
    Replies: 28
    Last Post: June 25th, 2010, 07:59 AM
  3. Google Is An Affiliate - Product Listing Ads
    By Trust in forum Search Engine Optimization
    Replies: 26
    Last Post: December 10th, 2009, 12:11 PM
  4. google ads or affiliate programs
    By jimmy48 in forum Other Affiliate Networks
    Replies: 2
    Last Post: October 24th, 2008, 02:04 PM
  5. Blocks Google Ads From Affiliate Referred Traffic
    By affiliatemanager in forum Commission Junction - CJ
    Replies: 6
    Last Post: July 13th, 2005, 05:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts