Sharmlytics
DTC Analytics

Purpose-built analytics for DTC brands. Track customer journeys, conversions, and behavior patterns that actually matter for e-commerce growth. Simple setup, powerful insights.

Nik Sharma

Built by Nik Sharma

Former head of growth at Athletic Greens (AG1) where I scaled the brand from $100M to $300M+ ARR. I've helped 100+ DTC brands optimize their funnels, improve attribution, and scale profitably in the post-iOS 14.5 era.

After seeing too many founders struggle with generic analytics tools that don't understand DTC operations, I built Sharmlytics — the analytics platform I wish I had when scaling brands.

Installation

Step 1 — Add the script tag
<script src="https://pixel.sharmlytics.com/pixel.js" data-site="YOUR_SITE_ID"></script>

Place this tag just before the closing </body> tag on every page you want to track. Replace YOUR_SITE_ID with the ID shown in your dashboard after site approval.

Step 2 — Track custom events (optional)// Track a custom event window.nk('event', 'signup_click', { plan: 'pro' }); // Track a conversion window.nk('conversion', { value: 49.99, currency: 'USD', order_id: '12345' });
Step 3 — Track CTA clicks (optional)<!-- Add data-nk-track to any element --> <button data-nk-track="buy_now">Buy Now</button> <a href="/pricing" data-nk-track="pricing_link">View Pricing</a>

What it tracks

Page Views

URL, referrer, page title captured on every visit

Sessions

Anonymous visitor IDs with 30-min timeout rotation

UTM Parameters

Source, medium, campaign, term, content

Scroll Depth

25%, 50%, 75%, 100% thresholds tracked

Time on Page

Heartbeat every 5 seconds for accuracy

Click Tracking

Outbound links and data-nk-track CTAs

Conversions

Revenue, currency, order ID for attribution

Device Info

Type, browser, OS, screen resolution

Engagement Detection

Server-side session analysis for bounce rate

Return Visitors

New vs returning, automatically detected

API Endpoints

GET/pixel.js
POST/api/events
GET/api/install-guide