Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 07-03-07
justhomdotcom's Avatar
pants monkey
 
Join Date: May 2005
Location: Shrewsbury
Posts: 2,136
Thanks: 1
Thanked 12 Times in 7 Posts
justhomdotcom is an unknown quantity at this point
  code for hiding banner if coming from affilaite

Ok often talked about but i've not seen any pointers to any code that will hide banners if the customer has come through an affiliate link (for example in our case if aff=aw is appended on the end of the url) - just me playing around but wanted to see how it all works.
__________________
Designer Men's underwear, swimwear click to join our program deadgoodundies.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-03-07
Registered User
 
Join Date: Jun 2005
Location: Hampshire, UK
Posts: 522
Thanks: 1
Thanked 1 Time in 1 Post
Darren M is an unknown quantity at this point
  Re: code for hiding banner if coming from affilaite

Quote:
Originally Posted by justhomdotcom View Post
Ok often talked about but i've not seen any pointers to any code that will hide banners if the customer has come through an affiliate link (for example in our case if aff=aw is appended on the end of the url) - just me playing around but wanted to see how it all works.
Not sure how you do it in PHP, but here's an ASP example which should give you an idea...


affFlag = Request.Querystring("aff") ' Get the input parameter from the URL

If affFlag = "" Then ' No aff link detected

Response.write "Show banner"

Else ' this must be an affiliate link

Response.write "Don't show banner, replace with something else"
Response.write "and don't show phone number! "

End If
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-03-07
morleymouse's Avatar
Super Member
 
Join Date: Aug 2003
Location: Costa Del Sheffield
Posts: 2,744
Thanks: 1
Thanked 10 Times in 6 Posts
morleymouse is an unknown quantity at this point
  Re: code for hiding banner if coming from affilaite

i wouldnt just check if 'aff' is part of the URL as a customer returning would see the banner.

You need to check in the local cookie to see if the aff is stored in there so something, in php, along the lines of

PHP Code:
if ($_COOKIE["local_affiliate_tracking_cookie_name"]) {
echo 
"buy online, not offline"; } else {
echo 
"biiiig banner"; } 
Something like that anyway
__________________
Dan Morley
Alpharooms.com
daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
My Blog | Cheap Holidays
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-03-07
Travel Pixel's Avatar
Travel Squared
 
Join Date: Sep 2006
Posts: 377
Thanks: 2
Thanked 1 Time in 1 Post
Travel Pixel seems to know their stuff
  Re: code for hiding banner if coming from affilaite

in php it could go something like this:

$afflink = $_GET['aff'];

if ($afflink != '') {
//dont show banner
}
else
{
//show banner
}

__________________
Affiliate Citizen
Holiday Reviews & Travel Deals || Travel Merchants: Please contact me if you have special offers or codes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-03-07
justhomdotcom's Avatar
pants monkey
 
Join Date: May 2005
Location: Shrewsbury
Posts: 2,136
Thanks: 1
Thanked 12 Times in 7 Posts
justhomdotcom is an unknown quantity at this point
  Re: code for hiding banner if coming from affilaite

Quote:
Originally Posted by morleymouse View Post
i wouldnt just check if 'aff' is part of the URL as a customer returning would see the banner.

You need to check in the local cookie to see if the aff is stored in there so something, in php, along the lines of
Ahhh yes sorry forgot we already do that, if they come from an affiliate we set a local cookie called network
__________________
Designer Men's underwear, swimwear click to join our program deadgoodundies.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-03-07
morleymouse's Avatar
Super Member
 
Join Date: Aug 2003
Location: Costa Del Sheffield
Posts: 2,744
Thanks: 1
Thanked 10 Times in 6 Posts
morleymouse is an unknown quantity at this point
  Re: code for hiding banner if coming from affilaite

whatever code you use to show the network tracking code on your thanks page could be replicated to show different banners for affiliates and then if no network cookie show what you want
__________________
Dan Morley
Alpharooms.com
daniel at alpharooms dot com - Hotels, Flights, Airport Transfers, Care Hire + More! sign up
My Blog | Cheap Holidays
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-03-07
justhomdotcom's Avatar
pants monkey
 
Join Date: May 2005
Location: Shrewsbury
Posts: 2,136
Thanks: 1
Thanked 12 Times in 7 Posts
justhomdotcom is an unknown quantity at this point
  Re: code for hiding banner if coming from affilaite

Ahhhh good point - never thought of that
__________________
Designer Men's underwear, swimwear click to join our program deadgoodundies.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-03-07
Registered User
 
Join Date: May 2004
Location: London Uk
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
a4uforummember is an unknown quantity at this point
  Thumbs up Re: code for hiding banner if coming from affilaite

Quote:
Originally Posted by justhomdotcom View Post
Ahhhh good point - never thought of that
how its done just hom... i have no idea, its just really pleasing that you want to do it. It sets a really good example for many other merchants who are not prepared to go that extra mile for their affiliates.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 07-03-07
Travel Pixel's Avatar
Travel Squared
 
Join Date: Sep 2006
Posts: 377
Thanks: 2
Thanked 1 Time in 1 Post
Travel Pixel seems to know their stuff
  Re: code for hiding banner if coming from affilaite

im suprised that all merchants dont do this before embarking on an aff campaign - its pretty straightforward really and everyone is always moaning about phone numbers.

__________________
Affiliate Citizen
Holiday Reviews & Travel Deals || Travel Merchants: Please contact me if you have special offers or codes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 07-03-07
justhomdotcom's Avatar
pants monkey
 
Join Date: May 2005
Location: Shrewsbury
Posts: 2,136
Thanks: 1
Thanked 12 Times in 7 Posts
justhomdotcom is an unknown quantity at this point
  Re: code for hiding banner if coming from affilaite

We haven't got anything on our site that needs it, i was just wondering how it was done (and im sure that other merchants that do need it would benefit)
__________________
Designer Men's underwear, swimwear click to join our program deadgoodundies.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 08-03-07
Super Moderator
 
Join Date: Jul 2004
Location: Surrey
Posts: 866
Thanks: 4
Thanked 5 Times in 3 Posts
sgpratley seems to know their stuff
  Re: code for hiding banner if coming from affilaite

It should really be put in as part of the merchant set-up by the networks.
If you have to collar your techies to add the the cookie tracking, you may as well get them to do this at the same time.

I imagine it's a lot harder to get it done later when the merchant starts seeing all those free sales coming in.
__________________
Stephen Pratley
Shine Marketing Affiliate Programme Management
Digg this Post!