Integrate with Shopify

If you're also a Shopify client, you can implement Monetate on your Shopify site.

This implementation currently doesn't include tracking conversions on the order confirmation page.

Step 1: Add the Monetate Tag to theme.liquid

Follow the steps in Installing the Tag to obtain and then paste the version of the Monetate tag that you're using as the first script tag in the <head> element of your Shopify theme.liquid layout.

Example of Synchronous Monetate Tag in <head> of Shopify theme.liquid Layout


Step 2: Create a monetate.liquid Snippet

Navigate to the snippets directory, click Add a new snippet, name it monetate.liquid, and then paste the following code into it. This code sends all the necessary method calls depending on page type, except for checkout and purchase page types.

Follow the steps in Connect Shopify Checkout Extensibility to Monetate to create a custom pixel to pass checkout and purchase data to Monetate.

Code for monetate.liquid Snippet


Step 3 Add the Snippet to theme.liquid

Insert the following code before the </body> tag of theme.liquid to render the monetate.liquid snippet.

Example of setPageType Method Added to Shopify collection-template.liquid


See Shopify's developer documentation for more information about its Liquid template language.