Personal Learnings← Lenny's Newsletter  Library

Lenny's Newsletter · Product & Work

How to run SEO experiments

TIER 5   2020-12-15

Q: How do I run experiments with SEO?

Experimentation and SEO have been a hot topic with readers lately, so let’s spend one more week on it. If you look into how companies grow, SEO is the primary growth engine for a large percentage of today’s biggest and fastest-growing companies (e.g. Pinterest, Thumbtack, Expedia, Wayfair, Canva, Glassdoor, etc):

Image from How to run SEO experiments

And it makes sense — SEO is one of the few remaining “free” growth channels, and still somewhat mysterious. If you can make it work, it’s a superpower.

Unfortunately, relying on SEO has a major downside: it’s challenging to run experiments. How does one A/B test the impact of your changes on Google’s crawling of your site? Tough.

But good news! Returning guest author Brian Ta generously offered to tackle this question for us this week. Brian led SEO efforts at five different companies, including Airbnb, Strava, and now AngelList, and his previous post about Winning at SEO was one of my most popular posts. As always with these guest posts, I learned a ton from Brian and I’m excited to share this knowledge-bomb with you.

Below, Brian teaches us about:

  1. Setting up an SEO experimentation framework
  2. Knowing what to measure with SEO experiments
  3. Running an SEO experiment
  4. Limitations with SEO experiments
  5. A walk-through of a real-life SEO experiment
  6. His most impactful SEO experiments
  7. Recommended reading for further study

Let’s dive in!

Running SEO Experiments

by Brian Ta

Image from How to run SEO experiments

I get asked about SEO experimentation a lot. It’s probably the second-most asked question I get right after “how do I rank number 1 for my company name?” Surprisingly, there aren’t many resources that actually explain how to run experiments with SEO. In this post, I’m going to share how I’ve run SEO experiments at Airbnb, AngelList, and Strava.

First, I’ll make a couple of assumptions about your business:

  1. You’re familiar with SEO: I’ll be talking about how to set up your experiments, and so assume some foundational knowledge of SEO.
  2. Organic traffic is already one of the main drivers of your business: SEO experimentation is not intended to help you learn whether you should pursue SEO.
  3. You have thousands of pages: This advice will be targeted at companies that are already doing SEO at scale, and have thousands of programmatically generated pages. This is not meant to help you experiment on your blog posts. You could, but I’ve never used this approach for that.

1. How do I set up an SEO experimentation framework?

SEO experiments are fundamentally different from typical A/B experiments. The majority of experiments at most tech companies are tested on the user-level – control and treatment groups are bucketed at the user. For example, if you’re running an experiment that changes the color of the purchase button from green to blue, a user will always get a consistent experience of either a green or blue button each time they visit the site.

When you’re running an SEO experiment you’re testing on the page level. Thus, you need to have an experimentation system that can do your bucketing on the page level. Why is that? Because every time Google visits the site, it’ll count as a different user and get re-assigned to treatment or control. So if you're running an experiment that adds a piece of content on the page, Google may get a different experience every single time it crawls the page, and won’t be able to get a good read on your site. As a result, you won’t know what effect your change has on Google. The only user that you’re designing for is Google, so it’s essential that you give Google a consistent experience when it crawls your site.

2. Do I have to build an experimentation framework myself?

I’d highly recommend doing so. Why?

  1. As far as I’m aware, bucketing by the page-level isn’t possible on any of the major experimentation platforms, such as Optimizely. So you can’t really hack this together with existing solutions.
  2. I’ve asked around my SEO network, and there were very few people who run SEO experiments, and those who do, all roll out their own frameworks. There was no one in my network that had any experience with a 3rd party out-of-the-box SEO experimentation framework.

I’ll go over how to build it yourself, plus I’ve linked to a couple of blogs at the end of the post that go into more detail. It’s worth noting that building out an SEO experimentation framework isn’t a trivial task and that in 95% of cases, I recommend most startups avoid doing so. I go over this later on in this post.

3. What kind of SEO experiments can I run?

Anything your heart desires, as long as it’s an on-page change and the effects are limited to only one page. If you want to test your title tags, meta descriptions, or image alt tags – run wild. However, if you want to measure the effectiveness of internal linking, that’s an entirely different beast.

It’s different because your framework will be measuring changes to individual pages in the treatment group, and not the pages being linked to. The pages in treatment (the ones that include the new links) will not get more traffic because the new links are there — other pages outside the experiment will.

How do you measure the effects of internal linking? Our solution at Airbnb was to get the best data scientist in the entire company to do a manual analysis for us. We could have built something to do this, but it was pretty expensive (engineering-wise) for us to do, and has limited uses.

tl;dr this is likely not something you’ll build for a while, so start with on-page testing.

4. What should I measure with SEO experiments?

Organic traffic. Nothing else.

You’ll likely want to measure other things experimentally, but unfortunately, it will not work:

Image from How to run SEO experiments

Your single source of truth is incoming organic traffic. Anything else is unreliable. If more people are coming into your site through organic traffic, then your experiment was a success. All of the other metrics mentioned above (except for conversions) lead to increased organic traffic anyway, so why wouldn’t you just focus on organic traffic?

5. How do I run an SEO experiment?

Disclaimer: This is a way to get you pointed in generally the right direction and will probably work best for smaller startups. If you have an analyst or a data scientist, I'd encourage you to work with them to figure out what’ll work best in your specific situation. At the end of this post, I’ve also included a few additional reads that go even deeper.

1. You’ll first need the ability to do a couple of things

2. Second, design and roll out your experiment to the pages in the treatment group

3. Let the experiment run for 2-4 weeks

4. Run an analysis on the expected difference in organic traffic

5. You can conclude the experiment after it has run for more than two weeks and the results are statistically significant.

Image from How to run SEO experiments

6. Let’s design and run an SEO experiment!

For this exercise, let’s pretend that we’re a Growth Product Manager at Figma on the Community team, and we want to grow the organic traffic coming into the Community pages.

Image from How to run SEO experiments

From looking at their Community File page, I can see that they constructed their title tags with the following structure:

{name of file | description of file that gets truncated}

This isn’t a bad way to be constructing it, but maybe we could do something better.

Note: There are quite a few things wrong with their pages on the SEO-side, but we’ll pretend they aren’t there for the sake of this example.

1. Design the experiment

Current title tag: {name of file | description of file that gets truncated with HTML(?!)}

Figma - iOS & iPadOS 14 UI Kit for Figma | <p>Excited to share the latest iOS & iPadOS 14 UI Kit for Figma!</p><p><br></p><p>---</p><p><...

Desired title tag: {name of file | tags}

Figma - iOS & iPadOS 14 UI Kit for Figma | 14, alert, apple, dark, emoji, ios, iphone, kit, light

Reasoning: The way that Figma constructs title tags is actually a bit funny. Since the title tag is truncated, there's a good chance you cut off keywords and content before they even appear there. The current implementation isn't bad, but since files do have tags associated with them, using the tags is probably a better solution. What is bad about the title tags is that some of them have HTML injected into them.

2. Roll out your experiment to the pages in the treatment group

We’ll do a straight A/B test with 50/50 treatment versus control to ALL Community File pages.

3. Wait patiently

Title tag experiments are usually pretty impactful. I’d probably wait two weeks before running an analysis.

4. Run your analysis

We’ll look at the expected difference in traffic if you hadn’t run the experiment (control group) and compare it against the difference that you see now that you’ve made the change (treatment). I’ll work with a data scientist to make sure that we’re pulling data from our visitors table.

5. Launch

If results are positive and are statistically significant, I’d launch to 100%. If it’s neutral, or inconclusive after a month, you can use your own judgment on whether or not you want to launch it.

6. Iterate

Document your learnings, and start thinking about other experiments you can do.

Would it make a difference if we only added the most popular tags to the title tag? What about if we put both the tags and description in there?

7. What are the limitations of SEO experiments?

Two things: The amount of traffic you have, and the number of pages you have.

It’s important to note that you’ll need to be careful about the types of pages you test on and the amount of traffic they get. We ran an SEO test at Strava on our user-profiles and had to dump out a bunch of bad data because we had profile pages that got marginally more traffic, which ended up skewing traffic numbers.

8. Should I build an experimentation framework?

This is the million-dollar question. My recommendation to 95% of startups is that it’s not worth your time to create. These experimentation frameworks are generally useful in two scenarios:

  1. When you’re actually in the optimization part of your SEO strategy. Most companies/websites aren’t even close to this part yet. The large majority of companies are still in the “build” phase of their strategy.
  2. If leadership wants to account for every single feature you build/implement and the success of your team is tied to being able to incrementally prove out these changes/wins.

Most of the startups I talk to are just starting to spin up their SEO strategy. They don’t know what type of pages they’re going to create, they don’t know if their current pages are built correctly, they lack internal linking, they don’t have half-decent title tags….the list goes on. Experimentation frameworks are meant to be used for you to learn and optimize, and if your SEO product isn’t in a space to optimize, you’re just slowing yourself down. Don’t waste precious time trying to validate foundational SEO features.

Once you know that SEO is a core part of your strategy, and you have a set of pages that are performing really well, then you can put in time and effort to create an experimentation framework and try to perfect your pages.

9. What were the most impactful SEO experiments I’ve run?

In aggregate, title tag experiments led to a 15-20% increase in traffic at Airbnb. Being able to continuously run title tag experiments is one of the top reasons to invest in creating an SEO framework. A minor title tag change resulted in the most impactful SEO experiment ever run at Airbnb.

Here are some tips and things to keep in mind when trying to come up with title tag experiments:

  1. Can you leverage structured content to provide more consistent title tags?
  2. How do you provide more context to Google?
  3. What information are people looking for when they’re searching for your high-performance keywords?
  4. People really like clicking on numbers

In the Figma example above, we ran a title tag experiment that provides more context to Google about what the page is, and uses high-quality structured content to do so.

Content always drives more traffic. There’s a good reason why SEO landing pages always have a ton of content and text on them, that’s because there’s a very strong correlation between the amount of unique, high-quality content on your page, and the amount of incoming organic traffic. Every time we added more content to our Airbnb landing pages, it always led to more incoming traffic. The most impactful single experiment we ever ran at Strava increased the amount of traffic to our pages by 20%, and the only thing that we did was add more routes to our “Where to run in {city} pages.”

Things to keep in mind when you’re experimenting with content:

In aggregate, meta description experimentation led to a 6% increase in traffic at Airbnb. While meta descriptions don’t have a direct impact on your ranking, it does have an effect on your CTR on the search engine result pages. Being able to optimize and tweak your meta descriptions to make it more attractive to click on, will lead to a higher CTR, which leads to more traffic, which leads to higher rankings.

🧠 Further study

  1. Jeff Chang’s Growth Blog: Jeff is one of the original growth engineers at Pinterest and was the Growth Tech Lead there. Airbnb’s experimentation framework is heavily borrowed from Pinterest. This is an extremely simple version of an SEO experimentation framework and may be your best option to roll something out quickly.
  2. Airbnb SEO Data Scientist Blog: This is written by our data scientist on the SEO team, Brian de Luna, who was absolutely amazing.
  3. Pinterest Engineering Blog: An original blog post from Pinterest about their SEO experimentation framework. Airbnb’s experimentation framework is heavily borrowed from this, with our data scientists and engineers walking over to the Pinterest office for knowledge sharing.

You can follow Brian on Twitter and LinkedIn.

That’s it for this week! Have anything to add? Leave a comment 👇

Leave a comment

🔥 Job opportunities

✨ Group Product Managers at QuoraSubscriptions and Moderation (sponsored) ✨

  1. ProductCerebral, DescriptKUDOHipcampPrenda
  2. GrowthBasisOneCodaLevelsPrenda
  3. DesignAshbyCascadeOffice HoursRunwayStytchWatershed
  4. Engineering managerCerebral
  5. Frontend engineerLevelsPractice
  6. Backend engineerCodaSourcetableTransform
  7. Fullstack engineer: CascadeCenteredCerebralIcebreakerIggyPrimerRunwaySnackpass
  8. iOS engineerPairplayPrimerStytchVori

🧠 Inspiration for the week ahead

  1. Listen: Does Advertising Actually Work?, by Freakonomics podcast
  2. Read: The Unusual Signs of a Billion Dollar Company, by Elad Gil
  3. Learn: How to give product feedback

How would you rate this week's newsletter? 🤔

Great • Good • Meh

Have someone in your life who would benefit from this newsletter? Feel free to forward this to them, or better yet, give them a gift subscription 💖

Sincerely,

Lenny 👋