Website Building » Shopify » How Do I Add META Tags to My Shopify Website?

How Do I Add META Tags to My Shopify Website?

Last updated on January 11, 2023 @ 6:34 pm

Adding META tags to your Shopify website is a great way to improve your website’s SEO. META tags provide information about your website to search engines, and can help your website rank higher in search results.

To add META tags to your Shopify website, you’ll need to edit the code of your theme. To do this, go to the “Edit HTML/CSS” page in your Shopify admin, and then click on the “theme.liquid” file in the “Layout” folder.

In the “theme.liquid” file, you’ll see some code that looks like this:

<head>
  <meta charset="utf-8">
  <title>{{ page_title }}</title>
  <link rel="canonical" href="{{ canonical_url }}">
  {% if template == 'index' %}
    <meta name="description" content="{{ shop.description }}">
  {% endif %}
</head>

To add META tags to your website, you'll need to add them to this code. For example, if you wanted to add a META tag that described your website, you would add the following code:

<head>
  <meta charset="utf-8">
  <title>{{ page_title }}</title>
  <link rel="canonical" href="{{ canonical_url }}">
  {% if template == 'index' %}
    <meta name="description" content="This is my awesome website!">
  {% endif %}
</head>

You can also add META tags for specific pages on your website. For example, if you have a product page, you could add a META tag that describes the product:

PRO TIP: META tags are HTML tags that provide information about a web page. They are used by search engines to help index and classify web pages. Adding META tags to your Shopify website can help improve your website's search engine optimization (SEO).

However, it is important to note that META tags should not be used to stuff keywords onto your website. This can actually hurt your SEO. Instead, focus on using META tags to provide accurate and relevant information about your website.

<head>

<meta charset="utf-8">

<title>{{ page_title }}</title>

<link rel="canonical" href="{{ canonical_url }}">

{% if template == 'product' %}

<meta name="description" content="This is my awesome product!">

{% endif %}
Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.