Skip to content

Create a Google Shopping Feed for Shopify for Free

Want to list your Shopify products on Google Shopping without paying for an app? This guide explains how to create a free Google Shopping feed and connect it to Google Merchant Center.

3 min read By Price Radar

Create a Google Shopping Feed for Shopify for Free and add GTIN/UPC/EAN or ISBN to your Shopify products.

Create product feed page template

Login to your Shopify account and go to your shop. 

Sales Channels > Online Store > Themes

Click the Actions button on your live theme and select Edit code.

Click Add a new file under the Templates section and type the file name page.pradar-feed.liquid.

After pressing Enter to create the template, Shopify will redirect you to edit this new page template.

Remove everything in the text box and copy and paste the Google Shopping product feed template below.

{%- layout none -%}<?xml version="1.0" encoding="UTF-8" ?> <rss xmlns:g="http://base.google.com/ns/1.0" version="2.0"> <channel> <title>{{shop.name | escape }} Products</title> <link>{{shop.url}}</link> {% for collection in collections %} {% for product in collection.products %} <!-- Item #{% increment index %} --> <item> <g:id>{{product.id}}</g:id> <g:title><![CDATA[{{ product.title | strip_html | strip_newlines | escape | replace: 'amp;', 'and' | replace: '&#38;', 'and' | replace: "é", "e" | replace: "à ", "a" }}]]></g:title> <g:brand>{{product.vendor | escape }}</g:brand> <g:product_type>{{product.type | escape }}</g:product_type> <g:condition>New</g:condition> <g:description><![CDATA[{{ product.description | strip_html | strip_newlines | replace: 'amp;', 'and' | replace: '&#38;', 'and' | replace: "..", ". " | replace: " ", " " | replace: "‘", "&#39;" | replace: "’", "&#39;" | replace: "&#8216;", "&#39;" | replace: "&#8217;", "&#39;" | replace: "’", "&#39;" | replace: "“", "&#39;" | replace: "‘", "&#39;" | replace: "´", "&#39;" | replace: "“", "&#34;" | replace: "â€", "&#34;" | replace: "&#8211;", "-" | replace: "–", "-" | replace: "â€â€", "-" | replace: "–", "&mdash;" | replace: "—", "&mdash;" | replace: "%", "&#37;" | replace: "©", "&copy;" | replace: "®", "&reg;" | replace: "â„¢", "&trade;" | replace: "£", "&pound;" | replace: "ï¿­", "&#42;" | replace: "•", "&#42;" | replace: "â€Â", "&#39;" | replace: "&#233;", "e" | replace: "é", "e" | replace: "à ", "a" | replace: "ó", "o" | replace: "ê", "e" | replace: "Ø", "O" | replace: "&#8482;", "" | replace: "&#174;", "" }}]]></g:description> <g:image_link>{{product.featured_image | product_img_url: 'large'}}</g:image_link> <g:link>{{shop.url}}{{product.url}}</g:link> <g:price>{{product.compare_at_price | money_without_currency}} {{shop.currency}}</g:price> <g:sale_price>{{product.price | money_without_currency}} {{shop.currency}}</g:sale_price> <g:availability>{% if product.available %}in_stock{%- else -%}out_of_stock{%- endif %}</g:availability> <g:gtin>{%- assign current_variant = product.selected_or_first_available_variant -%}{% if current_variant.barcode %}{{current_variant.barcode}}{%- endif %}</g:gtin> </item> {% endfor %} {% endfor %} </channel> </rss>

Save the template.

Add a page for product feed

We need to create a new page to connect to the newly created product feed template.

Go to Sales Channels > Online Store > Pages and add a new page.

Put PriceRadar Shopping Feed as the title.

Select pradar-feed as the theme template.

Save the page.

Your product feed is ready. Click Preview page to see your new product feed page. Or you can visit:
https://yourshop.com/pages/pradar-product-feed

Can I add EAN/GTIN numbers to Shopify / Google Shopping Feed?

How to add a UPC/EAN or ISBN to your Shopify products.

You can add barcode numbers, such as GTIN/EAN, to the product detail page under the Stock – Barcode section.

All articles

Ready to boost your ROI?

Start your free 14-day trial today. Zero setup fee, cancel anytime.

Start free