Three months ago I decided to write my first technical book and it's earned me over $5,000 in the two weeks since launch day, so I thought I decided to share what I've learned.
I had been reading Nathan Barry's excellent book Authority and something about it inspired me. I started throwing around ideas, things that I knew well and that weren't well covered already, and I turned up Stripe. I know Stripe very well having used it for a bunch of projects in the past few years. I also know Rails, using it in most of those projects plus at my day job. I knew for sure that there were things about payment processing that weren't really talked about much in the 10 minute Stripe tutorials. Thus began my five month journey of writing and self-publishing Mastering Modern Payments: Using Stripe with Rails.
Why self publish?
For me, it wasn't even really a question. There's no way a traditional publisher would be interested in a tiny niche topic like this, and even if they were I wanted as much control as I could get for my first major writing project. Not to mention, the amount of money I would get from direct sales is vastly more than I would get from the same number of sales if I were getting royalties.
So, why not something like Leanpub? Again, it comes down to control. Leanpub provides a valuable service but I wanted to control the entire experience, from building the book files to the landing page all the way through to the sales experience. A great part of the value of the guide is that the Guide + Code edition comes with the code for the application that actually sells the book, and with Leanpub that wouldn't be possible.
Process and Tools
My writing process is pretty simple. I make an outline, at first just broad themes for chapters or sections. I step back, play with the order a little maybe, and then start adding more detail to the outline. At some point I get bored with that and start filling in chunks with prose. This is the same process I've used for most of my blog posts and it's been pretty successful.
Editing was a much bigger job for the guide than it has been for my blog, of course. I did a first pass by hand on actual paper with an actual red pen and then followed that up with another pass on the computer. Shortly after that I released the guide as preorders to my mailing list (more on that below) and they provided vast quantities of feedback, ranging from typos to bug fixes all the way through to high level feedback on the shape and intent of the guide. I can't thank those reviewers enough. They made it possible to have a polished product on launch day.
The tools I used for most of the writing process:
- Emacs and Markdown mode. The book is entirely written in Markdown, except for a very few sections written in raw HTML. I use the excellent Markdown Mode for basically everything I write, since it basically just gets everything right.
- Docverter. I use Pandoc and Flying Saucer via a local instance of Docverter to build the various formats of the guide.
- Rake and Redcarpet. I wrote a few different custom Markdown renderers using Redcarpet that do things like highlight code samples with Pygments, check the syntax of all of the Ruby code samples, spider all of the links in the book, and finally render out the table of contents how I prefer it.
- Gimp for the cover design.
I've open sourced the code that I used to build the book. It's very specific for Mastering Modern Payments and the process that I eventually settled on, but I'm hopeful that it will provide inspiration for others that might be contemplating the same kind of self-publishing venture. It includes the pdf template and style sheet I use, along with the Rakefile that contains all of the logic for building the guide in it's various formats.
The first thing I did after actually deciding to write MMP was to put up a landing page and start collecting email addresses. On July 15th I started selling preorders, which in this case consisted of 30% off the final purchase price in exchange for an advanced copy of the guide along with regular weekly updates as people sent in feedback. This turns out to have been highly lucrative and extremely motivational. Preorder sales totaled over $3,000. Dozens of people were interested enough in this project to pay early. If you're developing an info product you should definitely consider some sort of preorder arrangement.
I kept a simple journal throughout the main writing period and adding up all of that I wrote for about 70 hours. The total hours spent on the whole project is probably double that because I didn't count much of the development of the companion Rails application, editing the guide, writing emails to customers, nor of all of the other little tasks that go into a project like this.
As of yesterday, the guide has grossed $8,603 (this includes preorders):
- 99 copies of Just the Guide for $2,485
- 108 copies of Guide + Code for $5,341
- 3 copies of the Team license for $777
(note that these numbers don't add up to the straight
price * copies amount because I've had both 10% and 30% discounts going at various times)
The biggest driver by far was HN traffic from two posts on launch day, August 15th. The second biggest driver was a link in Ruby Weekly. I purchased an ad on /r/rails and sponsored The Changelog podcast, neither of which directly generated sales but may have driven direct site visits and sales later on. There wasn't a whole lot of time to put thought into tracking visits from The Changelog so I don't have any direct numbers.
Since launch day the landing page has gotten 6,084 unique page views driving 136 sales for an overall conversion rate of 2.2%. Prior to launch day, the mailing list converted over 30% for preorders.
Get help sooner in the process
When I started this project I was all by myself which hampered editing and reviewing a lot. I didn't get my first comprehensive external review of the thing until after I had sold the first few copies. Next time I'll assemble a few reliable technical reviewers ahead of time so that they can start reading drafts before publication.
Write more guest blog posts
This is something that Nathan espouses in Authority and I just didn't have time to get to. I only had one guest blog post on launch day and it didn't generate much traffic at all, let alone sales. Next time I'll have at least three lined up, as well as having coverage in the relevant weekly newsletters and podcasts set up beforehand.
Write more relevant content for my email list
Early on I was sending interesting little Stripe and Rails things to my mailing list, but after preorders started it became product updates every time. I think at some point I started overselling them. For my next product I'm going to try to alternate product updates with interesting, relevant information that isn't directly related to the product.
Don't have so much going on while developing and selling
I had far too many things going on when I decided to launch. Here's an abbreviated schedule for launch day and the following:
2013-08-12 — Start packing for move
2013-08-15 — Launch day AND travel day on airplanes
2013-08-16 — Out of internet range, getting things set up for the wedding
2013-08-17 — Wedding Day
2013-08-18 — Travel back to Portland, get ready to move
2013-08-23 — Pack everything we own and start driving across the country
2013-08-28 — Attend a funeral
2013-08-29 — Sign a new lease in Michigan
I knew about the wedding and moving well ahead of time, so why did I pick August 15th? Lack of critical thinking, clearly.
I'd like to take the opportunity to thank my wife, who has put up with not only this project but all of my projects over the last two years. She's the most amazing, understanding person that I've ever met. I'd also like to thank Michael Buckbee, Andrew Culver, and a whole host of other people who kept me motivated and on track, right to the end.
This project has been an amazing experience. I've learned so much about how to build a product, how to build an audience, and how to make a success, and it's not even over. I'll be releasing periodic updates with corrections and new information since both Stripe and Rails are both active, changing products.