Self-hosting and cross-posting
Tags: seo, html, crossposting
Published: 2019-08-21 13:13:22

# Ownership vs Reach

When it comes to producing content for a personal blog or website there's often a debate between ownership and reach. I'm wagering most people don't have an established online platform that gets thousands or millions of page views and would like to gain better search engine ranking. This often forces content creators to choose between self-hosting and owning their content or publishing on an established platform like [Medium](https://www.medium.com) or [dev.to](https://www.dev.to) to gain more readers at the cost of ownership.

## Cross-posting to the rescue

There's a concept called cross-posting where you publish content on your website and other domains. At first, you might be tempted to simply copy the contents of an article and create a duplicate post on another platform. However, this will not do you any favors when it comes to search engine ranking. To post "duplicate" content, you need to utilize a canonical link.

## Canonical links

Cross-posting can be valuable but only if you're able to associate a canonical link with the duplicate posts. A [canonical](https://en.wikipedia.org/wiki/Canonical_link_element) [link](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types) allows search engines to

> prevent duplicate content issues in search engine optimization by specifying the "canonical" or "preferred" version of a web page.

This tells search engines during indexing that your article may contain duplicate content but the original authoritative source can be found at the canonical link URL. This is generally your website when cross-posting on a website like Medium.

## The dangers of duplicate content

Without a canonical link, search engines are forced to decide as to which article is the single source of truth and ultimate authority. Given that content on platforms like Medium are vast and highly ranked, posting duplicate content there without a canonical link will likely cannibalize your websites search engine ranking. This could result in down-ranking your website, duplicate articles or worse your website might be removed entirely from the Google index, in which case it will no longer appear in search results.

## Own and share your content

Fortunately, you can own your content and cross-post for maximum reach by utilizing canonical links. By posting on your site first, you'll have a URL to point back to the original content through a canonical link.

### Medium canonical links

Medium supports canonical links but **only** through their import tool. To use it you'll need to provide the original article URL to the import tool. It will then parse the content into a draft post. You can verify this worked by inspecting the HTML source code, finding the `<head>` tag and searching for a `rel="canonical"` `<link>`. You can test that out here with this Medium [article](https://medium.com/briebug-blog/building-schematics-with-a-sandbox-a02b9e746851) that points back to the [original](https://kevinschuchard.com/blog/2018-11-20-schematic-sandbox/) on my website. It will look something like this.

```html
<head>
  <link
    rel="canonical"
    href="https://kevinschuchard.com/blog/2018-11-20-schematic-sandbox/"
    data-rh="true"
  />
</head>
```

When Medium's import tool can parse your content, you're all set. Unfortunately, I've found the import tool to be hit or miss. If Medium can't parse the content of your website there's no other way to manually add a canonical link on Medium.

### dev.to canonical links

With dev.to you can set the canonical link URL manually for an article to whatever you like. Thank you dev.to! Thank you dev.to! If you're looking for the canonical link in your own dev.to article, look for it in a private tab. When authenticated in edit mode, it won't be set. In fact this is a cross post from my original article on my [website](https://kevinschuchard.com/blog/2019-08-13-blog-seo/).

## Wrap up

I think there are many benefits to hosting your content and there's no reason you shouldn't try to reach audiences on different platforms. If you can leverage canonical links, they'll allow you to own your content and reap the search engine ranking rewards. If you're unable to do that, I'd suggest posting less content on the other sites with a link that points back to the original article. That way your original article will hopefully be seen as the authority with more indexable content than the smaller duplicate posts.

## Links

- [Duplicate content on Medium](https://help.medium.com/hc/en-us/articles/217991468-SEO-and-duplicate-content)
- [Duplicate content - Google Search Console](https://support.google.com/webmasters/answer/66359)