Documentation Index
Fetch the complete documentation index at: https://revlytics.co/docs/llms.txt
Use this file to discover all available pages before exploring further.
Installation
- Go to Online Store → Themes in your Shopify admin
- Click Actions → Edit code on your active theme
- Open the
theme.liquid file
- Add the following before the closing
</head> tag:
<script defer data-site="YOUR_SITE_ID" src="https://revlytics.co/script.js"></script>
- Click Save
Revenue tracking
Revlytics auto-detects Stripe checkout sessions. If your Shopify store uses Stripe, purchases will be tracked automatically when customers return to your site after checkout.
Track custom events
Track add-to-cart events with HTML attributes:
<button
data-revlytics-event="add_to_cart"
data-revlytics-prop-product="{{ product.title }}"
data-revlytics-prop-price="{{ product.price | money }}"
>
Add to Cart
</button>