Proposal: all Amazon hyperlinks get Less Wrong’s Amazon Associates referral code
My site, which gets slightly less traffic than Less Wrong, makes me $50-$200 per month with Amazon referral links and no advertising at all. I don’t profit this way, but I recoup some of my costs.
I think the Less Wrong audience is much more likely to purchase books—including expensive textbooks—than my audience is. And it would be easy to automatically transform all Amazon links on Less Wrong so that they include a Less Wrong Amazon Associates referral code, which would make Less Wrong some money on every purchase made through one of those links.
Below is the pseudocode, assuming Less Wrong’s Amazon Associates referral code is “lesswrong”. Note that every Amazon page for an item contains at least the following string: ”/dp/XXXXXXXXXX/” where XXXXXXXXXX is alphanumeric.
if hyperlink contains “*amazon.com*/dp/??????????/” then change hyperlink to “http://www.amazon.com/dp/??????????/ref=nosim?tag=lesswrong-20″
That’s it! For example, let’s say somebody wrote a post and pasted in the following Amazon hyperlink from their browser’s address bar:
http://www.amazon.com/Artificial-Intelligence-Modern-Approach-3rd/dp/0136042597/ref=sr_1_1?ie=UTF8&qid=1296058194&sr=8-1
This would be transformed into:
http://www.amazon.com/dp/0136042597/ref=nosim?tag=lesswrong-20
This is precisely what I do on my own site. Works like a charm. If somebody clicks my book link but ends up buying a $1000 DSLR instead, I get about $65 for that one purchase.
Somebody who didn’t give up programming in 8th grade could do this fairly easily I imagine, and it would help cover Less Wrong’s expenses.
- 27 Apr 2013 22:20 UTC; 5 points) 's comment on Links passing through api.viglink.com? by (
- 7 Jul 2014 22:46 UTC; 4 points) 's comment on [QUESTION]: LessWrong web traffic data? by (
This is already being done on Less Wrong!
Back in August 2010, I helped install an even more universal solution in the form of VigLink to experiment and see if it would work well for us. These are our recent earnings so far… I think all from Amazon:
Aug 10: $0 Sep 10: $0 Oct 10: $1 Nov 10: $1 Dec 10: $12 Jan 11: $37
Also, I think we actually make more by paying VigLink’s fees since they get paid the top-end volume bonuses by Amazon and then pass that great rate on to us (less their fees). It’s really close though. I’ll worry more about optimizing it when we’re getting more commissions.
It looks like LW’s Amazon affiliate code is “vglnk-c319-20”. I missed it earlier because apparently VigLink doesn’t work if you control-click on a link to open it in a new tab. I’ve written a Chrome/Greasemonkey user script you can install to add the affiliate code to Amazon.com links you click on other web sites, as well as if you go to Amazon.com manually.
http://www.ibiblio.org/weidai/force_amazon_affiliate.user.js
Does that mean I should click through from less wrong before all my amazon purchases? Or does it only work if the exact book I’m purchasing was linked from Less Wrong?
Yes, clicking a LW Amazon link before buying things from Amazon is very helpful. It will give ~6.2% of the purchase price on whatever you end up buying back to LW.
Right. You don’t need to buy the exact item linked to. Just purchase during that same Amazon visit, an LW will get a cut. Free money for LW!
As Wei Dai reports, VigLink does not work when you open the link in a new tab or window.
Also, it does not work for me at all in Firefox. I have NoScript installed, but have white listed every script domain on Less Wrong (including viglink.com) except google-analytics.com. It does work for me in IE and Chrome.
If anyone else is wondering about that huge ramp-up, viglink’s faq suggests that it is mainly due to a 90 day delay of actually receiving the money (not special to viglink). Plus affiliate cookies may last 30 days, though I’m surprised that’s relevant to amazon.
Some old EY writings indicate that there is/was an Amazon Associates account called “singinst”, but I’m not sure if that’s still active or being used. But using that would be better than nothing, in the meantime. (I notice that none of SIAI’s suggested reading pages use it, which they really should… unless perhaps there’s some legal or TOS problem with a charity raising money through affiliate sales; anyone have any experience or information regarding that?)
Some Googling shows a lot of nonprofit charity sites and blogs with ads.
It’s not true that Amazon product URLs must contain ”/dp/”. According to http://en.wikipedia.org/wiki/Amazon_Standard_Identification_Number , product URLs may have the following formats:
http://amazon.com/gp/product/ASIN-VALUE-HERE
http://amazon.com/exec/obidos/tg/detail/-/ASIN-VALUE-HERE
http://amazon.com/o/ASIN/ASIN-VALUE-HERE
http://amazon.com/dp/ASIN-VALUE-HERE
Which is not even a complete list because I’ve also seen:
http://www.amazon.com/exec/obidos/ASIN/ASIN-VALUE-HERE
Instead of trying to parse all these formats, I suggest just adding ”?tag=lesswrong-20″ or “&tag=lesswrong” (depending on whether the URL already contains a ”?”) to the end of every Amazon.com URL. Also, “ref=nosim” is obsolete and can be omitted.
This function will inspect a url and if it is a well formed amazon product url it will modify it to use the given affiliateId, and if it is not, it returns the url unchanged.
I am assuming that the code base knows when there is a url (which should be part of the implementation of mark down). Is there anyone more familiar with the code base who could use this function to make the proposed feature? Also we still need to know what affiliateId to use, which should probably be configurable by an administrator.
Semi-colons in python code? That just looks wrong.
I am not a native python speaker. I am used to C#, Java, and (when I have to) javascript, which all require/encourage semi-colons.
Re-reading my comment it seems harsher than I’d intended. You did the work to figure out the code so someone can just plug it in, where I did nothing at all. It was merely meant to be a tip, so I hope it didn’t offend.
Sounds great, I’d happily click on a Less Wrong referral link before my amazon purchases!
Experience shows that making this proposal doesn’t do anything. ETA: but those are all in comments. Maybe this higher-level post will have an effect.
I think that search produced a lot more results six months ago. Changing the word order produces many more results, including some relevant ones.
My own experience is similar. Over the year I’ve had Amazon referral links on
gwern.net
’s existing Amazon links, the average monthly income has been $45.(I’m not sure traffic-wise how LW & my site compare, but the Alexa US ranks are 60841 & 100008 respectively.)
You might want to consider how this interacts with amazon.co.uk/de/fr, etc. I’m assuming associate references don’t carry over from one site to the other, as logins/sessions/cookies won’t.
The code looks mangled after the ”??????????”.
Yeah, it’s psuedocode. Just saying what needs to be done rather than actually executable code.
Inform, a language for writing text adventures, is interesting in that it’s only small quirks of vocabulary and syntax that let you know the actual code from some hastily jotted down pseudocode