View Full Version : 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.
I just got turned on to the BikePortland.org "bookstore" by Todd B's comment in the "Woman arrested..." (http://bikeportland.org/2009/08/27/woman-handcuffed-over-id-question-during-stop-sign-sting-at-broadway-and-flint-this-morning/#comment-1405733) 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 (http://www.bikeportland.org/books/):
Bicycling and the Law: Your Rights as a Cyclist by Bob Mionske
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:
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":
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:
I can then add the PID and get this URL:
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... :D
09-16-2009, 10:54 AM
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.
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.
vBulletin® v3.8.4, Copyright ©2000-2015, Jelsoft Enterprises Ltd.