Ecommerce  |  Google Analytics 4 Properties  |  Google Builders

This information outlines find out how to add ecommerce occasions to your ecommerce web site to take advantage of out of the ecommerce experiences in Google Analytics.

Implementing these occasions will let you quantify your hottest merchandise and see how promotions and product placement impacts gross sales. For instance, the next report exhibits common buy income per person and purchases by merchandise identify:

For a listing of all occasions and related parameters, see the gtag.js Occasion reference.

Product impressions

To measure how merchandise have been considered, and the way typically customers work together with them, use the next occasions:

By sending all of those occasions, your Google Analytics experiences will paint a extra correct image of how typically merchandise are seen. By creating funnels with these occasions mixed with promotion knowledge, you may also measure the effectiveness of your campaigns.

view_item_list

Ship a view_item_list occasion when a person is introduced with a listing of merchandise.

Instance

A person visits the house web page and sees a listing referred to as “Associated Merchandise.”

gtag(‘occasion’, ‘view_item_list’, { objects: [{ item_id: ‘SKU_12345’, item_name: ‘jeggings’, coupon: ‘SUMMER_FUN’, discount: 2.22, index: 5, item_list_name: ‘Related Products’, item_list_id: ‘related_products’, affiliation: ‘Google Store’, item_brand: ‘Gucci’, item_category: ‘pants’, item_variant: ‘black’, price: 9.99, currency: ‘USD’, quantity: 1 }], item_list_name: ‘Associated merchandise’, item_list_id: ‘related_products’ });

See view_item_list for documentation on every parameter.

Word: item_list_name or item_list_id should have steady values. For a given record these values ought to all the time be the identical. If they modify repeatedly, your experiences will likely be much less helpful.

view_item

Ship a view_item occasion when a person views a selected merchandise.

Instance

A person follows a hyperlink that goes on to a product web page. Take care to not confuse this occasion with select_item.

gtag(‘occasion’, ‘view_item’, { foreign money: ‘USD’, objects: [{ item_id: ‘SKU_12345’, item_name: ‘jeggings’, coupon: ‘SUMMER_FUN’, discount: 2.22, affiliation: ‘Google Store’, item_brand: ‘Gucci’, item_category: ‘pants’, item_variant: ‘black’, price: 9.99, currency: ‘USD’, quantity: 1 }], worth: 9.99 });

See view_item for documentation on every parameter.

select_item

Ship a select_item occasion when a person immediately interacts with a selected merchandise.

Instance

After a product search, a person clicks on a product hyperlink. Take care to not confuse this occasion with view_item.

gtag(‘occasion’, ‘select_item’, { objects: [{ item_id: ‘SKU_12345’, item_name: ‘jeggings’, coupon: ‘SUMMER_FUN’, discount: 2.22, index: 5, item_list_name: ‘Related Products’, item_list_id: ‘related_products’, affiliation: ‘Google Store’, item_brand: ‘Gucci’, item_category: ‘pants’, item_variant: ‘black’, price: 9.99, currency: ‘USD’, quantity: 1 }], item_list_name: ‘Associated merchandise’, item_list_id: ‘related_products’ });

See select_item for documentation on every parameter.

To measure how promotions have been considered, and the way typically customers work together with them, use the next occasions:

By sending these occasions, your Google Analytics experiences will paint a extra correct image of how typically promotions are seen. By creating funnels with these occasions mixed with product knowledge, you may also measure the effectiveness of your campaigns.

view_promotion

Ship a view_promotion occasion when a person views a selected promotion.

Instance

A person scrolls by a banner showcasing a sale.

gtag(‘occasion’, ‘view_promotion’, { objects: [{ item_id: ‘SKU_12345’, item_name: ‘jeggings’, coupon: ‘SUMMER_FUN’, discount: 2.22, promotion_id: ‘P_12345’, promotion_name: ‘Summer Sale’, creative_slot: ‘featured_app_1’, location_id: ‘L_12345’, affiliation: ‘Google Store’, item_brand: ‘Gucci’, item_category: ‘pants’, item_variant: ‘Black’, price: 9.99, currency: ‘USD’, quantity: 1 }], location_id: ‘L_12345’ });

See view_promotion for documentation on every parameter.

select_promotion

Ship a select_promotion occasion when a person immediately interacts with a selected promotion.

Instance

A person clicks on a banner showcasing a sale.

gtag(‘occasion’, ‘select_promotion’, { objects: [{ item_id: ‘SKU_12345’, item_name: ‘jeggings’, coupon: ‘SUMMER_FUN’, discount: 2.22, promotion_id: ‘P_12345’, promotion_name: ‘Summer Sale’, creative_name: ‘Summer Banner’, creative_slot: ‘featured_app_1’, location_id: ‘L_12345’, affiliation: ‘Google Store’, item_brand: ‘Gucci’, item_category: ‘pants’, item_variant: ‘Black’, price: 9.99, currency: ‘USD’, quantity: 1 }], location_id: ‘L_12345’ });

See select_promotion for documentation on every parameter.

Pre-purchase interactions

To measure person conduct earlier than checkout, use the next occasions:

By sending these occasions, your Google Analytics experiences will paint a extra correct image of merchandise efficiency.

add_to_cart

Ship an add_to_cart occasion when a person provides an merchandise to their cart.

Instance

A person provides an merchandise to their cart.

gtag(‘occasion’, ‘add_to_cart’, { foreign money: ‘USD’, objects: [{ item_id: ‘SKU_12345’, item_name: ‘jeggings’, coupon: ‘SUMMER_FUN’, discount: 2.22, affiliation: ‘Google Store’, item_brand: ‘Gucci’, item_category: ‘pants’, item_variant: ‘black’, price: 9.99, currency: ‘USD’, quantity: 1 }], worth: 7.77 });

See add_to_cart for documentation on every parameter.

remove_from_cart

Ship a remove_from_cart occasion when a person removes an merchandise from their cart.

Instance

A person removes an merchandise from their cart.

gtag(‘occasion’, ‘remove_from_cart’, { foreign money: ‘USD’, objects: [{ item_id: ‘SKU_12345’, item_name: ‘jeggings’, coupon: ‘SUMMER_FUN’, discount: 2.22, affiliation: ‘Google Store’, item_brand: ‘Gucci’, item_category: ‘pants’, item_variant: ‘black’, price: 9.99, currency: ‘USD’, quantity: 1 }], worth: 7.77 });

See remove_from_cart for documentation on every parameter.

Purchases, checkouts, and refunds

To measure product purchases, use the next occasions:

By sending these occasions, your Google Analytics experiences will paint a extra correct image of merchandise efficiency.

begin_checkout

Ship a begin_checkout occasion when a person begins the checkout course of.

Instance

A person begins the checkout course of.

gtag(‘occasion’, ‘begin_checkout’, { coupon: ‘SUMMER_FUN’, foreign money: ‘USD’, objects: [{ item_id: ‘SKU_12345’, item_name: ‘jeggings’, coupon: ‘SUMMER_FUN’, discount: 2.22, affiliation: ‘Google Store’, item_brand: ‘Gucci’, item_category: ‘pants’, item_variant: ‘black’, price: 9.99, currency: ‘USD’, quantity: 1 }], worth: 7.77 });

See begin_checkout for documentation on every parameter.

add_payment_info

Ship an add_payment_info occasion when a person provides their fee data in the course of the checkout course of.

Instance

A person provides their fee data in the course of the checkout course of.

gtag(‘occasion’, ‘add_payment_info’, { coupon: ‘SUMMER_FUN’, foreign money: ‘USD’, objects: [{ item_id: ‘SKU_12345’, item_name: ‘jeggings’, coupon: ‘SUMMER_FUN’, discount: 2.22, affiliation: ‘Google Store’, item_brand: ‘Gucci’, item_category: ‘pants’, item_variant: ‘black’, price: 9.99, currency: ‘USD’, quantity: 1 }], payment_type: ‘Credit score Card’, worth: 9.99 });

See add_payment_info for documentation on every parameter.

add_shipping_info

Ship an add_shipping_info occasion when a person provides their delivery info in the course of the checkout course of.

Instance

A person provides their delivery info in the course of the checkout course of.

gtag(‘occasion’, ‘add_shipping_info’, { coupon: ‘SUMMER_FUN’, foreign money: ‘USD’, objects: [{ item_id: ‘SKU_12345’, item_name: ‘jeggings’, coupon: ‘SUMMER_FUN’, discount: 2.22, affiliation: ‘Google Store’, item_brand: ‘Gucci’, item_category: ‘pants’, item_variant: ‘Black’, price: 9.99, currency: ‘USD’, quantity: 1 }], shipping_tier: ‘Floor’, worth: 7.77 });

See add_shipping_info for documentation on every parameter.

buy

Ship a purchase order occasion when a person completes the acquisition course of.

Instance

A person completes the acquisition course of.

gtag(‘occasion’, ‘buy’, { affiliation: ‘Google Retailer’, coupon: ‘SUMMER_FUN’, foreign money: ‘USD’, objects: [{ item_id: ‘SKU_12345’, item_name: ‘jeggings’, coupon: ‘SUMMER_FUN’, discount: 2.22, affiliation: ‘Google Store’, item_brand: ‘Gucci’, item_category: ‘pants’, item_variant: ‘black’, price: 9.99, currency: ‘USD’, quantity: 1 }, { item_id: ‘SKU_12346’, item_name: ‘jeggings’, coupon: ‘SUMMER_FUN’, discount: 2.22, affiliation: ‘Google Store’, item_brand: ‘Gucci’, item_category: ‘pants’, item_variant: ‘gray’, price: 9.99, currency: ‘USD’, quantity: 1 }], transaction_id: ‘T_12345’, delivery: 3.33, worth: 21.09, tax: 2.22 })

See buy for documentation on every parameter.

refund

Ship a refund occasion when a person requests a refund. The are two supported forms of refunds:

  1. Partial refunds – Use this format when solely a number of the bought objects are refunded.
  2. Full refunds – Use this format when all the bought objects are refunded.

Partial refund instance

A person requests a partial refund.

gtag(‘occasion’, ‘refund’, { affiliation: ‘Google Retailer’, coupon: ‘SUMMER_FUN’, foreign money: ‘USD’, objects: [{ item_id: ‘SKU_12345’, item_name: ‘jeggings’, coupon: ‘SUMMER_FUN’, discount: 2.22, affiliation: ‘Google Store’, item_brand: ‘Gucci’, item_category: ‘pants’, item_variant: ‘black’, price: 9.99, currency: ‘USD’, quantity: 1 }], transaction_id: ‘T_12345’, delivery: 3.33, worth: 12.21, tax: 1.11 }); Word: You may also use this format for a full refund, however if you happen to miss any merchandise from the unique transaction, your measurement will likely be inaccurate.

See refund for documentation on every parameter.

Full refund instance

A person requests a full refund.

gtag(‘occasion’, ‘refund’, { affiliation: ‘Google Retailer’, coupon: ‘SUMMER_FUN’, foreign money: ‘USD’, transaction_id: ‘T_12345’, delivery: 3.33, worth: 12.21, tax: 1.11 });

See refund for documentation on every parameter.

Source

Leave a Reply

Your email address will not be published. Required fields are marked *