trakily.

Shopify

Install Trakily on a Shopify store by adding the script to theme.liquid.

Use your own snippet

The examples use placeholders. In the app, Settings → Tracking shows the same snippet with your website id (it starts with pls_) and domain already filled in, so copy it from there.

Install

  1. 1

    In your Shopify admin, go to Online Store → Themes and click ⋯ → Edit code on your live theme.

  2. 2

    Open layout/theme.liquid and paste the script just before </head>.

  3. 3

    Click Save.

layout/theme.liquid
<script
  defer
  data-website-id="pls_…"
  data-domain="example.com"
  src="https://trakily.com/js/script.js"
></script>

Checkout pages

Shopify's checkout is not rendered from theme.liquid, so the script runs on your storefront pages but not inside checkout. Visits, sources and goals on the storefront are tracked as usual.

Check the install

Open your live site in a normal browser window, then go to Settings → Tracking in Trakily. The status line switches from Waiting for the first event… to Receiving events within a few seconds of your visit.

Still waiting? Add data-debug="true" to the script tag and open the browser console: every event is logged with a [trakily] prefix, and if tracking is disabled the log says why (missing attributes, localhost, iframe, bot or trakily_ignore). The Quickstart lists the common causes.