Abonelere Özel
Yazının tamamı ve abonelere özel diğer 33 yazı abonelikte.
Shopify storefront event'lerinde eksik olan market verisini theme app extension ile cookie'ye yazıp, custom pixel sandbox'ından browser.cookie API'si ile okuyarak event'leri zenginleştirme. Shopify customerPrivacy API entegrasyonu, SameSite attribute'ları ve cross-subdomain cookie yapısı dahil.
Shopify storefront event'leri localization verisi taşımaz, ancak theme app extension (app embed) Liquid localization objesini okuyup document.cookie ile yazabilir. Custom pixel sandbox'ı browser.cookie.get() ile bu cookie'ye async erişir. Consent gate olarak Shopify customerPrivacy API'sinin analyticsProcessingAllowed() metodu kullanılır. Cookie'de SameSite=Lax; Secure; path=/ attribute'ları ve cross-subdomain için domain parametresi gerekir.
Yazının tamamı ve abonelere özel diğer 33 yazı abonelikte.