Przejdź do głównej zawartości

Quick start

Ta treść nie jest jeszcze dostępna w Twoim języku.

  1. Add your website. Sign in at app.quomerce.com, open Websites and click Add website. Type the shop’s address. More

  2. Turn on shop analytics. Open the website, then Install & setup, and click Turn on shop analytics. This creates the site’s public key, pk_live_….

  3. Check the allowed domains. In Analytics settings, list every host the shop runs on, such as example.com and www.example.com. More

  4. Paste the snippet into the <head> of every page. Copy it from Install & setup, so the key is already filled in:

    <script>
    !function(w,d,u){if(w.qm&&w.qm.s)return;var q=w.qm=w.qm||function(){(q.q=q.q||[]).push(arguments)};q.q=q.q||[];q.s=u;var e=d.createElement("script");e.async=!0;e.src=u;(d.head||d.documentElement).appendChild(e)}(window,document,"https://ingest-prod.quomerce.com/sdk/v0/qm.js");
    qm("init",{key:"pk_live_…"});
    </script>

    Using Next.js? Follow the Next.js guide instead.

  5. Connect your consent banner. Pass the visitor’s choice on every page. More

    qm("consent", { analytics: true, replay: true });
  6. Choose how commerce events are reported. If your shop sends GA4 e-commerce events, the default auto mode reads them. To send them from your code, use manual mode. More

  7. Check that it works. View a product, add it to the cart and start checkout. The checklist on Install & setup ticks within seconds. More