# Troubleshooting

Find your problem, try the fix, and check that it worked.

## Symptoms and fixes

### Symptom: No visits are showing up in the dashboard

- **Likely Cause:** The snippet is missing, has the wrong site key, or is blocked. An ad blocker can block it. Browsers that send Do Not Track or Global Privacy Control are not tracked. Your own IP address, country or hostname may be on the Excluded traffic list. A site cache can also serve an old page without the snippet.
- **Fix:** In Setup & Health, open Check tracking coverage and press Check my homepage in Tracking Doctor. It reports a missing snippet, a wrong site key, a blocked script or a cached page. Copy your snippet again if needed. Pause your ad blocker and try another browser. Check Settings > Excluded traffic for your own details.
- **How to Verify:** Visit your live site, then look for your visit in the Live Events Feed on Setup & Health. The Tracking Doctor badge reads Tracking: Healthy once events arrive.

### Symptom: Conversions are missing

- **Likely Cause:** The conversion is sent before the script has loaded, or the tracking script is not on your thank-you page.
- **Fix:** Make sure the tracking script is on your thank-you page. If you send conversions from your own code, turn on Queue early calls under Advanced options in the Install the script step, and copy the snippet again. Or count a visit to your thank-you page as a conversion: in Setup & Health, open Choose your conversions, then More ways to count conversions, and add a Page visited rule.
- **How to Verify:** Trigger the conversion on your site once, then look for it in the Live Events Feed or the Events Log.

### Symptom: The same conversion is counted twice

- **Likely Cause:** The conversion is sent more than once, for example when a visitor refreshes the thank-you page.
- **Fix:** Send a unique order_id with every conversion, such as your order number. A repeat of the same order_id from the same source is not counted again. Report orders from one source per store.
- **How to Verify:** Refresh your thank-you page. The Events Log still shows one conversion for that order.

### Symptom: Purchases are counted twice in Meta ads reporting

- **Likely Cause:** Meta gets the same purchase from two places, such as your Meta pixel and SourceTrack. Meta merges the two only when both carry the same event ID. A sale sent from a Stripe or Shopify webhook has its own ID, which your pixel does not have.
- **Fix:** In Integrations, open your Meta settings and turn on Fire the Meta Pixel event with the same event ID. Then remove your own pixel call for those conversions. If you use Google Tag Manager, you can instead use sourcetrack_event_id as the event ID of your pixel tag.
- **How to Verify:** Make one test purchase, then open it in Meta Events Manager. A shared ID should show the browser and server events merged into one event.

### Symptom: Traffic shows as Direct when it should show a source

- **Likely Cause:** Where a visitor came from is passed on by their browser, and some links do not pass it on. Some email apps, chat apps and PDF viewers leave it out. Some sites choose not to share it.
- **Fix:** Add UTM tags to every campaign, email and partner link you control. A tag stays in the link, so the source survives. Some visits really are Direct, and SourceTrack cannot recover a source that was never sent.
- **How to Verify:** Click one tagged link in a new tab. It can take a few minutes for the source to show under Sources in Analytics. A steady share of Direct is normal. A sudden jump right after a site or link change is worth a look.

### Symptom: Clicks from X (Twitter) show as one source, and I cannot tell which post brought a visit or a sale

- **Likely Cause:** X wraps every link in its t.co shortener. The browser usually passes on only t.co as the referrer, and the post is not part of it. An untagged click can only show as X, not as one post.
- **Fix:** Give each post its own tagged link. In Setup & Health, under Install the script, open Tag links to your X posts. Paste the page you link to and the post address or a short label, then use the link it builds in your post. The link sets utm_content to x- plus the post ID. A link that is already published cannot be tagged afterwards.
- **How to Verify:** Click your tagged link once, then open Campaigns and choose the Content tab. The row x-<post id> appears once the visit is counted. Type x- in the search box to list only X posts. Revenue shows beside it only where a revenue source is connected.

### Symptom: Shopify orders are not linked to the visit that led to them

- **Likely Cause:** The visitor ID did not reach the Shopify cart. Or the order webhook you created in Shopify has a signing secret that does not match the one saved in SourceTrack.
- **Fix:** Add the cart snippet from the Shopify guide to your theme. If you created the order webhook yourself, enter its signing secret from Shopify in SourceTrack again.
- **How to Verify:** Add an item to your cart and open yourstore.com/cart.js. The attributes should include st_aid.

### Symptom: Stripe payments are not linked to the visit that led to them

- **Likely Cause:** The visitor ID was not passed when the Checkout Session was created, or it was passed under a name SourceTrack does not read.
- **Fix:** Ask your developer to send the visitor ID with the Checkout Session. Get it in the browser with sourcetrack.getToken() and set it as client_reference_id, or as metadata.anonymous_id. Other names, such as metadata.st_aid, are not read.
- **How to Verify:** Open the Checkout Session in your Stripe Dashboard. Check that client_reference_id (or metadata.anonymous_id) holds the visitor ID.

## Check that a fix worked

1. Make your change. Then clear your site cache if you use one.
2. Open your live site in a new browser window.
3. Click through a page or trigger the action.
4. Look for it in the **Live Events Feed** on **Setup & Health**.

## Common mistakes

- **Testing in a browser that blocks trackers.** Pause blockers or try another browser.
- **Leaving an old cache in place.** Caching plugins and CDNs can keep serving the old page. Clear them after you change the snippet.

## Cookieless Mode: What to Expect

Cookieless mode stores nothing in the browser of your visitor. A returning visitor is not recognised across days.

- **The visitor ID can be blocked.** An ad blocker or a network failure can stop the request. SourceTrack then uses an ID that lasts for one session, and writes a short warning to the browser console.
- **That visitor is not connected across sessions.** A later conversion may be recorded as Direct.

If you need attribution across several visits, switch off cookieless mode in [Settings](https://app.sourcetrack.ai/settings), under Cookieless Tracking.

## Use Tracking Doctor

**Tracking Doctor** is on **Setup & Health**, in the **Check tracking coverage** step.

- **Check my homepage:** looks for your snippet on your homepage. It reports a missing or wrong site key, a blocked script and a cached page.
- **Scan for duplicate tags:** finds extra SourceTrack snippets on your page.
- **Verify a live pageview:** press **Open test page**, then **Check now**. It confirms that a visit to your registered domain arrives. Test links are not available for local or test addresses.
- **Wrong domain or Test traffic detected:** events come from a different address than the one you registered, or from a test copy of your site.
- **Dashboard connection check:** tests the link between this dashboard and SourceTrack, not your site. If it says API blocked, try another browser or pause blockers.

**What Healthy means:** events are arriving from your site. It does not prove that every page has the script, and it does not check how accurate your attribution is.

## Next step

Fixed? Go back to the [docs home](https://www.sourcetrack.ai/docs) to set up more of SourceTrack.
