← Back to Docs

Quickstart Guide

Get up and running with SourceTrack in 5 minutes.

Who This Is For

This guide is for founders, marketers, ecommerce store owners, and developers who want to set up conversion tracking on their website from scratch in under five minutes.

Key Terms Defined:

  • Site key — the public ID that tells SourceTrack which site the event belongs to.
  • Tracker script — the small JavaScript snippet SourceTrack uses to record visits.
  • Pageview — an event recorded when a visitor loads a page on your site.
  • Conversion — a signup, lead, purchase, booked call, or other action you care about.

What You Will Set Up

You will configure a site profile in the dashboard, retrieve your unique tracking key, install the lightweight snippet on your website, and trigger a test conversion event to ensure attribution works end-to-end.

Steps: The 5-Minute Checklist

  1. Create a Site Profile

    Log in to the dashboard, click on your site profile selector in the sidebar, and selectAdd New Site. Enter your domain name and choose your primary currency.

  2. Copy your Site Key

    Go to the Settings page in your dashboard. Under the Site Settings tab, copy your unique public Site Key (which starts with st_).

  3. Install the Tracker Script

    Paste this code snippet before the closing </head>tag of your website. Replace YOUR_SITE_KEY with your real key.

    <script async src="https://api.srctk.com/tracker.min.js" data-site-key="YOUR_SITE_KEY"></script>
  4. Visit your Website

    Open a new browser tab, go to your live website, and click around a few pages to trigger pageview events.

  5. Verify your First Pageview

    Return to the SourceTrack dashboard. Use the Setup Doctor diagnostic check on the Snippet Code page to check whether your site is connected and sending events, or open the Event Debugger to see whether your visit appears.

  6. Trigger a Test Conversion

    To test conversion attribution, trigger an action on your website that fires a conversion call. For example, paste this in your browser console:

    window.sourcetrack.conversion({
      value: 49.00,
      type: 'test_conversion',
      order_id: 'TEST_' + Date.now()
    });
  7. Check your Reports

    Verify that the test conversion appears in the Event Debugger and Report Builder under your designated conversion type.

How to Verify It Worked

  1. Visit your website with your browser's Developer Tools open (Network tab).
  2. Filter the network requests by typing track.
  3. Verify that a network request to POST /api/track executes and returns a success status.
  4. Confirm that the event appears in the Event Debugger in your SourceTrack dashboard.

Common Mistakes

  • Pasting script in the footer: The tracking script should go in the<head> section so that pageviews and acquisition details are captured before the visitor exits.
  • Using ad blockers during test: Strict privacy filters can block requests to our analytical endpoint. Pause ad blockers or use a private window for verification.

Next Step

Setup is complete! Read ourPlatform integration recipesto connect your content systems and store carts.