Aufbau auf Grundlage von : https://www.simoahava.com/analytics/google-analytics-4-ecommerce-guide-google-tag-manager/ https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?client_type=gtm#select_an_item_from_a_list
GA4 Event | altes Event in “Enhanced Ecommerce action” |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
| N/A |
|
|
| N/A |
|
|
|
|
|
|
|
|
|
|
*The checkout funnel is collected a bit differently with Google Analytics 4. There are no steps anymore - rather, GA4 offers you the (presumably) most popular checkout steps of adding shipping and payment info to the purchase.
Die oben genannten Events können mit folgenden Daten gefüllt werden
GA4 Parameter | alter Parameter in “Enhanced Ecommerce action” |
---|---|
|
|
|
|
|
|
| N/A |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| N/A |
| N/A |
|
|
|
|
| N/A |
|
|
Produktliste kann ein Array aus Items haben
dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ event: "view_item_list", ecommerce: { items: [ { item_id: "SKU_12345", item_name: "Stan and Friends Tee", affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", currency: "USD", discount: 2.22, index: 0, item_brand: "Google", item_category: "Apparel", item_category2: "Adult", item_category3: "Shirts", item_category4: "Crew", item_category5: "Short sleeve", item_list_id: "related_products", item_list_name: "Related Products", item_variant: "green", location_id: "L_12345", price: 9.99, quantity: 1 }, { item_id: "SKU_12346", item_name: "Google Grey Women's Tee", affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", currency: "USD", discount: 3.33, index: 1, item_brand: "Google", item_category: "Apparel", item_category2: "Adult", item_category3: "Shirts", item_category4: "Crew", item_category5: "Short sleeve", item_list_id: "related_products", item_list_name: "Related Products", item_variant: "gray", location_id: "L_12345", price: 20.99, promotion_id: "P_12345", promotion_name: "Summer Sale", quantity: 1 }] } }); |
dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ event: "select_item", ecommerce: { items: [ { item_id: "SKU_12345", item_name: "Stan and Friends Tee", affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", currency: "USD", discount: 2.22, index: 0, item_brand: "Google", item_category: "Apparel", item_category2: "Adult", item_category3: "Shirts", item_category4: "Crew", item_category5: "Short sleeve", item_list_id: "related_products", item_list_name: "Related Products", item_variant: "green", location_id: "L_12345", price: 9.99, quantity: 1 } ] } }); |
Hierfür muss auf den entsprechenden Hook geschaut werden → 'HOOK_WARENKORB_CLASS_FUEGEEIN', 126
für hinzufügen
event: “remove_from_cart
" → Hook : Löschen eines Artikels aus dem Warenkorb 'HOOK_WARENKORB_LOESCHE_POSITION', 205
dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ event: "add_to_cart", ecommerce: { items: [ { item_id: "SKU_12345", item_name: "Stan and Friends Tee", affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", currency: "USD", discount: 2.22, index: 0, item_brand: "Google", item_category: "Apparel", item_category2: "Adult", item_category3: "Shirts", item_category4: "Crew", item_category5: "Short sleeve", item_list_id: "related_products", item_list_name: "Related Products", item_variant: "green", location_id: "L_12345", price: 9.99, quantity: 1 } ] } }); |
Hierfür muss auf den entsprechenden Hook geschaut werden → 'HOOK_WUNSCHLISTE_CLASS_FUEGEEIN', 127
dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ event: "add_to_wishlist", ecommerce: { currency: "USD", value: 7.77, items: [ { item_id: "SKU_12345", item_name: "Stan and Friends Tee", affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", currency: "USD", discount: 2.22, index: 0, item_brand: "Google", item_category: "Apparel", item_category2: "Adult", item_category3: "Shirts", item_category4: "Crew", item_category5: "Short sleeve", item_list_id: "related_products", item_list_name: "Related Products", item_variant: "green", location_id: "L_12345", price: 9.99, quantity: 1 } ] } }); |
Hook: 'HOOK_WARENKORB_PAGE', 52
dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ event: "view_cart", ecommerce: { currency: "USD", value: 7.77, items: [ { item_id: "SKU_12345", item_name: "Stan and Friends Tee", affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", currency: "USD", discount: 2.22, index: 0, item_brand: "Google", item_category: "Apparel", item_category2: "Adult", item_category3: "Shirts", item_category4: "Crew", item_category5: "Short sleeve", item_list_id: "related_products", item_list_name: "Related Products", item_variant: "green", location_id: "L_12345", price: 9.99, quantity: 1 } ] } }); |
Hook: 'HOOK_BESTELLVORGANG_PAGE_STEPLIEFERADRESSE', 6
Zu klären: Ist der erste Step im Checkout → wird damit sichergestellt, dass hier der Checkout beginnt? Eingeloggte Kunden überspringen den Step? nSeitentyp sonst?
dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ event: "begin_checkout", ecommerce: { items: [ { item_id: "SKU_12345", item_name: "Stan and Friends Tee", affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", currency: "USD", discount: 2.22, index: 0, item_brand: "Google", item_category: "Apparel", item_category2: "Adult", item_category3: "Shirts", item_category4: "Crew", item_category5: "Short sleeve", item_list_id: "related_products", item_list_name: "Related Products", item_variant: "green", location_id: "L_12345", price: 9.99, quantity: 1 } ] } }); |
Hook: 'HOOK_BESTELLVORGANG_PAGE_STEPLIEFERADRESSE', 6
Zu klären: Wenn hier Hook 6 → wie dann begin_checkout festellten?
dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ event: "add_shipping_info", ecommerce: { currency: "USD", value: 7.77, coupon: "SUMMER_FUN", shipping_tier: "Ground", items: [ { item_id: "SKU_12345", item_name: "Stan and Friends Tee", affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", currency: "USD", discount: 2.22, index: 0, item_brand: "Google", item_category: "Apparel", item_category2: "Adult", item_category3: "Shirts", item_category4: "Crew", item_category5: "Short sleeve", item_list_id: "related_products", item_list_name: "Related Products", item_variant: "green", location_id: "L_12345", price: 9.99, quantity: 1 } ] } }); |
Hook: 'HOOK_BESTELLVORGANG_PAGE_STEPZAHLUNG', 8
dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ event: "add_payment_info", ecommerce: { currency: "USD", value: 7.77, coupon: "SUMMER_FUN", payment_type: "Credit Card", items: [ { item_id: "SKU_12345", item_name: "Stan and Friends Tee", affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", currency: "USD", discount: 2.22, index: 0, item_brand: "Google", item_category: "Apparel", item_category2: "Adult", item_category3: "Shirts", item_category4: "Crew", item_category5: "Short sleeve", item_list_id: "related_products", item_list_name: "Related Products", item_variant: "green", location_id: "L_12345", price: 9.99, quantity: 1 } ] } }); |
Hook: 'HOOK_BESTELLABSCHLUSS_PAGE', 2
→ zu klären: eventuell zu spät? Expresscheckout → verhalten? Evtl sonst → 'HOOK_BESTELLABSCHLUSS_PAGE_ZAHLUNGSVORGANG', 3
dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ event: "purchase", ecommerce: { transaction_id: "T_12345", affiliation: "Google Merchandise Store", value: 25.42, tax: 4.90, shipping: 5.99, currency: "USD", coupon: "SUMMER_SALE", items: [ { item_id: "SKU_12345", item_name: "Stan and Friends Tee", affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", currency: "USD", discount: 2.22, index: 0, item_brand: "Google", item_category: "Apparel", item_category2: "Adult", item_category3: "Shirts", item_category4: "Crew", item_category5: "Short sleeve", item_list_id: "related_products", item_list_name: "Related Products", item_variant: "green", location_id: "L_12345", price: 9.99, quantity: 1 }, { item_id: "SKU_12346", item_name: "Google Grey Women's Tee", affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", currency: "USD", discount: 3.33, index: 1, item_brand: "Google", item_category: "Apparel", item_category2: "Adult", item_category3: "Shirts", item_category4: "Crew", item_category5: "Short sleeve", item_list_id: "related_products", item_list_name: "Related Products", item_variant: "gray", location_id: "L_12345", price: 20.99, promotion_id: "P_12345", promotion_name: "Summer Sale", quantity: 1 }] } }); |
Zu klären: Wie ist das im Shop zu lösen?
dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ event: "refund", ecommerce: { currency: "USD", transaction_id: "T_12345", value: 12.21, affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", shipping: 3.33, tax: 1.11, items: [ { item_id: "SKU_12345", item_name: "Stan and Friends Tee", affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", currency: "USD", discount: 2.22, index: 0, item_brand: "Google", item_category: "Apparel", item_category2: "Adult", item_category3: "Shirts", item_category4: "Crew", item_category5: "Short sleeve", item_list_id: "related_products", item_list_name: "Related Products", item_variant: "green", location_id: "L_12345", price: 9.99, quantity: 1 } ] } }); |
Zu klären: Wie ist das im Shop zu lösen?
dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ event: "refund", ecommerce: { transaction_id: "T12345" // Transaction ID. Required for purchases and refunds. } }); |
Zu klären: Wie ist das im Shop zu lösen?
dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ event: "view_promotion", ecommerce: { items: [ { item_id: "SKU_12345", item_name: "Stan and Friends Tee", affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", currency: "USD", discount: 2.22, index: 0, item_brand: "Google", item_category: "Apparel", item_category2: "Adult", item_category3: "Shirts", item_category4: "Crew", item_category5: "Short sleeve", item_list_id: "related_products", item_list_name: "Related Products", item_variant: "green", location_id: "L_12345", price: 9.99, quantity: 1 } ] } }); |
Zu klären: Wie ist das im Shop zu lösen?
dataLayer.push({ ecommerce: null }); // Clear the previous ecommerce object. dataLayer.push({ event: "select_promotion", ecommerce: { items: [ { item_id: "SKU_12345", item_name: "Stan and Friends Tee", affiliation: "Google Merchandise Store", coupon: "SUMMER_FUN", currency: "USD", discount: 2.22, index: 0, item_brand: "Google", item_category: "Apparel", item_category2: "Adult", item_category3: "Shirts", item_category4: "Crew", item_category5: "Short sleeve", item_list_id: "related_products", item_list_name: "Related Products", item_variant: "green", location_id: "L_12345", price: 9.99, quantity: 1 } ] } }); |