Event Structure For Oci: Measure. Analyze. Optimize
Event Structure For Oci: Measure. Analyze. Optimize
Website
Prepared For
Contents
Enhanced E-Commerce Events ........................................................................ 2
Measure Promotions .......................................................................................... 2
Promotion Impressions............................................................................................. 2
Promotion Clicks ....................................................................................................... 2
Measure eCommerce Events ............................................................................ 3
Measure Product Impressions.................................................................................. 3
Measure Product Clicks ............................................................................................ 4
Measuring Internal Search ........................................................................................ 4
Measuring Product Details View .............................................................................. 5
Measuring Additions to Cart .................................................................................... 5
Measuring Removing from Cart................................................................................ 7
Add To Wishlist ......................................................................................................... 7
Measuring Cart View ................................................................................................. 8
Measuring Checkout .......................................................................................... 8
Begin checkout (Step #1 – Begin Checkout) ........................................................... 9
Checkout (Step #2 - Shipping Address) ................................................................. 10
Checkout (Step #3 - Payment) ................................................................................ 11
Measure Transactions/Purchases ......................................................................... 12
Custom Events ..................................................................................................13
Measure Coupon Redemption Attempts ................................................................ 13
Measure Global Variables: ...................................................................................... 13
Measure Login Attempts ......................................................................................... 13
Measuring Signup Attempts ................................................................................... 13
Promotion Clicks
Measuring Promotion Clicks
allows tracking clicks on
event: "select_promotion", internal site promotions such
user_id: '1234567',
as banners displayed on the
ecommerce: {
items: [ site itself advertising.
{ (On Banner Click)
creative_name:
"https://nahdionline.com/media/SnaptecBanner/banner_image1667461331.jpg",
creative_slot: "hp_featured_2",
location_id: "HP Featured",
promotion_id: "112554",
promotion_name: "Bioderma offers",
}
]
}
event: "view_item_list",
user_id: '1234567',
ecommerce: { Measure Product Impression
item_list_id: "body_butters", // The unique id of list if exist when usrs view a product on
item_list_name: "Body Butters", // The list i.e."Selected Products" the listing page.
items: [
{ Send Array of all items shown
item_id: "2606",
item_name: 'Fruit Works Strawberry & Kiwi Body Butter 235g", and replace highlighted values
index: 0, with the actual values of the
coupon: "50% discount", Product.
currency: "SAR",
discount: 325.00, (On product list show up)
item_brand: "Grace Cole",
item_category: "Skin Care ",
item_category2: "Facial Care",
item_category3: "",
item_category4: "", The same event applies for all
item_category5: "", PLPs and custom listing like
item_list_id: "body_butters", special, newly arrived, related
item_list_name: "Body Butters",
item_variant: "black",
products, top selling. etc.
fulfilment_source: "Hupstore",
availability: "in-stock",
price: 324.00,
},
{
item_id: "258",
item_name: "Sanctuary Spa Luxurious Body Butter 300ml",
index: 1,
coupon: "50% discount",
currency: "SAR",
discount: 450.00,
item_brand: "Sanctuary",
item_category: "Skin Care",
item_category2: "Facial Care",
item_category3: "Women Care",
item_category4: "",
item_category5: "",
item_list_id: "body_butters",
item_list_name: "Body Butters",
item_variant: "black",
fulfilment_source: "UAE DC",
availability: "in-stock",
price: 449.00,
}]
}
'event': 'search',
user_id: '1234567',
search_term: 'Panadol', //the search query
'result': '36', //The Count of Products returned to the user.
Add To Wishlist
event: "add_to_wishlist",
user_id: '1234567',
ecommerce: {
currency: "SAR",
value: 324.00, // The monetary value of the event.
items: [
{
item_id: "2606",
item_name: 'Fruit Works Strawberry & Kiwi Body Butter 235g",
coupon: "50% discount",
currency: "SAR",
discount: 325.00,
item_brand: "Grace Cole",
item_category: "Skin Care ",
item_category2: "Facial Care",
item_category3: "",
item_category4: "",
item_category5: "",
price: 324.00,
}]
}
Measuring Checkout
DEVELOPER INSTRUCTION
Begin checkout (Step #1 – Begin Checkout)
event: "begin_checkout", DEVELOPER INSTRUCTION
user_id: '1234567', Measure the first step in a
ecommerce: { checkout process by logging a
currency: "SAR",
value: 1222.00, // The Total value of the Cart BEGIN CHECKOUT event
coupon: "KSA92", //Order coupon or website Level Coupon if used with all items in the cart
items: [ defined with the relevant fields:
{
item_id: "2606",
Step #1: Begin Checkout
item_name: 'Fruit Works Strawberry & Kiwi Body Butter 235g",
coupon: "50% discount",
currency: "SAR",
(On "Proceed to Checkout"
discount: 325.00, button click)
item_brand: "Grace Cole",
item_category: "Skin Care ",
item_category2: "Facial Care",
item_category3: "",
item_category4: "",
item_category5: "",
item_list_id: "body_butters",
item_list_name: "Body Butters",
item_variant: "black",
fulfilment_source: "Hupstore",
availability: "in-stock",
price: 324.00,
quantity: 1
},
{
item_id: "258",
item_name: "Sanctuary Spa Luxurious Body Butter 300ml",
coupon: "50% discount",
currency: "SAR",
discount: 450.00,
item_brand: "Sanctuary",
item_category: "Skin Care",
item_category2: "Facial Care",
item_category3: "Women Care",
item_category4: "",
item_category5: "",
item_list_id: "body_butters",
item_list_name: "Body Butters",
item_variant: "black",
fulfilment_source: "UAE DC",
availability: "in-stock",
price: 449.00,
quantity: 2
}]
}
10
11
Measure Transactions/Purchases
event: "purchase",
user_id: '1234567', DEVELOPER INSTRUCTION
ecommerce: {
transaction_id: "506012",
value: 1222.00, // The Total value of the order
tax: 183.00, // The VAT value of the order Measure purchases by logging
shipping: 0.00, //Shipping Cost
currency: "SAR",
a Purchase event with one or
coupon: "KSA92", //Order coupon or website Level Coupon if used more items (i.e. loop for each
items: [ product in the cart) defined
{
with the relevant field.
item_id: "2606",
item_name: 'Fruit Works Strawberry & Kiwi Body Butter 235g",
On “Order success Screen”
coupon: "50% discount",
currency: "SAR",
discount: 325.00,
item_brand: "Grace Cole",
item_category: "Skin Care ",
item_category2: "Facial Care",
item_category3: "",
item_category4: "",
item_category5: "",
item_list_id: "body_butters",
item_list_name: "Body Butters",
item_variant: "black",
fulfilment_source: "Hupstore",
availability: "in-stock",
price: 324.00,
quantity: 1
},
{
item_id: "258",
item_name: "Sanctuary Spa Luxurious Body Butter 300ml",
coupon: "50% discount",
currency: "SAR",
discount: 450.00,
item_brand: "Sanctuary",
item_category: "Skin Care",
item_category2: "Facial Care",
item_category3: "Women Care",
item_category4: "",
item_category5: "",
item_list_id: "body_butters",
item_list_name: "Body Butters",
item_variant: "black",
fulfilment_source: "UAE DC",
availability: "in-stock",
price: 449.00,
quantity: 2
}]
}
12
Custom Events
event: 'add_coupon',
user_id: '1234567',
Track this stage where
coupon_code: 'KSA2023', // The coupon code. visitors redeem a coupon to
result: 'Coupon Success' //If coupon Failed, include the reason determine the coupons
'discount_value': 12.00 which are most and least
effective in driving sales.
Measure Global Variables: (On apply coupon attempt)
event: 'global_variables',
event_source: 'Website', (On all page load)
language: 'EN', // The website interface language
user_id: '1234567', Measure different important
email: '[email protected]', parameters by logging the
phone: '+966595753370', Global Variables event with
gender: 'Male', the relevant fields.
city: 'Jeddah',
district: 'Al-Salama',
Trigger Login event when user
13
14