Setup Litlyx in shopify within seconds.
Sales Channels
> Online Store
> Themes
.active theme
, click on the 3 dots button (⋮)
and select Edit code.layout/theme.liquid
.theme.liquid
file, look for the <head>
tag.</head>
:workspace_id
with your workspace_id from Litlyx’s dashboard.visitor counts
, real-time users
, top pages
, traffic sources
, bounce rate
, and more.
Shopify Admin
> Settings
> Customer events
.Create Custom Pixel
.Add Pixel
to save.code
field.Connect
.analytics.subscribe()
function.
purpose | Shopify event purpose |
---|---|
product_viewed | User checks a product. |
product_added_to_cart | User adds a product to the cart. |
product_removed_from_cart | User removes a product from the cart. |
cart_viewed | User checks the cart. |
checkout_started | User starts the checkout process. |
checkout_completed | User finalizes the order. |
page_viewed | Page view (including checkout if filtered). |
Web Pixel
and listen for the page_viewed
event…
then check the page’s path (also called pathname).
Here are some common checkout paths you might want to track:
page type | URL |
---|---|
Start checkout | /checkouts/cn/… |
Shipping | /checkouts/cn/…/shipping |
Payment | /checkouts/cn/…/payment |
Review | /checkouts/cn/…/review |
Thank-you (Order complete) | /checkouts/cn/…/thank-you |
theme.liquid
file (see Step 1).