Session tracking best practices
Session tracking best practices: verify installation, maintain consistency, handle challenges (bots, cross-device, internal traffic), track right metrics, and maintain accuracy.
Why tracking accuracy matters
Inaccurate session tracking creates false confidence or unnecessary panic. Analytics showing 5,000 sessions when actual is 3,800 (bot contamination) makes conversion rate appear 24% lower than reality—you diagnose conversion problems when traffic quality is the real issue. Or tracking missing 15% of sessions makes growth look stagnant when you're actually growing—you waste budget "fixing" acquisition when it's working. Accurate baseline measurement is prerequisite for intelligent decisions. Best practices ensure data reliability enabling confident optimization.
Session tracking errors compound over time. Small 5% tracking loss seems trivial—you think you have 4,750 sessions when you actually have 5,000. But conversion rate calculation uses session count as denominator. Wrong denominator creates wrong conversion rate creates wrong optimization priorities creates wasted effort. Six months of decisions based on 5% error accumulate into substantially misdirected strategy. Prevention through proper setup beats diagnosis and correction after months of bad data.
Verify tracking installation
Test complete tracking flow
Don't assume tracking works because analytics shows numbers—verify tracking captures your activity correctly. Test: complete full shopping journey on your store (browse product, add to cart, checkout, complete test purchase). Check analytics within 24 hours: does it show your session? Does it show your order with correct revenue? Does product viewed appear in reports? If all three verify, tracking works. If any missing, tracking has gaps requiring diagnosis.
Test across devices and browsers creating realistic user conditions. Desktop Chrome (most common), mobile Safari (second most common), mobile Chrome, desktop Firefox—complete purchase on each, verify all track correctly. Browser privacy settings and ad blockers sometimes interfere with tracking—while you can't force customers to allow tracking, knowing your tracking coverage informs accuracy expectations. Typical tracking captures 85-95% of actual activity due to privacy blockers—acceptable loss understanding it exists.
Verify e-commerce event tracking
Basic analytics tracks pageviews and sessions. E-commerce tracking requires additional setup capturing purchase events with revenue, product details, transaction IDs. Without proper e-commerce setup, analytics might show sessions but miss orders entirely—appears as 0% conversion when sales actually occur. Verification: check e-commerce reports in analytics. Google Analytics 4: Reports → Monetization → E-commerce purchases. Should show recent transactions with revenue amounts. Shopify built-in analytics: automatically tracks e-commerce, no verification needed. WooCommerce: varies by analytics plugin used, verify orders flow to reports.
Check order-to-session attribution
Session tracking and order tracking must connect correctly—order needs attribution to session that generated it. Test: make purchase, note exact time. Check analytics: does order appear in same time window? Is order attributed to correct traffic source matching how you arrived? Misattribution happens when: checkout hosted on separate domain (breaks session continuity), payment gateway redirect doesn't return tracking parameters (order becomes "direct" instead of correct source), multiple tracking codes conflict (double-counting or missing attribution). Proper attribution ensures source analysis accuracy.
Maintain consistent tracking
Single analytics platform as source of truth
Using multiple analytics platforms (Google Analytics, Shopify Analytics, Facebook Pixel, third-party tools) creates confusion—each platform counts sessions and conversions slightly differently. Small definitional differences produce different numbers. Don't waste time reconciling why GA4 shows 4,200 sessions while Shopify shows 4,050 sessions—they define sessions differently, both are "correct" within their definitions. Choose one platform as source of truth for session counting and conversion rate. For Shopify stores: use Shopify Analytics as source of truth (native integration, accurate order capture). For WooCommerce: choose either WooCommerce Analytics or GA4 consistently.
Document tracking methodology
Write down exactly how you track sessions: which platform, which date range defaults, which filters applied, same-day versus extended attribution windows. Six months later comparing historical data, you'll forget these details. Documentation prevents confusion: "Why does June report show 2.1% conversion in this dashboard but 2.4% in that report?" Answer: different attribution windows. Without documentation, waste time investigating discrepancy instead of recognizing expected definitional difference. Document: primary platform, known tracking coverage percentage (e.g., "captures ~90% of sessions due to ad blockers"), timezone used, attribution window used.
Lock configuration after setup
After verifying tracking works correctly, avoid unnecessary changes. Changing analytics platforms, switching attribution models, adding/removing tracking codes mid-month all create before-after discontinuities making trend analysis unreliable. Was conversion rate change real performance shift or tracking change artifact? Make tracking changes during natural break points (end of year, major site relaunch) minimizing disruption to trend tracking. Stability enables accurate trend analysis—consistent measurement reveals actual performance changes versus measurement changes.
Handle common tracking challenges
Bot traffic filtering
Bots generate sessions without purchase intent, inflating session count and deflating conversion rate. Symptoms: extremely high bounce rate (80%+), session duration under 5 seconds, traffic spikes from unusual locations, sessions but zero engagement events. Most platforms filter obvious bots automatically (Google Analytics: Admin → Data Settings → Bot Filtering enabled). But sophisticated bots evade filters—accept 5-10% bot contamination as unavoidable. Monthly audit: compare session growth to revenue growth. Sessions up 30%, revenue up 5% suggests bot influx. Investigate sudden session spikes without proportional revenue—likely bot traffic.
Cross-device attribution limitations
Customer browsing mobile Monday, purchasing desktop Wednesday = two sessions (mobile non-converting, desktop converting) despite being same person. Standard analytics can't connect cross-device activity without user login. This understates mobile contribution—mobile session initiated purchase journey desktop completed, but mobile receives no credit. Can't easily fix without forcing login (hurts conversion rate). Better approach: accept measurement limitation, focus on device-specific optimization rather than perfect attribution. Optimize each device for its natural role in customer journey instead of obsessing over cross-device attribution accuracy.
Internal traffic exclusion
Your team browsing store for testing/updates contaminates session counts. Small team, small impact—3-5 people generating 20 monthly sessions out of 5,000 total = 0.4% contamination (negligible). Large team or heavy testing creates larger contamination—10 people generating 200 monthly sessions out of 2,000 total = 10% contamination (problematic). Solutions: filter internal traffic by IP address (Google Analytics: Admin → Data Filters → exclude internal IPs), use preview/staging environment for testing instead of live site, staff logs in before browsing (platforms filter authenticated staff automatically). For Shopify: staff sessions automatically excluded when logged in. For WooCommerce: configure IP exclusion in analytics.
Track the right session metrics
Essential daily metrics
Track yesterday: total sessions, overall conversion rate. Purpose: catch catastrophic failures (tracking breaks, checkout issues) requiring immediate investigation. Takes 30 seconds reviewing automated report. Don't analyze daily variance—too noisy for insights. Just confirm nothing broke. Yesterday 180 sessions, 4 orders = 2.2% conversion. Day before was 165 sessions, 4 orders = 2.4% conversion. Normal variance, no action needed. Yesterday 180 sessions, 0 orders = investigate immediately (checkout broken or anomaly requiring diagnosis).
Essential weekly metrics
Track past 7 days: total sessions, conversion rate, top 3 traffic sources with their conversion rates. Compare to previous 7 days. Purpose: identify emerging patterns and confirm stability. This week: 1,200 sessions (+8% versus last week), 2.3% conversion (stable), sources: organic 50%, email 30%, paid 15%. Interpretation: healthy growth, stable efficiency, source mix normal. Takes 3 minutes providing week-over-week context without deep analysis. Reserve deep analysis for monthly reviews.
Essential monthly metrics
Track full month: sessions by source, conversion rate by source, sessions by device, conversion rate by device, revenue per session, year-over-year comparison. Purpose: strategic assessment and planning. Takes 20 minutes monthly. Reveals: which sources grew/declined, which convert best, device performance gaps, seasonal patterns, optimization opportunities. Monthly deep-dive drives decisions for next month—where to invest, what to fix, what to test.
Segment tracking appropriately
Critical segments to track
Track sessions and conversion rate separately for: traffic source (organic/paid/email/social/direct), device type (mobile/desktop/tablet), new versus returning visitors, geographic region (if selling internationally). These four segmentation dimensions reveal 90% of actionable patterns. More granular segmentation (specific keywords, landing pages, user characteristics) valuable for specific optimizations but not daily operational tracking. Focus segmentation on dimensions informing different optimization tactics. Traffic source segmentation identifies channel performance. Device segmentation identifies experience gaps. New/returning segmentation identifies acquisition versus retention effectiveness.
Avoid over-segmentation
Tracking 50 segments creates analysis paralysis without proportional insight. Every additional segment requires attention, comparison, interpretation—cognitive overhead limiting action. Better: track 4-5 key segments consistently providing operational clarity than track 20 segments sporadically creating confusion. Advanced segmentation belongs in quarterly deep-dives or specific optimization projects, not daily/weekly operational tracking. Operational tracking optimizes for insight per minute invested, not total possible insights.
Set up automated alerts
Catastrophic failure alerts
Configure alerts for extreme anomalies indicating technical problems: sessions dropping 50%+ versus same day last week, conversion rate dropping to near-zero (under 0.3%), revenue dropping 70%+ versus previous day. These patterns indicate: site down, checkout broken, tracking failure, payment processor issues. Require immediate investigation regardless of time or day. Alerts catch problems within hours instead of discovering days later in regular review. Google Analytics: Admin → Custom Alerts. Shopify: third-party apps provide alerting. Set alert thresholds aggressive enough to catch real problems, conservative enough to avoid false alarms from normal variance.
Performance degradation alerts
Configure alerts for significant but not catastrophic changes: sessions declining 25%+ for 3+ consecutive days, conversion rate declining 30%+ for 7+ days, major traffic source dropping 40%+. These indicate developing problems requiring investigation within days, not immediately. Less urgent than catastrophic failures but more urgent than routine monthly reviews. Alerts enable proactive response before small problems become large problems. Set multi-day thresholds avoiding false alerts from single-day variance.
Maintain tracking over time
Quarterly tracking audits
Every 90 days: verify tracking still works correctly. Test complete purchase flow, check analytics captures correctly, compare analytics order count to platform order count for past 30 days (should match within 5-15% accounting for bot filtering and privacy blockers), review traffic source attribution accuracy. Quarterly audits catch tracking degradation from: theme updates breaking analytics code, plugin conflicts, platform changes, checkout customizations affecting tracking. 30-minute quarterly audit prevents months of degraded data quality.
Check after major changes
After any significant technical change (theme update, checkout customization, new app installation, platform migration), verify tracking immediately. Many "sudden conversion rate drops" are actually tracking breaks, not performance declines. Testing immediately after changes isolates cause-and-effect—tracking broke because of theme update versus tracking broke for unknown reason weeks ago. Prevention: before deploying changes, test in staging environment verifying tracking works. After deployment, test live site confirming tracking carried over correctly.
Annual tracking review
Once yearly: comprehensive tracking assessment. Review: tracking coverage percentage (what percentage of real activity does tracking capture?), platform tracking all necessary events (pageviews, sessions, conversions, product views, cart actions), attribution working correctly across all sources, segmentation configured appropriately, alerts functioning, documentation current. Annual review ensures tracking infrastructure keeps pace with business evolution. Growing from 1,000 to 10,000 monthly sessions might warrant upgraded tracking approach. Adding new traffic sources requires attribution verification. Store evolution necessitates tracking evolution.
Practical tracking setup checklist
For Shopify stores
Shopify Analytics: automatically enabled, verify reports show data (Analytics → Reports). Google Analytics 4 (optional): install Google Channel app (Apps → Shopify App Store → Google Channel), authenticate, verify e-commerce events appear in GA4 (Reports → Monetization → E-commerce purchases). Internal traffic: automatically filtered when staff logged in. Bot filtering: Shopify handles automatically. Verification: make test purchase, confirm appears in both Shopify Analytics and GA4 (if installed) within 24 hours. Takes 30-60 minutes initial setup, 5 minutes verification.
For WooCommerce stores
WooCommerce Analytics: automatically enabled, verify reports show data (WooCommerce → Analytics). Google Analytics 4: install Site Kit by Google plugin (Plugins → Add New → Site Kit), authenticate, enable Analytics module. E-commerce tracking: install GA4 integration plugin (multiple options available like "GA Google Analytics" or similar), configure to send purchase events. Internal traffic: configure IP exclusion in GA4 (Admin → Data Filters). Bot filtering: enable in GA4 (Admin → Data Settings → Bot Filtering). Verification: test purchase, confirm appears in both WooCommerce Analytics and GA4 within 24 hours. Takes 45-90 minutes initial setup, 10 minutes verification.
While detailed session tracking requires your analytics platform setup, Peasy delivers your essential daily metrics automatically via email every morning: Conversion rate, Sales, Order count, Average order value, Sessions, Top 5 best-selling products, Top 5 pages, and Top 5 traffic channels—all with automatic comparisons to yesterday, last week, and last year. Automated delivery eliminates manual dashboard checking while maintaining tracking best practices. Starting at $49/month. Try free for 14 days.
Frequently asked questions
How do I know if my tracking is accurate?
Compare analytics order count to actual orders from your platform for same 30-day period. Match within 5-15% = good accuracy (difference from privacy blockers and bot filtering). Match within 15-25% = acceptable but could improve. Difference over 25% = tracking problem requiring investigation. Also test: make purchase, verify appears in analytics with correct revenue and attribution. If test purchases track correctly and order counts roughly match, tracking is working adequately.
Should I use Google Analytics, Shopify Analytics, or both?
Shopify stores: use Shopify Analytics as primary source of truth for sessions and conversions (native integration, accurate order capture). Add GA4 for: traffic source deep-dives, user behavior analysis, cross-site tracking if you have multiple properties. For basic operational tracking, Shopify Analytics alone is sufficient. WooCommerce stores: can use either WooCommerce Analytics or GA4 as primary—test both, choose whichever tracks orders most accurately, use consistently. Having both is fine as long as you designate one as source of truth preventing confusion.
What if my analytics and platform show different session counts?
Small differences (5-10%) are normal—platforms define sessions slightly differently. Large differences (20%+) indicate tracking problems. Most common cause: analytics tracking code missing from some pages (especially checkout/confirmation pages). Solution: verify tracking code loads on all pages including checkout. For Shopify using Google Channel app, tracking should be automatic. For WooCommerce, ensure theme includes proper hooks where analytics code injects. Use one platform consistently rather than trying to reconcile different definitions perfectly.
How often should I check my session tracking?
Daily: 30-second review of yesterday's sessions and conversion (just confirm nothing broke). Weekly: 3-minute review of past 7 days compared to previous week. Monthly: 20-minute deep analysis. Quarterly: 30-minute tracking accuracy audit. Annually: comprehensive tracking infrastructure review. This cadence maintains tracking health without excessive dashboard time. More frequent checking wastes time analyzing noise. Less frequent checking misses problems accumulating unnoticed.

