Skip to main content

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

  1. Go to Online Store → Themes in your Shopify admin
  2. Click Actions → Edit code on your active theme
  3. Open the theme.liquid file
  4. Add the following before the closing </head> tag:
<script defer data-site="YOUR_SITE_ID" src="https://revlytics.co/script.js"></script>
  1. 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>