Setup dynamic opengraph og:image meta tags on shopify store

Understanding OpenGraph Tags

OpenGraph (OG) tags are special meta tags developed by Facebook in 2010 that allow web developers to control how URLs are displayed when shared on social media platforms. They've since become a standard adopted by most social networks including Twitter, LinkedIn, Pinterest, and messaging apps like WhatsApp, Telegram and more.

There is how site's links preview looks like without opengraph og:image tags.

link preview without opengraph og:image tags

But many engines like wordpress/shopify/etc have setup tags correctly and set as opengraph image cover photo in case of media article/blogpost or a random photo in case of store product.

There is how site's links preview looks like with default setup opengraph og:image tags.

Article/blogpost preview - with just cover photo

Media article link preview with default og:image tags

Store product preview - usually cropped because common product photo not fit in recommended landscape format for opengraph previews

Store product link preview with default opengraph og:image tags

There is better than nothing but the next step is to setup rich dynamic opengraph previews. Look how this links previews looks with integrated dynamic opengraph tags.

Article/blogpost preview - with description over image. You can also add your branding/logo to increase brand recognition.

Media article link preview with rich og:image tags

Store product preview - full image with title and price tag, also discount can be shown here. You can also add your branding/logo to increase brand recognition.

Store product link preview with rich opengraph og:image tags

Obviously, when a person scrolls through the feed on Facebook, such a post will attract much more attention. Also, with branding elements in the picture, you will greatly increase the recognition of your brand.

Such preview will also works in all messengers and other social media platforms to boost your lead generation.

And the most important thing is that everything works absolutely automatically. You set it up once and the previews will work for both old links and those that will appear in the future.

Create template

At first you need to signup in https://app.previewbuilder.com/signup.html. Registration is simple and there is free trial - no credit card required.

1. On first welcome page just click on "Create first template"

create dynamic opengraph image page - welcome page

2. On second page you can select template to start with or start with scratch

create dynamic opengraph image page - select template

3. On third page you can polish your template with a powerful editor. You can skip this step by now and return to template editor later so just click on "Test template".

create dynamic opengraph image page - template editor

4. On fourth page you can test your template rendering with different images/texts/etc. Click on shopify instruction tab.

create dynamic opengraph image page - template editor

To setup rich opengraph image tags just use our application from shopify app store. https://apps.shopify. com/social-preview-builder. App has easy integration workflow and everything works automatically.

If you have any questions feel free to contact us via support chat widget. We will be happy to help you to integrate our service.

Ready to get started with PreviewBuilder?

Start creating beautiful previews for your sites today.