diff --git a/src/components/ga4/EventBuilder/event.ts b/src/components/ga4/EventBuilder/event.ts index 75bf9fe4..0e52e575 100644 --- a/src/components/ga4/EventBuilder/event.ts +++ b/src/components/ga4/EventBuilder/event.ts @@ -57,19 +57,19 @@ const add_payment_info = eventFor( stringParam("coupon", "SUMMER_FUN"), stringParam("currency", "USD"), stringParam("payment_type", "Credit Card"), - numberParam("value", 7.77), + numberParam("value", 30.03), ], [ stringParam("item_id", "SKU_12345"), stringParam("item_name", "jeggings"), - numberParam("quantity", 1), + numberParam("quantity", 3), stringParam("affiliation", "Google Store"), stringParam("coupon", "SUMMER_FUN"), numberParam("discount", 2.22), stringParam("item_brand", "Gucci"), stringParam("item_category", "pants"), stringParam("item_variant", "Black"), - numberParam("price", 9.99), + numberParam("price", 10.01), stringParam("currency", "USD"), ] ) @@ -81,19 +81,19 @@ const add_shipping_info = eventFor( stringParam("coupon", "SUMMER_FUN"), stringParam("currency", "USD"), stringParam("shipping_tier", "Ground"), - numberParam("value", 7.77), + numberParam("value", 30.03), ], [ stringParam("item_id", "SKU_12345"), stringParam("item_name", "jeggings"), - numberParam("quantity", 1), + numberParam("quantity", 3), stringParam("affiliation", "Google Store"), stringParam("coupon", "SUMMER_FUN"), numberParam("discount", 2.22), stringParam("item_brand", "Gucci"), stringParam("item_category", "pants"), stringParam("item_variant", "Black"), - numberParam("price", 9.99), + numberParam("price", 10.01), stringParam("currency", "USD"), ] ) @@ -101,18 +101,18 @@ const add_shipping_info = eventFor( const add_to_cart = eventFor( EventType.AddToCart, [Category.RetailEcommerce], - [stringParam("currency", "USD"), numberParam("value", 7.77)], + [stringParam("currency", "USD"), numberParam("value", 30.03)], [ stringParam("item_id", "SKU_12345"), stringParam("item_name", "jeggings"), - numberParam("quantity", 1), + numberParam("quantity", 3), stringParam("affiliation", "Google Store"), stringParam("coupon", "SUMMER_FUN"), numberParam("discount", 2.22), stringParam("item_brand", "Gucci"), stringParam("item_category", "pants"), stringParam("item_variant", "Black"), - numberParam("price", 9.99), + numberParam("price", 10.01), stringParam("currency", "USD"), ] ) @@ -120,18 +120,18 @@ const add_to_cart = eventFor( const add_to_wishlist = eventFor( EventType.AddToWishlist, [Category.RetailEcommerce], - [stringParam("currency", "USD"), numberParam("value", 7.77)], + [stringParam("currency", "USD"), numberParam("value", 30.03)], [ stringParam("item_id", "SKU_12345"), stringParam("item_name", "jeggings"), - numberParam("quantity", 1), + numberParam("quantity", 3), stringParam("affiliation", "Google Store"), stringParam("coupon", "SUMMER_FUN"), numberParam("discount", 2.22), stringParam("item_brand", "Gucci"), stringParam("item_category", "pants"), stringParam("item_variant", "Black"), - numberParam("price", 9.99), + numberParam("price", 10.01), stringParam("currency", "USD"), ] ) @@ -142,19 +142,19 @@ const begin_checkout = eventFor( [ stringParam("coupon", "SUMMER_FUN"), stringParam("currency", "USD"), - numberParam("value", 7.77), + numberParam("value", 30.03), ], [ stringParam("item_id", "SKU_12345"), stringParam("item_name", "jeggings"), - numberParam("quantity", 1), + numberParam("quantity", 3), stringParam("affiliation", "Google Store"), stringParam("coupon", "SUMMER_FUN"), numberParam("discount", 2.22), stringParam("item_brand", "Gucci"), stringParam("item_category", "pants"), stringParam("item_variant", "Black"), - numberParam("price", 9.99), + numberParam("price", 10.01), stringParam("currency", "USD"), ] ) @@ -209,12 +209,12 @@ const purchase = eventFor( stringParam("transaction_id", "T_12345"), numberParam("shipping", 3.33), numberParam("tax", 1.11), - numberParam("value", 12.21), + numberParam("value", 30.03), ], [ stringParam("item_id", "SKU_12345"), stringParam("item_name", "jeggings"), - numberParam("quantity", 1), + numberParam("quantity", 3), stringParam("affiliation", "Google Store"), stringParam("coupon", "SUMMER_FUN"), numberParam("discount", 2.22), @@ -222,7 +222,7 @@ const purchase = eventFor( stringParam("item_category", "pants"), stringParam("item_variant", "Black"), numberParam("tax", 1.11), - numberParam("price", 9.99), + numberParam("price", 10.01), stringParam("currency", "USD"), ] ) @@ -237,12 +237,12 @@ const refund = eventFor( stringParam("transaction_id", "T_12345"), numberParam("shipping", 3.33), numberParam("tax", 1.11), - numberParam("value", 12.21), + numberParam("value", 30.03), ], [ stringParam("item_id", "SKU_12345"), stringParam("item_name", "jeggings"), - numberParam("quantity", 1), + numberParam("quantity", 3), stringParam("affiliation", "Google Store"), stringParam("coupon", "SUMMER_FUN"), numberParam("discount", 2.22), @@ -250,7 +250,7 @@ const refund = eventFor( stringParam("item_category", "pants"), stringParam("item_variant", "Black"), numberParam("tax", 1.11), - numberParam("price", 9.99), + numberParam("price", 10.01), stringParam("currency", "USD"), ] ) @@ -258,18 +258,18 @@ const refund = eventFor( const remove_from_cart = eventFor( EventType.RemoveFromCart, [Category.RetailEcommerce], - [stringParam("currency", "USD"), numberParam("value", 7.77)], + [stringParam("currency", "USD"), numberParam("value", 30.03)], [ stringParam("item_id", "SKU_12345"), stringParam("item_name", "jeggings"), - numberParam("quantity", 1), + numberParam("quantity", 3), stringParam("affiliation", "Google Store"), stringParam("coupon", "SUMMER_FUN"), numberParam("discount", 2.22), stringParam("item_brand", "Gucci"), stringParam("item_category", "pants"), stringParam("item_variant", "Black"), - numberParam("price", 9.99), + numberParam("price", 10.01), stringParam("currency", "USD"), ] ) @@ -296,7 +296,7 @@ const select_item = eventFor( [ stringParam("item_id", "SKU_12345"), stringParam("item_name", "jeggings"), - numberParam("quantity", 1), + numberParam("quantity", 3), stringParam("affiliation", "Google Store"), stringParam("coupon", "SUMMER_FUN"), numberParam("discount", 2.22), @@ -306,7 +306,7 @@ const select_item = eventFor( stringParam("item_list_name", "Related products"), stringParam("item_list_id", "related_products"), stringParam("item_variant", "Black"), - numberParam("price", 9.99), + numberParam("price", 10.01), stringParam("currency", "USD"), ] ) @@ -318,7 +318,7 @@ const select_promotion = eventFor( [ stringParam("item_id", "SKU_12345"), stringParam("item_name", "jeggings"), - numberParam("quantity", 1), + numberParam("quantity", 3), stringParam("promotion_id", "P_12345"), stringParam("promotion_name", "Summer Sale"), stringParam("affiliation", "Google Store"), @@ -330,7 +330,7 @@ const select_promotion = eventFor( stringParam("item_category", "pants"), stringParam("item_variant", "Black"), stringParam("location_id", "L_12345"), - numberParam("price", 9.99), + numberParam("price", 10.01), stringParam("currency", "USD"), ] ) @@ -378,18 +378,18 @@ const unlock_achievement = eventFor( const view_cart = eventFor( EventType.ViewCart, [Category.RetailEcommerce], - [stringParam("currency", "USD"), numberParam("value", 7.77)], + [stringParam("currency", "USD"), numberParam("value", 30.03)], [ stringParam("item_id", "SKU_12345"), stringParam("item_name", "jeggings"), - numberParam("quantity", 1), + numberParam("quantity", 3), stringParam("affiliation", "Google Store"), stringParam("coupon", "SUMMER_FUN"), numberParam("discount", 2.22), stringParam("item_brand", "Gucci"), stringParam("item_category", "pants"), stringParam("item_variant", "Black"), - numberParam("price", 9.99), + numberParam("price", 10.01), stringParam("currency", "USD"), ] ) @@ -397,18 +397,18 @@ const view_cart = eventFor( const view_item = eventFor( EventType.ViewItem, [Category.RetailEcommerce], - [stringParam("currency", "USD"), numberParam("value", 7.77)], + [stringParam("currency", "USD"), numberParam("value", 30.03)], [ stringParam("item_id", "SKU_12345"), stringParam("item_name", "jeggings"), - numberParam("quantity", 1), + numberParam("quantity", 3), stringParam("affiliation", "Google Store"), stringParam("coupon", "SUMMER_FUN"), numberParam("discount", 2.22), stringParam("item_brand", "Gucci"), stringParam("item_category", "pants"), stringParam("item_variant", "Black"), - numberParam("price", 9.99), + numberParam("price", 10.01), stringParam("currency", "USD"), ] ) @@ -423,7 +423,7 @@ const view_item_list = eventFor( [ stringParam("item_id", "SKU_12345"), stringParam("item_name", "jeggings"), - numberParam("quantity", 1), + numberParam("quantity", 3), stringParam("affiliation", "Google Store"), stringParam("coupon", "SUMMER_FUN"), numberParam("discount", 2.22), @@ -433,7 +433,7 @@ const view_item_list = eventFor( stringParam("item_list_name", "Related products"), stringParam("item_list_id", "related_products"), stringParam("item_variant", "Black"), - numberParam("price", 9.99), + numberParam("price", 10.01), stringParam("currency", "USD"), ] ) @@ -445,7 +445,7 @@ const view_promotion = eventFor( [ stringParam("item_id", "SKU_12345"), stringParam("item_name", "jeggings"), - numberParam("quantity", 1), + numberParam("quantity", 3), stringParam("promotion_id", "P_12345"), stringParam("promotion_name", "Summer Sale"), stringParam("affiliation", "Google Store"), @@ -457,7 +457,7 @@ const view_promotion = eventFor( stringParam("item_category", "pants"), stringParam("item_variant", "Black"), stringParam("location_id", "L_12345"), - numberParam("price", 9.99), + numberParam("price", 10.01), stringParam("currency", "USD"), ] ) @@ -469,7 +469,7 @@ const view_search_results = eventFor( [ stringParam("item_id", "SKU_12345"), stringParam("item_name", "jeggings"), - numberParam("quantity", 1), + numberParam("quantity", 3), stringParam("affiliation", "Google Store"), stringParam("coupon", "SUMMER_FUN"), numberParam("discount", 2.22), @@ -479,7 +479,7 @@ const view_search_results = eventFor( stringParam("item_list_name", "Related products"), stringParam("item_list_id", "related_products"), stringParam("item_variant", "Black"), - numberParam("price", 9.99), + numberParam("price", 10.01), stringParam("currency", "USD"), ] )