So erreichen Sie mit sGTM und Data Store ein 100 % genaues Tracking auf Shopify

Verfasst von

Vlad Kononov

Veröffentlicht 21. Okt. 2026 Kommentare

Überspringen Sie die manuelle Einrichtung von Events

Schritt-für-Schritt-Konfiguration

  1. 1.
  2. 2.
  3. 3.
  4. 4.
  5. 5.

Bevor Sie beginnen

Select your sGTM container from the dashboard
Click Activate Data Store

Schritt 1. Implementieren Sie die grundlegende Tracking-Konfiguration mit der Stape Conversion Tracking app

Schritt 2. Speichern Sie die erforderlichen Cookies in Data Store. Klicken Sie auf Activate Data Store.

analytics.subscribe("checkout_started", (event) => {   setTimeout(() => {     async function getCookiesPayload() {       try {         const payload = {           "event": "store_cookies",           "cart_token": init.data.cart.id,           "fbp": await browser.cookie.get('_fbp'),           "fbc": await browser.cookie.get('_fbc')         };         return payload;       } catch (error) {         console.error('Error retrieving cookies:', error);         return null;       }     }     async function sendCookiesToSgtm() {       const payload = await getCookiesPayload();       if (payload) {         fetch("https://sst.example.com/data", {           method: "POST",           headers: {             "Content-Type": "application/json"           },           body: JSON.stringify(payload),           keepalive: true         }).then(response => {           console.log('Payload sent successfully:', response);         }).catch(error => {           console.error('Error sending payload:', error);         });       }     }     sendCookiesToSgtm();   }, 1500); });
Stape Store Writer tag config

Schritt 3. Speichern Sie jeden aus dem Web-Container gemeldeten Kauf in Data Store

Stape Store Writer tag

Schritt 4. Richten Sie einen Webhook in Shopify ein

Set up a webhook in Shopify

Schritt 5. Überprüfen Sie, ob die per Webhook gesendete Bestellung bereits verarbeitet wurde

  1. 1.
  2. 2.
  3. 3.
Stape Store Lookup variable
Stape Store Lookup variable

Fazit

Möchten Sie mit serverseitigem Tracking beginnen?

Kostenlos testen

Verfasst von

Vlad Kononov

Content writer

Vlad, Spezialist für Tracking & Messung, ist Experte in GTM und sGTM. Er hilft Unternehmen, eine genaue Datenerfassung, nahtlose Integration und optimierte Messstrategien sicherzustellen.

War dieser Artikel hilfreich?

Kommentare

Verwandeln Sie besseres Tracking in eine bessere Marketing-Performance

Kostenlos testen