ई-कॉमर्स का आकलन करें

अपने उपयोगकर्ताओं के शॉपिंग व्यवहार के बारे में जानकारी इकट्ठा करने के लिए, ई-कॉमर्स इवेंट सेट अप किए जा सकते हैं. इवेंट की मदद से, अपने सबसे लोकप्रिय प्रॉडक्ट की संख्या का पता लगाया जा सकता है. साथ ही, रेवेन्यू पर प्रमोशन और प्रॉडक्ट प्लेसमेंट का असर देखा जा सकता है.

इस दस्तावेज़ में, हर ई-कॉमर्स इवेंट के बारे में बताया गया है. साथ ही, यह भी बताया गया है कि इवेंट को कब सेट अप करना चाहिए. ई-कॉमर्स इवेंट सेट अप करने के तरीके के बारे में चरण-दर-चरण उदाहरण देखने के लिए, खरीदारी इवेंट सेट अप करना लेख पढ़ें.

शुरू करने से पहले

पक्का करें कि आपने अपनी वेबसाइट में Google टैग जोड़ा हो और आपके पास Analytics और वेबसाइट के सोर्स कोड का ऐक्सेस हो.

सुझाव

  • डीबग मोड चालू करें, ताकि आपको रीयलटाइम में इवेंट दिखें और समस्याओं को हल किया जा सके.
  • ई-कॉमर्स इवेंट के साथ कस्टम पैरामीटर भेजते समय, कस्टम डाइमेंशन और मेट्रिक की सीमाएं देखें.
  • रेवेन्यू मेट्रिक का सही हिसाब लगाने के लिए, value (रेवेन्यू) का डेटा भेजते समय currency सेट करें.
  • हर उस ई-कॉमर्स पैरामीटर को सेट करें जिसके लिए आपके पास डेटा है. भले ही, पैरामीटर ज़रूरी न हो.
  • अपनी वेबसाइट को टैग करने का तरीका जानने के लिए, ई-कॉमर्स वेबसाइट के सैंपल का इस्तेमाल करें.
  • यह पक्का करने के लिए कि रिपोर्ट में डेटा सही तरीके से दिखे, इस दस्तावेज़ में दिए गए फ़ॉर्मैट का पालन करें. अगर आपको ई-कॉमर्स कलेक्शन के बाहर आइटम कलेक्शन सेट करना है, तो value (रेवेन्यू) डेटा भेजते समय, इवेंट लेवल पर currency पैरामीटर सेट करें.

लागू करना

ई-कॉमर्स को लागू करने के दौरान, इनमें से किसी भी कार्रवाई को मेज़र किया जाता है:

इन कार्रवाइयों में, आपके बेचे जाने वाले प्रॉडक्ट और सेवाएं मुख्य भूमिका निभाती हैं. प्रॉडक्ट और सेवाओं को आइटम के कलेक्शन के तौर पर दिखाया जा सकता है. इन्हें ई-कॉमर्स इवेंट में जोड़ा जा सकता है. पहले से दिए गए पैरामीटर के साथ-साथ, आइटम ऐरे में 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
    }
  ]
});

items कलेक्शन में मौजूद आइटम के साथ add_to_wishlist इवेंट भेजकर, यह भी मेज़र किया जा सकता है कि किसी आइटम को विशलिस्ट में कब जोड़ा गया. भेजे जाने वाले पैरामीटर के बारे में जानकारी के लिए, इवेंट रेफ़रंस देखें.

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 पैरामीटर का इस्तेमाल करें. जैसे, "Ground", "Air" या "Next-day". भेजे जाने वाले पैरामीटर के बारे में जानकारी के लिए, इवेंट रेफ़रंस देखें.

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",
    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,
      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
    }]
});

transaction_id एट्रिब्यूट की वैल्यू और item_id और quantity एट्रिब्यूट की वैल्यू के साथ एक या उससे ज़्यादा आइटम तय करके, refund इवेंट भेजकर रिफ़ंड को मेज़र करें. हमारा सुझाव है कि Analytics में आइटम लेवल पर रिफ़ंड की मेट्रिक देखने के लिए, अपने refund इवेंट में आइटम की जानकारी शामिल करें.

भेजे जाने वाले पैरामीटर के बारे में जानकारी के लिए, इवेंट रेफ़रंस देखें.

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
    }
  ]
});

प्रमोशन लागू करना

ई-कॉमर्स में, इंटरनल प्रमोशन के इंप्रेशन और क्लिक मेज़र करने की सुविधा शामिल है. जैसे, सेल का प्रमोशन करने के लिए दिखाए जाने वाले बैनर.

प्रमोशन के इंप्रेशन आम तौर पर, शुरुआती स्क्रीन व्यू से मेज़र किए जाते हैं. इसके लिए, 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
    }
  ],
});