Browser SDK

App auth’u public siteye taşımadan tracking kur.

app.testvoy.com üzerinde site token oluştur, ardından browser SDK veya GTM tag’ini production property’ye ekle.

1. Site oluştur

Siteyi app.testvoy.com üzerinde oluştur ve public site identifier’ı kopyala. App auth ve billing app domain üzerinde kalsın.

2. SDK kur

Async script tag veya GTM template’i production property’ye ekle. Private app token’larını expose etme.

3. Hedefleri takip et

Deney hedefi ve reporting planıyla eşleşen conversion, funnel ve revenue event’lerini gönder.

4. Launch öncesi QA

Trafik açmadan önce assignment, variant rendering, bot filtering, SRM health ve event ingest’i doğrula.

install.html
<script async src="https://cdn.testvoy.com/sdk/browser.js" data-site="PUBLIC_SITE_ID"></script>
<script>
  window.testvoy?.track("purchase_complete", {
    value: 1299,
    currency: "TRY",
    orderId: "demo-order"
  });
</script>

Örnek yalnızca public site identifier kullanır. Authenticated app key’leri, billing token’ları ve private API credential’ları public siteye asla konmamalıdır.