מדידת מסחר אלקטרוני

אתם יכולים להגדיר אירועי מסחר אלקטרוני כדי לאסוף מידע על התנהגות הקניות של המשתמשים. האירועים מאפשרים לכם למדוד את הביצועים של המוצרים הכי פופולריים שלכם ולראות את ההשפעה של קידומי המכירות והפרסום הסמוי על ההכנסות.

במאמר הזה מתואר כל אירוע מסחר אלקטרוני ומפורט מתי צריך להגדיר את האירוע. במאמר הגדרת אירוע רכישה מוסבר איך להגדיר אירוע מסחר אלקטרוני, שלב אחר שלב.

לפני שמתחילים

חשוב לוודא שהוספתם את Google Tag לאתר ושאתם יכולים לגשת ל-Analytics ולקוד המקור של האתר.

המלצות

  • מפעילים את מצב ניפוי הבאגים כדי לראות אירועים בזמן אמת ולפתור בעיות.
  • כששולחים פרמטרים מותאמים אישית עם אירועי מסחר אלקטרוני, חשוב לעיין במגבלות על מאפיינים ומדדים מותאמים אישית.
  • צריך להגדיר את currency ברמת האירוע כששולחים נתוני value (הכנסות). זהו המטבע הראשי של העסקה, והוא משמש לדיווח רגיל בממשק של Google Analytics.
  • מגדירים כל פרמטר של מסחר אלקטרוני שיש לכם נתונים לגביו, גם אם הפרמטר הוא אופציונלי.
  • כדי לוודא שהנתונים יאוכלסו כמו שצריך בדוחות, צריך לפעול לפי הפורמט שמופיע במסמך הזה. אם אתם צריכים להגדיר את מערך הפריטים מחוץ למערך המסחר האלקטרוני, הגדירו את הפרמטר currency ברמת האירוע כשאתם שולחים נתוני value (הכנסה).

הגדרת רימרקטינג דינמי ב-Google Ads

רימרקטינג דינמי מאפשר לכם להציג למשתמשים באתר ובאפליקציה מודעות שרלוונטיות למוצרים ולשירותים הספציפיים שהם צפו בהם. הטבות נוספות:

הטמעה

הטמעה אופיינית של מסחר אלקטרוני מודדת כל אחת מהפעולות הבאות:

בבסיס הפעולות האלה נמצאים המוצרים והשירותים שאתם מוכרים. אתם יכולים לייצג מוצרים ושירותים כמערך של פריטים שאפשר להוסיף לאירועים של מסחר אלקטרוני. בנוסף לפרמטרים שנקבעו מראש, אפשר לכלול עד 27 פרמטרים מותאמים אישית במערך הפריטים.

כל פריט במערך items צריך להכיל רק את item_id או את item_name, אבל מומלץ לספק את שניהם. אפשר גם לכלול פרמטרים אופציונליים כמו price ו-quantity (אם לא מגדירים את quantity, ברירת המחדל היא 1):

const minimalItems = [
  {
    item_id: "SKU_12345",
    item_name: "Stan and Friends Tee",
    price: 10.01,
    quantity: 3
  }
];

הדוגמה המקיפה הבאה ממחישה את כל הפרמטרים של הפריטים שמוזכרים במדריך הזה. המערך items יכול לכלול עד 200 רכיבים.

items: [
    {
      item_id: "SKU_12345",
      item_name: "Stan and Friends Tee",
      affiliation: "Google Merchandise Store",
      coupon: "SUMMER_FUN",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 10.01,
      google_business_vertical: "retail",
      quantity: 3
    },
    {
      item_id: "SKU_12346",
      item_name: "Google Grey Women's Tee",
      affiliation: "Google Merchandise Store",
      coupon: "SUMMER_FUN",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 21.01,
      google_business_vertical: "retail",
      quantity: 2
    }
]

בחירת פריט מתוך רשימה

כשמוצגת למשתמש רשימה של תוצאות, שולחים אירוע view_item_list שכולל פרמטר מערך items שמכיל את הפריטים שמוצגים. פרטים על הפרמטרים שצריך לשלוח זמינים בחומר העזר בנושא אירועים.

gtag("event", "view_item_list", {
  currency: "USD",
  item_list_id: "related_products",
  item_list_name: "Related products",
  items: [
    {
      item_id: "SKU_12345",
      item_name: "Stan and Friends Tee",
      affiliation: "Google Merchandise Store",
      coupon: "SUMMER_FUN",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 10.01,
      google_business_vertical: "retail",
      quantity: 3
    }
  ]
});

אחרי שמשתמש בוחר פריט מהרשימה, שולחים את האירוע select_item עם הפריט שנבחר בפרמטר המערך items. פרטים על הפרמטרים שצריך לשלוח זמינים בחומר העזר בנושא אירועים.

gtag("event", "select_item", {
  currency: "USD",
  item_list_id: "related_products",
  item_list_name: "Related products",
  items: [
    {
      item_id: "SKU_12345",
      item_name: "Stan and Friends Tee",
      affiliation: "Google Merchandise Store",
      coupon: "SUMMER_FUN",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 10.01,
      google_business_vertical: "retail",
      quantity: 3
    }
  ]
});

הצגת נתוני הפריט

כדי למדוד כמה פעמים משתמשים צופים בפרטי פריט, שולחים אירוע view_item בכל פעם שמשתמש צופה במסך הפרטים של פריט. פרטים על הפרמטרים שצריך לשלוח זמינים בחומר העזר בנושא אירועים.

gtag("event", "view_item", {
  currency: "USD",
  value: 30.03,
  items: [
    {
      item_id: "SKU_12345",
      item_name: "Stan and Friends Tee",
      affiliation: "Google Merchandise Store",
      coupon: "SUMMER_FUN",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 10.01,
      google_business_vertical: "retail",
      quantity: 3
    }
  ]
});

הוספה או הסרה של פריט מעגלת הקניות

כדי למדוד הוספה של פריט לעגלת קניות, שולחים אירוע add_to_cart עם הפריטים הרלוונטיים במערך items. פרטים על הפרמטרים שצריך לשלוח זמינים בחומר העזר בנושא אירועים.

gtag("event", "add_to_cart", {
  currency: "USD",
  value: 30.03,
  items: [
    {
      item_id: "SKU_12345",
      item_name: "Stan and Friends Tee",
      affiliation: "Google Merchandise Store",
      coupon: "SUMMER_FUN",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 10.01,
      google_business_vertical: "retail",
      quantity: 3
    }
  ]
});

אפשר גם למדוד מתי פריט נוסף לרשימת משאלות על ידי שליחת אירוע add_to_wishlist עם הפריטים הרלוונטיים במערך items. פרטים על הפרמטרים שצריך לשלוח זמינים בחומר העזר בנושא אירועים.

gtag("event", "add_to_wishlist", {
  currency: "USD",
  value: 30.03,
  items: [
    {
      item_id: "SKU_12345",
      item_name: "Stan and Friends Tee",
      affiliation: "Google Merchandise Store",
      coupon: "SUMMER_FUN",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 10.01,
      google_business_vertical: "retail",
      quantity: 3
    }
  ],
});

כשמשתמש צופה בעגלת הקניות, שולחים את האירוע view_cart עם כל הפריטים שבעגלה. פרטים על הפרמטרים שצריך לשלוח זמינים בחומר העזר בנושא אירועים.

gtag("event", "view_cart", {
  currency: "USD",
  value: 30.03,
  items: [
    {
      item_id: "SKU_12345",
      item_name: "Stan and Friends Tee",
      affiliation: "Google Merchandise Store",
      coupon: "SUMMER_FUN",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 10.01,
      google_business_vertical: "retail",
      quantity: 3
    }
  ]
});

כדי למדוד מתי משתמש מסיר פריט מעגלת קניות, צריך לשלוח את האירוע remove_from_cart. פרטים על הפרמטרים שצריך לשלוח זמינים בחומר העזר בנושא אירועים.

gtag("event", "remove_from_cart", {
  currency: "USD",
  value: 30.03,
  items: [
    {
      item_id: "SKU_12345",
      item_name: "Stan and Friends Tee",
      affiliation: "Google Merchandise Store",
      coupon: "SUMMER_FUN",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 10.01,
      google_business_vertical: "retail",
      quantity: 3
    }
  ]
});

התחלת תהליך התשלום

כדי למדוד את השלב הראשון בתהליך התשלום, שולחים אירוע begin_checkout עם פריט אחד או יותר שמוגדרים בשדות הרלוונטיים. בשלב הזה אפשר גם להוסיף שובר לכל ההזמנה על ידי הוספה שלו לאירוע, או להחיל אותו על פריט מסוים על ידי הוספה שלו לרכיבים ספציפיים במערך items. פרטים על הפרמטרים שצריך לשלוח זמינים בחומר העזר בנושא אירועים.

gtag("event", "begin_checkout", {
  currency: "USD",
  value: 30.03,
  coupon: "SUMMER_FUN",
  items: [
    {
      item_id: "SKU_12345",
      item_name: "Stan and Friends Tee",
      affiliation: "Google Merchandise Store",
      coupon: "SUMMER_FUN",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 10.01,
      google_business_vertical: "retail",
      quantity: 3
    }
  ]
});

כשמשתמש עובר לשלב הבא בתהליך התשלום ומוסיף פרטי משלוח, שולחים אירוע add_shipping_info. משתמשים בפרמטר shipping_tier כדי לציין את אפשרות המשלוח של המשתמש, למשל "יבשתי", "אווירי" או "ביום המחרת". פרטים על הפרמטרים שצריך לשלוח זמינים בחומר העזר בנושא אירועים.

gtag("event", "add_shipping_info", {
  currency: "USD",
  value: 30.03,
  coupon: "SUMMER_FUN",
  shipping_tier: "Ground",
  items: [
    {
      item_id: "SKU_12345",
      item_name: "Stan and Friends Tee",
      affiliation: "Google Merchandise Store",
      coupon: "SUMMER_FUN",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 10.01,
      google_business_vertical: "retail",
      quantity: 3
    }
  ]
});

שולחים את האירוע add_payment_info כשמשתמש שולח את פרטי התשלום שלו. אם רלוונטי, צריך לכלול את payment_type באירוע הזה לאמצעי התשלום שנבחר. פרטים על הפרמטרים שצריך לשלוח זמינים בחומר העזר בנושא אירועים.

gtag("event", "add_payment_info", {
  currency: "USD",
  value: 30.03,
  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",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 10.01,
      google_business_vertical: "retail",
      quantity: 3
    }
  ]
});

ביצוע רכישה או הנפקת החזר כספי

כדי למדוד רכישה, שולחים אירוע purchase עם פריט אחד או יותר שמוגדרים בשדות הרלוונטיים. פרטים על הפרמטרים שצריך לשלוח זמינים בחומר העזר בנושא אירועים.

gtag("event", "purchase", {
    transaction_id: "T_12345",
    // Sum of (price * quantity) for all items.
    value: 72.05,
    tax: 3.60,
    shipping: 5.99,
    currency: "USD",
    coupon: "SUMMER_SALE",
    customer_type: "new",
    items: [
     {
      item_id: "SKU_12345",
      item_name: "Stan and Friends Tee",
      affiliation: "Google Merchandise Store",
      coupon: "SUMMER_FUN",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 10.01,
      google_business_vertical: "retail",
      quantity: 3
    },
    {
      item_id: "SKU_12346",
      item_name: "Google Grey Women's Tee",
      affiliation: "Google Merchandise Store",
      coupon: "SUMMER_FUN",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 21.01,
      promotion_id: "P_12345",
      promotion_name: "Summer Sale",
      google_business_vertical: "retail",
      quantity: 2
    }]
});

כדי למדוד החזרים כספיים, שולחים אירוע refund עם transaction_id רלוונטי שצוין ועם פריט אחד או יותר שהוגדרו באמצעות item_id ו-quantity. מומלץ לכלול פרטי פריטים באירוע refund כדי לראות מדדי החזרים כספיים ברמת הפריט ב-Analytics.

פרטים על הפרמטרים שצריך לשלוח זמינים בחומר העזר בנושא אירועים.

gtag("event", "refund", {
  currency: "USD",
  transaction_id: "T_12345", // Transaction ID. Required for purchases and refunds.
  value: 30.03,
  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",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 10.01,
      google_business_vertical: "retail",
      quantity: 3
    }
  ]
});

החלת מבצעים

מסחר אלקטרוני כולל תמיכה במדידת חשיפות וקליקים של קידומי מכירות פנימיים, כמו מודעות באנר שמוצגות כדי לקדם מבצע.

חשיפות של קידום מכירות נמדדות בדרך כלל בצפייה הראשונה במסך, על ידי שליחת האירוע view_promotion עם פרמטר items כדי לציין את הפריט המקודם. פרטים על הפרמטרים שצריך לשלוח זמינים בחומר העזר בנושא אירועים.

gtag("event", "view_promotion", {
  currency: "USD",
  creative_name: "Summer Banner",
  creative_slot: "featured_app_1",
  promotion_id: "P_12345",
  promotion_name: "Summer Sale",
  items: [
    {
      item_id: "SKU_12345",
      item_name: "Stan and Friends Tee",
      affiliation: "Google Merchandise Store",
      coupon: "SUMMER_FUN",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 10.01,
      google_business_vertical: "retail",
      quantity: 3
    }
  ]
});

כדי לציין שמשתמש לחץ על מבצע, שולחים אירוע select_promotion עם הפריט הזה כפרמטר פריט. פרטים על הפרמטרים לשליחה זמינים בחומר העזר בנושא אירועים.

gtag("event", "select_promotion", {
  currency: "USD",
  creative_name: "Summer Banner",
  creative_slot: "featured_app_1",
  promotion_id: "P_12345",
  promotion_name: "Summer Sale",
  items: [
    {
      item_id: "SKU_12345",
      item_name: "Stan and Friends Tee",
      affiliation: "Google Merchandise Store",
      coupon: "SUMMER_FUN",
      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: "ChIJIQBpAG2ahYAR_6128GcTUEo",
      price: 10.01,
      google_business_vertical: "retail",
      quantity: 3
    }
  ],
});