Docs

Installation

Shopyflow installation takes place in 2 simple steps.

  1. Configuring Shopify
  2. Connecting to Webflow

Configure Shopify

Shopyflow requires a Storefront API access token to securely connect your Shopify Store to your Webflow site. To generate your Store API access token;

  1. Head to your Shopify Admin > Settings > Apps and Sales Channels section and click Develop apps link..

What’s a Rich Text element? What’s a Rich Text What’s a Rich Text element? What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

What’s a Rich Text element? What’s a Rich What’s a Rich Text element? What’s a Rich Text ejklkjököbömnlement?What’s a Rich Text element? What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Shopyflow requires a Storefront API access token to securely connect your Shopify Store to your Webflow site. To generate your Store API access token;

1. Head to your Shopify Admin > Settings > Apps and Sales Channels section and click Develop apps link.

What’s a Rich Text element? What’s a Rich What’s a Rich Text element? What’s a  element?What’s a Rich Text element? What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Static and dynamic content editing

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

How to customize formatting for each rich text

Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.

E-commerce Tracking with Shopyflow

Headless e-commerce stores, while offering tremendous flexibility and customization, face the challenge of not being able to leverage Shopify's native analytics. To bridge this gap, Shopyflow offers an out-of-the-box integration with Google Analytics. Other integrations such as Meta CAPI and Klaviyo are coming soon.

Google Analytics 4

After adding the GA4 tag to your Webflow site, you can start tracking e-commerce events by adding  analytics="true" attribute to your Shopyflow Engine code snippet as shown below:


<!-- Shopyflow CSS -->
<link rel="stylesheet" href="https://cdn.shopyflow.io/[VERSION]/shopyflow.css"/>

<!-- Shopyflow Engine -->
<script defer
sf-token="[STOREFRONT API KEY]"
sf-domain="[SHOPIFY STORE DOMAIN]"
src="https://cdn.shopyflow.io/[VERSION]/shopyflow.js"
analytics="true"></script> 
This tutorial assumes that you already have enabled Google Analytics in your Shopify store. If you haven't yet, you can find out more on how to do it here.

With Shopyflow your store can track the following e-commerce events:

  • view_item
  • add_to_cart
  • remove_from_cart
  • begin_checkout
  • complete_purchase (in Shopify's checkout)
IMPORTANT: You must use the same GA tag in Webflow and Shopify.

Cross-Domain Measurement

Once the GA tag is installed and the Shopyflow snippet is updated, we have to make sure that the customer session is being tracked correctly between your Webflow store and the Shopify checkout. For that we will use cross-domain measurement feature of GA4:

Enabling cross-domain measurement on Google Analytics

Google Tag (gtag.js) vs GTM

Google Tag and GTM differ in their tracking approach. If you are using the Google Tag, you don't need to do any extra setup. Shopyflow will send the events mentioned above directly to your GA account.
If you are using GTM, Shopyflow will push the events and the variables only to your data layer. You will have to setup your tags in your GTM account and map the data layer variables to the events manually.