is an all-in-one ecommerce solution for users looking for a quick and easy way to begin selling products online. A simple and intuitive system, Shopify allows users to create and customize their own ecommerce website in minutes. Despite it’s appeal, especially among first-time web sellers, Shopify does present some challenges, particularly in areas of SEO.


In dealing with a template-based system such as Shopify, making SEO-friendly changes to your site can be a headache. The main problem in terms of SEO that many users report with Shopify is the difficulty in creating custom Title tags and Meta tags. We recently began optimizing a client’s site that was being hosted on and ran into some similar problems.

After scouring Shopify’s forums, piecing together bits of information, and tweaking the code, we came up with a relatively simple way to include custom tags on your Shopify site.

To create tags, you need to add conditionals to the "theme.liquid" file of your site (bold portion). Here is the technique that we used:

{% case page_title %}
{% when null %}
<title>{{}} – {{page_title}}</title>
{% when ‘Your Page Title’ %}
Your Custom Title Here</title>
<meta name="keywords" content="
Your Custom Keywords Here" />
<meta name="description" content="
Your Custom Description Here" />
{% else %}
<title>{{}} | {{page_title}}</title>
{% endcase %}

Use the bolded conditional statements above for each page that you wish to create customs tags for. For example, if your page was titled "Welcome", your conditional might look something like this:

{% when ‘Welcome’ %}
T-Shirt Printers | T-Shirt Customization</title>
<meta name="keywords" content="
t-shirt printing, personalized t-shirts" />
<meta name="description" content="
Create and customize your own t-shirt" />

This is just one of many ways to create title and meta tags for your Shopify site. There are also several other factors that go into making your Shopify site SEO friendly (internal linking, sitemap, url redirects, etc). Start by creating custom, keyword-focused title and meta tags, and your Shopify site will begin to climb the search engine ranking.


Your email will not be published. Required fields are marked *

Christina • 10 years ago

Mr. Heisey, It’s also customary to give credit when you publish someone else’s code. The one you refer to as yours was developed and published by me, here: Thank you for acknowledging that.

Read More

Christina • 10 years ago

Zac, Thank you for your acknowledgment; I appreciate it. Let me correct you on one point: as I explained in the instructions accompanying this code, the whole code goes into the theme template, not in the other templates, as you assume. It appears once. From this mistaken perception, it is clear that you do not fully understand the code, and hence, your changes to it do not make much sense: you’ve now got a case loop wrapped within another case statement, and the two contradict each other. Please feel free to express any questions or concerns you may have. Best regards, Christina

Read More

Mike Shannon • 10 years ago

Christina, We’ve gone ahead and removed the portion of code that we referenced on your end, after realizing that the code wasn’t being executed in our given situation and wasn’t necessary. There didn’t appear to be any problems on our end when our original code was executed but we appreciate input from people who are able to point out potential fixes in our work that helps us to learn, thanks again. -Mike

Read More

Mike Harding • 10 years ago

Hi Zac, I have been trying to get the code in this post for ages its driving me nuts. i managed to get Christina’s working just dandy but really need the fine control to specify met info were needed. What value is Welcome in the statement {% when ‘Welcome’ %} is it page name or page title or some other value? Cheers Mike

Read More

Anonymous • 10 years ago

Zac, Thanks a ton! That was driving me nuts. I was able to get my first product page to work. Thanks again for posting this article. It was most helpful. -Ted
Read More

Other posts you will enjoy...

RelationEdge Announces the Acquisition of Main Path Marketing and Launch of a Full-Service Marketing Cloud Practice
Twitter Moments – Should They Be a Part of Your Social Media Strategy?
Developing a Plan for Social Live Video
4 Common Email Problems and How to Solve Them