Portland Bike Forums (by BikePortland.org)

Go Back   Portland Bike Forums (by BikePortland.org) > General Discussion > Book Talk
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 11-18-2008, 01:26 PM
Elly Elly is offline
Junior Member
Site Admin
 
Join Date: Jan 2006
Posts: 15
Default BikePortland Bookstore open for business

Hey all, check out our new bookstore at http://www.bikeportland.org/books for a bunch of biking and planning book ideas.

Besides being a resource for books you might like, our bookstore is also a portal to Powell's, with whom we have a partnership -- every book, movie, t-shirt, etc you buy (even ones not in our bookstore) during a visit to the Powell's web site that originates from our links earns us a commission that will go straight to helping us improve BikePortland's content and features.

By the way, I'm adding every book I see discussed here to a list for possible future inclusion, so keep the ideas coming! And feel free to get in touch personally if you have any suggestions.
Reply With Quote
  #2  
Old 08-28-2009, 06:11 PM
Alan Alan is offline
Senior Member
Site Admin
 
Join Date: May 2009
Location: Vancouver
Posts: 503
Default BikePortland Bookstore: Partner ID (PID)

I just got turned on to the BikePortland.org "bookstore" by Todd B's comment in the "Woman arrested..." thread. I poked around a bit and found the book he mentioned, and then I started wondering about how Powells.com knows to credit BikePortland with the sale, and especially how they know to credit referrals for purchases which aren't linked directly from BikePortland's page. It turns out (unsurprisingly) that there is a code embedded in the URL which identifies BikePortland as the referring "partner." For BikePortland to get its credit, the URL of the Powells.com page where the buyer clicks "ADD TO CART" must contain that partner ID number (PID).

Now, apologies in advance that this gets a tiny bit geeky, or for explaining too much if you know it already, but I'd like BikePortland to get its due, so the easiest way for me to explain it is with an example. Here's the book I was looking for and its link as found on http://www.bikeportland.org/books:

Bicycling and the Law: Your Rights as a Cyclist by Bob Mionske
http://www.powells.com/partner/33501.../9781931382991

It turns out that "33501" is BikePortland's PID, and "9781931382991" is the ISBN13 number which identifies the book. Every book has an ISBN (well, almost every; close enough for this purpose). I have not checked how Powell's identify DVDs or other media, but I expect it's similar. Anyway, those are the two pieces of info you need to give a credit to BikePortland when add a book to your shopping cart and buy it.

Powells.com's webserver redirects that URL to the actual location of that book's description, here:

http://www.powells.com/biblio/9781931382991?&PID=33501

See those same two numbers, just rearranged. Adding that book to your shopping cart from that page will give a credit to BikePortland based on that PID code.

But then, if you start surfing around www.powells.com from there, using the Search function or various links provided by Powell's, maybe adding books into your shopping cart for purchase, note that the resulting description pages don't contain that "PID" code. I could be wrong but I doubt it, but when you follow the shopping cart link to purchase one of those other books, you aren't giving BikePortland credit for the sale. If you want to give BikePortland credit for the referral, then be sure to add this string to the end of of the book description URL, just before you click "ADD TO CART":

?&PID=33501

Copy that string and paste it on the end of the URL before you click "ADD TO CART". You can do that right in the address bar of your browser.

Let's take another example to illustrate that. I searched for "Dr. Seuss" in Powells.com main search form and it turned up a bunch of Dr. Seuss books. I clicked on the link for The Cat in the Hat and got to the description page at this URL:

http://www.powells.com/biblio/17-9780394800011-8

I can then add the PID and get this URL:

http://www.powells.com/biblio/17-978...1-8?&PID=33501

And then, when I buy The Cat in the Hat by clicking "ADD TO CART" from that page, BikePortland should get their partner's cut from my purchase.

If I'm wrong about how Powell's treats those PID URLs and referals (maybe they give credit for the entire order if any one of the books in the shopping cart contains the PID?) or if this is in some other way unhelpful, please feel free to correct me. Otherwise, render unto BP...
Reply With Quote
  #3  
Old 09-16-2009, 09:54 AM
Martell Martell is offline
Junior Member
Site Admin
 
Join Date: Jun 2009
Posts: 16
Default

Alan, I'm sure the referral ID just gets stored to the session after the initial click. I doubt you need to add it to any subsequent URLs.

Edit: And in case you are interested in the technical explanation: A lot of web sites, and probably most e-commerce web sites, keep track of your session using cookies. Often there will be an encrypted session variable which will either contain encrypted data, or more likely, an encrypted ID which is used server-side. The encryped ID might point to a row in a sessions table in a database. So, in one possible scenario, when you first visit the powells.com, it creates an entry in a session table on a database with an ID #, and associates it with your pid #, along with other information. The session id # is encrypted and stored as a cookie inside your browser. As long as you don't close your browser, the session will persist, and it will know your original pid # as you click around the site.

Last edited by Martell; 09-16-2009 at 10:06 AM.
Reply With Quote
  #4  
Old 09-16-2009, 03:17 PM
Alan Alan is offline
Senior Member
Site Admin
 
Join Date: May 2009
Location: Vancouver
Posts: 503
Default cookies

Thanks, Martell, you're probably right, I hope you're right and I'd love to know for sure how Powells handles the sorts of orders I described.

I allow my browser to store cookies only for the site I'm visiting (no cross-site checks) and only for the instant session. Some configs will allow storing cross-site cookies and cookies from past sessions.
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

Forum Jump


All times are GMT -8. The time now is 08:41 AM.




A production of Pedaltown Media Inc. / BikePortland.org
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.