Quickstart
Add one script to your site, check that your visits arrive, and send a test conversion.
You need: a SourceTrack account, and access to edit your website's code or its site builder settings.
Key terms
- Snippet — the line of code you paste into your site.
- Site key — the ID inside your snippet. It tells SourceTrack which site a visit belongs to.
- Pageview — one visit to one page of your site.
- Conversion — an action you care about, like a sign-up, lead or purchase.
Steps
Add your site
Sign up and enter your website address in the Connect Your Domain step. To add another site later, choose + Add New Site in the site picker in the sidebar.
Copy your snippet
Open Setup & Health in the sidebar. The Install the script step shows your snippet with your site key already filled in. Press Copy.
Paste the snippet into your site
Paste it just before the closing
</head>tag, in the layout your pages share. It looks like this:HTML<script async src="https://api.srctk.com/tracker.min.js" data-site-key="YOUR_SITE_KEY"></script>Using a site builder or store? The install guide has the steps for each platform.
Visit your site
Open your live website in a new tab and click through a few pages.
Check that your visit arrived
Go back to Setup & Health and open Check tracking coverage. Tracking Doctor shows whether events are arriving. Your visit also appears in the Live Events Feed.
Send a test conversion
On the same page, press Send test conversion. Developers can also send one from the browser console:
JavaScriptwindow.sourcetrack.conversion({ value: 49.00, // before tax type: 'test_conversion', order_id: 'TEST_' + Date.now() });Confirm the test conversion
Look for
test_conversionin the Live Events Feed or the Events Log. A test conversion only checks that your site can send conversions. It is left out of Report Builder, the Leads count and ad-platform sends. It will not show up in your reports.
How to check it worked
- The Tracking Doctor badge reads Tracking: Healthy.
- Your visit and your test conversion appear in the Live Events Feed.
If nothing shows up
- An ad blocker is on. Pause it and visit your site again.
- Your browser sends Do Not Track or Global Privacy Control. SourceTrack does not record those visits. Try another browser.
- Tracking Doctor says Wrong domain or Test traffic detected. Visit your live site, not a test copy.
More fixes are in Troubleshooting.
Next step
Open the platform guides for your store or site builder. Then record conversions such as sign-ups and sales.