Website Babble Webmaster Forums  


Go Back   Website Babble Webmaster Forums > Creating a Website > Miscellaneous Website Questions

Your WB Notifications

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-21-2009, 12:29 PM
kelevraco's Avatar
Supreme Babbler
 
Join Date: May 2009
Location: Colorado
Posts: 511
kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)
Send a message via MSN to kelevraco Send a message via Yahoo to kelevraco
Default How to create a tracking cookie??????????

I am looking for information on how to do this. I would like to offer an affiliate program for one of my sites. But I need to learn how to write a tracking cookie for the sites that carry my banner so they can get paid.
Any one have any ideas? Or know of at least a direction to look?
__________________
Reply With Quote
  #2 (permalink)  
Old 07-21-2009, 01:30 PM
Rammuny's Avatar
Master Babbler
 
Join Date: Feb 2009
Location: Michigan
Posts: 433
Rammuny is a reputable WB member and has over 100 reputation pointsRammuny is a reputable WB member and has over 100 reputation points
Send a message via Skype™ to Rammuny
Default

I think this would be better in the programming section if your wanting to code your own Tracking cookie.

+

There are hundreds of sites that allow you to run your own affiliate program which has all those features. Unless your thinking about making your own affiliate program?
__________________
Learn to create a profitable blog, and make money blogging - Join my free blogging eCourse
Twitter me - @Robswebtips
Visit my blog, where you find blogging tips & tricks - Robswebtips.com

Last edited by Rammuny; 07-21-2009 at 01:34 PM.
Reply With Quote
  #3 (permalink)  
Old 07-21-2009, 01:43 PM
kelevraco's Avatar
Supreme Babbler
 
Join Date: May 2009
Location: Colorado
Posts: 511
kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)
Send a message via MSN to kelevraco Send a message via Yahoo to kelevraco
Default

I would prefer to have my own affiliate program. I don't see the point in paying someone for something I can in the end do myself.
__________________
Reply With Quote
  #4 (permalink)  
Old 07-21-2009, 06:04 PM
meloncholy's Avatar
Master Babbler
 
Join Date: May 2009
Posts: 250
meloncholy has an outstanding reputation at WB (over 500 points)meloncholy has an outstanding reputation at WB (over 500 points)meloncholy has an outstanding reputation at WB (over 500 points)meloncholy has an outstanding reputation at WB (over 500 points)meloncholy has an outstanding reputation at WB (over 500 points)meloncholy has an outstanding reputation at WB (over 500 points)
Default

I'm a little rusty on this as I haven't used cookies for a while, but it's pretty easy. I'm going to assume you're using PHP to serve your banners. (If you're using a different language, there should be analogous functions.)

To create a cookie, do this

PHP Code:
setcookie("My Affiliate Program", "Partner Site Info", time() + 3600);
And to check if a cookie's there

PHP Code:
if (isset($_COOKIE["My Affiliate Program"]))
{
  
// Do something
}
And that's basically it. You presumably want persistent cookies, so you must set the expiry time (otherwise it will be lost when the browser closes). As you're inserting a banner into other people's pages, you may need to set the domain parameter too (not used above).

Here are a couple of introductory tutorials and more detail from php.net.

Cookies form part of the header, so you need to send them before HTML output starts. As you're inserting a banner somewhere in the middle of someone else's page, you won't be able to do that. (I think. Never tried this.) This page runs through a few methods for getting round the problem using iframes and faux images. (It's actually about cookie stuffing, or stealing someone else's commissions. This is of course a bad thing, but it looks like the same methods can be used - more legitimately - to insert your own cookies. If anyone knows other ways of adding tracking cookies via a banner then I'd be interested to hear.)

Cookie spec, which you should probably check out.

And JavaScript cookie control, just FYI.
__________________
Pole Exercise - Pole dancing evolved
Reply With Quote
  #5 (permalink)  
Old 07-21-2009, 10:05 PM
kelevraco's Avatar
Supreme Babbler
 
Join Date: May 2009
Location: Colorado
Posts: 511
kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)
Send a message via MSN to kelevraco Send a message via Yahoo to kelevraco
Default

Ty I will dig into this.
__________________
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -6. The time now is 09:57 PM.


 Subscribe to RSS

WB Sponsors

flash chat

Home Jobs Online

Search Engine Marketing

Paid Surveys

Web Design Newcastle

Bookmarking Demon 5



 Subscribe to the Website Babble Feeds

2 Create a Website Homepage | 2 Create a Website Blog


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0