Analytics

You can track page views and events on your Lemon Squeezy-hosted pages by using our analytics integrations with Google Analytics and Meta pixels.


Lemon Squeezy: store analytics

The integrations track all visits to your storefront and checkout pages (hosted and overlay) as well as tracking all recommended e-commerce events, like viewing items, viewing carts and completed purchases.

Google Analytics

Google Analytics is a platform for tracking visits to web pages as well as the actions visitors make. With our integration, it is possible to view comprehensive analytics for visits to your store pages as well as track customer journeys all the way through to a successful purchase.

Add your Google Analytics ID

Once you have created a Property in Google Analytics, go to the Property’s settings and then “Data Streams”.

Copy the “Meaurement ID” and paste it in your Lemon Squeezy dashboard in the Design settings and make sure the “Google Analytics” toggle is turned ON.

Lemon Squeezy: add google analytics to your store

Page view analytics in Google Analytics

Visits to your storefront and product/checkout pages are tracked automatically if you have added your Measurement ID and turned on the “Google Analytics” option.

You will see this data appear in your Google Analytics dashboard in real-time.

Events tracked in Google Analytics

We track the following events on your hosted storefront and checkout pages. Data about these events will show up in your Google Analytics dashboard making it easy to see how often certain events happen and track conversions for your different products.

We send event data along with each event, so you will see information like transaction ID, order total, tax total and currency in your Google Analytics account.

Storefront

  • view_item_list - when the storefront loads
  • select_item - when a customer clicks on a product

Checkout page

  • view_item - when the checkout loads
  • view_cart - when the checkout loads and when a variant is selected in the checkout
  • apply_discount* - when a valid discount code is successfully added to the form
  • remove_discount* - when a discount code is removed from the form
  • add_payment_info - when the user submits the checkout form
  • purchase - when a payment is successful (when the checkout confirmation modal is shown)

Tracking Google Analytics events in Checkout overlay

To track Google Analytics events in Checkout overlay, you need to install the Google Analytics tracking code on your website where the overlay is embedded.

Once installed, there is no extra configuration needed, and all tracking events as mentioned above will be sent to your Google Analytics account.

Meta pixel

Meta pixels let you track events happening on your store pages and measure the effectiveness of your Facebook and Instagram ad campaigns. Being able to track events happening on your Lemon Squeezy-hosted pages let you cover the full customer journey right up to a purchase.

Add your Meta pixel ID

First, follow the instructions from Meta’s own documentation on how to set up a Meta pixel.

In Step 6 choose “Meta pixel only”. You only need to copy the pixel ID. Paste it in your Lemon Squeezy dashboard in the Design settings and make sure the “Meta pixel” toggle is turned ON.

Lemon Squeezy: adding Meta pixel

Events tracked with Meta pixel

We track the following events on your hosted storefront and checkout pages. Data about these events will show up in your Meta Events Manager making it easy to see how often certain events happen and track conversions for your different products.

We send event data along with each event, so you will see information like transaction ID, order total, tax total and currency in your Events manager.

Storefront

  • PageView - when the storefront loads
  • ViewContent - when the storefront loads
  • InitiateCheckout - when a customer clicks on a product

Checkout page

  • PageView - when the checkout loads
  • AddToCart - when the checkout loads and when a variant is selected in the checkout
  • ApplyDiscount* - when a valid discount code is successfully added to the form
  • RemoveDiscount* - when a discount code is removed from the form
  • AddPaymentInfo - when the user submits the checkout form
  • Purchase - when a payment is successful (when the checkout confirmation modal is shown)

Was this page helpful?