Google remarketing and Shopify

Shopify supports Google remarketing and dynamic remarketing. Remarketing helps you target ads to people who visited your store in the past. Dynamic remarketing targets ads to your store's visitors based on the specific products they viewed on your site.

To create either a remarketing or a dynamic remarketing campaign, you need to have both a Google Analytics account, as well as a Google Ads account. You also need to have both of these accounts linked together.

Set up remarketing

The majority of the setup for remarketing and dynamic remarketing is done through your Google Ads account. Read Google's setup guides for remarketing and dynamic remarketing.

To add your remarketing tag to your Shopify store:

  1. Sign in to Ads.
  2. Click Campaigns.
  3. Click Create your first campaign.
  4. Click the Shared Library option on the left hand sidebar.
  5. In the Audiences section, click View.
  6. Click the Set up remarketing button. You will then be given a block of code.
  7. Enter your email address to receive the code by email.
  8. When you receive the code, copy it.
  1. Find the theme you want to edit, and then click Actions > Edit code.

  2. Click theme.liquid to open it in the editor.

  3. Paste the code you received from Google on a blank line just above the </body> HTML tag:

    Bottom of theme.liquid template

  4. Click Save. If you use a Shopify theme other than Narrative, then you are done. If you use Narrative, then complete the next step.

  5. If you use the Narrative theme, then you need to add some CSS to prevent the Google remarketing code from affecting the formatting of your website:

    1. In the Assets folder, click theme.scss.liquid.
    2. At the bottom of the file, paste the following code:

      iframe[name="google_conversion_frame"] {
    3. Click Save.

Ready to start selling with Shopify?

Try it free