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

Geschreven door

Vlad Kononov

Gepubliceerd 20 okt. 2026 reacties

Ü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

Geschreven door

Vlad Kononov

Content writer

Vlad, specialist in Tracking & Measurement, blinkt uit in GTM en sGTM. Hij helpt bedrijven met nauwkeurige dataverzameling, soepele integratie en geoptimaliseerde meetstrategieën.

Was dit artikel nuttig?

Opmerkingen

Zet betere tracking om in betere marketingprestaties

Gratis proberen