Docs
Free ON WEBFLOW.IO DOMAINS

Shopify Analytics

Integration
Use Shopify Analytics with Webflow

Shopify Storefront data and cart logic is bound to your Webflow elements through Shopyflow attributes. Connecting your Webflow site to Shopify is done by adding custom attributes to your Webflow elements.

Yet, you are not required to type or edit attributes manually. Shopyflow provides you with the pre-configured components needed to create your store, as copyable Webflow elements right in Webflow designer.

All the copyable Shopyflow Components are native editable Webflow elements. There is no layout or styling limitation on any element.

In the below image hover your mouse on the hotspots to see all the required Shopyflow attributes to build a product page like this in Webflow

Webflow designer
Custom Attributes
sf-add-to-cart="1"
Custom Attributes
sf-change-quantity="1"
Custom Attributes
sf-change-option="{Option Name}"
Custom Attributes
sf-cart-count="1"
Custom Attributes
sf-change-option="{Option Name}"
Custom Attributes
sf-product="{Product ID}"
Custom Attributes
sf-show-image="1"
Attribute Name
Attribute Value
True or 1
Nesting Rule
Can be placed anywhere in the site
No items found.
Shopify Analytics
Method

Shopify Analytics provides store owners with key data on sales, customer behavior and website performance, all within the Shopify dashboard. It helps businesses track trends, measure marketing effectiveness and make informed decisions to optimize their store’s growth and profitability.

IMPORTANT: Shopify Analytics may miss tracking some users because modern browsers block third-party cookies by default, preventing proper session tracking and ad attribution. Additionally, adblockers often block tracking scripts entirely, so user interactions aren't recorded at all. As a result, traffic sources, conversions and user behavior data can be incomplete or inaccurate. It's advised to use an additional server-side tracking solution.

You can start using Shopify Analytics with Shopyflow by enabling it in Shopyflow Webflow App > Installation > Advanced Tracking

Domain Settings

It is recommended to have your Webflow and Shopify domains under the same top level domain to allow seamless tracking between your sites. Example:

  • in Webflow mysite.com
  • in Shopify store.mysite.com

User Consent

Shopify Analytics requires you to collect user consent before it can start tracking.

  • If your store doesn't have a cookie consent pop-up you can disable consent collection in Shopyflow Webflow App > Installation > Advanced Tracking > Shopify Analytics
  • If your store uses a cookie consent pop-up, run this code after user interacts (accepts or rejects) with your cookie consent pop-up:
window.Shopyflow.tracking.setShopifyConsent({
  analytics:    // Get from user's selection
  marketing:    // Get from user's selection
  preferences:  // Get from user's selection
  sale_of_data: // Get from user's selection
});

Events

Once your setup in complete, Shopyflow will start sending the following e-commerce events to your Shopify Dashboard:

  1. View Page
  2. Add to Cart
  3. Product View
Class name
Target elements
Can be placed anywhere in the site
No items found.

Webflow app usage

Webflow app settings

Inner components

Module contents

Available methods

No items found.

Integration

contents

No items found.

State management

No items found.

Related Utilities

No items found.
Can't find a solution? Join our Discord server to get an instant reply from our experts and the community.