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

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

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

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

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

המלצות

הטמעה

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

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

הדוגמה הבאה ממחישה איך יוצרים את האוסף של items שאליו מתייחסים במדריך הזה. המערך 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,
      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,
      quantity: 2
    }
]

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

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

gtag("event", "view_item_list", {
  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,
      quantity: 3
    }
  ]
});

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

gtag("event", "select_item", {
  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,
      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,
      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,
      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,
      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,
      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,
      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,
      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,
      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,
      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",
    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,
      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",
      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,
      quantity: 3
    }
  ]
});

החלת מבצעים

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

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

gtag("event", "view_promotion", {
  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,
      quantity: 3
    }
  ]
});

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

gtag("event", "select_promotion", {
  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,
      quantity: 3
    }
  ],
});