Troubleshooting
Ta treść nie jest jeszcze dostępna w Twoim języku.
Start with debug. Add it to init and reload the page:
qm("init", { key: "pk_live_…", debug: true });The script then logs what it did and ignored to the console (console.debug, under “Verbose” in Chrome). Remove it when done.
Nothing arrives
Section titled “Nothing arrives”- Is the host allowed? It must be in Allowed domains in Analytics settings.
www.example.comandexample.comare different hosts. - Is tracking on? Check Tracking on in Analytics settings.
- Is the request blocked? Look for requests to
ingest-prod.quomerce.comin the Network tab. Ad blockers can block them. - Is there a Content Security Policy? See Content Security Policy.
- Is the key right? It starts with
pk_live_and must match the website. - Is it a test browser? Automated and headless browsers are ignored. Use an ordinary browser window.
Events arrive, but no replays
Section titled “Events arrive, but no replays”- Is Record replays on?
- With consent Required, the visitor must allow
analyticsandreplay. See Consent. - Sessions under 3 seconds are not recorded.
Commerce events are missing
Section titled “Commerce events are missing”qm.commercecalls never arrive? Passcommerce: "manual"toinit;automode ignores them. See Commerce: auto or manual.- Some manual calls are dropped? A product needs
id,name,priceandcurrency, with money in major units.debug: truelogs each dropped call. - A step is empty in
automode? Add a rule in Analytics settings → Commerce events. Payment redirects always need one. See Auto mode. - Calls before the script loads are lost? Use
qm("commerce.cartAdded", …), notqm.commerce.cartAdded(…).
Every page looks like a new visit
Section titled “Every page looks like a new visit”With consent Required, call qm("consent", { analytics: true }) on every page load, not only when the visitor clicks.
Sessions split between subdomains
Section titled “Sessions split between subdomains”Set cookieDomain: ".example.com" in init, and add every subdomain to Allowed domains.
Orders are counted twice
Section titled “Orders are counted twice”A reload of the confirmation page sends purchase again. Guard it per order id. See Manual mode.