hi,
i add standart google ecommerce code to my page. Everything works fine, just source value always is my plain domain. How to get the normal sources, or set it?

In short, how to get a reference to my purchase of the script, from where people came to shop.

Thanks

Dani AI

Generated

— the symptom described (transactions attributed to your own domain) is a classic “self‑referral” / lost‑session problem. ’s question about “normal sources” is on point: Google Analytics attributes a transaction to whatever Source/Medium was active for the session that recorded the transaction. If that session starts (or is reset) on the site itself, the source will be the site domain.

Missing details in the thread make diagnosis incomplete: the GA flavor (classic ga.js vs Universal vs GA4), whether checkout uses an external payment gateway, and whether the final “thank‑you” page actually runs the same tracker are all critical. Confirm those first. Reproduce a purchase from a known external referrer and watch Real‑Time traffic; inspect the browser cookies (__utmz for classic, _ga/clientId for newer libs) and the Network tab to see whether analytics hits on the thank‑you page carry the original clientId/campaign info.

Common causes and fixes

  • Third‑party redirects (PayPal/etc.): implement cross‑domain/linker linking so the clientId is preserved, or use the payment provider’s recommended return parameters. If that’s not possible, add the payment domain to the referral‑exclusion list—careful: exclusion hides the session start but can mask real attribution if misused.
  • Cookie domain/session reset: ensure tracker is set to use the proper cookie domain (so cookies persist across subdomains) and that there aren’t multiple or conflicting tracker snippets that overwrite cookies.
  • Timing/implementation: make sure the ecommerce transaction code runs after the tracker loads and that it reports to the same property ID.

Quick checklist to resolve

  • Confirm GA version and property ID on all checkout/thank‑you pages.
  • Reproduce the flow from an external referrer in Incognito and watch Real‑Time.
  • Inspect cookies and analytics hits (Network tab) for clientId consistency.
  • If using external gateway, enable linker/cross‑domain or preserve clientId on return; otherwise consider referral exclusion with caution.
  • Use GA debug tools or tag‑assistant to catch double‑tracking or missing hits.

These steps will pinpoint whether the problem is lost attribution (new session/self‑referral) or a tracking implementation issue, and show which fix is appropriate.

Recommended Answers

All 2 Replies

Member Avatar for Member #949455

How to get the normal sources, or set it?

What do you mean by normal sources.?

In short, how to get a reference to my purchase of the script, from where people came to shop.

What you just mention got me a bit confused. What do you mean by reference? You mean a receipt?

Hi,
please check this image:

I hope it will be clear

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.