Reference documentation and code samples for the Recommendations AI V1beta1 API class Google::Cloud::RecommendationEngine::V1beta1::UserEvent.
UserEvent captures all metadata information recommendation engine needs to know about how end users interact with customers' website.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#event_detail
def event_detail() -> ::Google::Cloud::RecommendationEngine::V1beta1::EventDetail- (::Google::Cloud::RecommendationEngine::V1beta1::EventDetail) — Optional. User event detailed information common across different recommendation types.
#event_detail=
def event_detail=(value) -> ::Google::Cloud::RecommendationEngine::V1beta1::EventDetail- value (::Google::Cloud::RecommendationEngine::V1beta1::EventDetail) — Optional. User event detailed information common across different recommendation types.
- (::Google::Cloud::RecommendationEngine::V1beta1::EventDetail) — Optional. User event detailed information common across different recommendation types.
#event_source
def event_source() -> ::Google::Cloud::RecommendationEngine::V1beta1::UserEvent::EventSource-
(::Google::Cloud::RecommendationEngine::V1beta1::UserEvent::EventSource) — Optional. This field should not be set when using JavaScript pixel
or the Recommendations AI Tag. Defaults to
EVENT_SOURCE_UNSPECIFIED.
#event_source=
def event_source=(value) -> ::Google::Cloud::RecommendationEngine::V1beta1::UserEvent::EventSource-
value (::Google::Cloud::RecommendationEngine::V1beta1::UserEvent::EventSource) — Optional. This field should not be set when using JavaScript pixel
or the Recommendations AI Tag. Defaults to
EVENT_SOURCE_UNSPECIFIED.
-
(::Google::Cloud::RecommendationEngine::V1beta1::UserEvent::EventSource) — Optional. This field should not be set when using JavaScript pixel
or the Recommendations AI Tag. Defaults to
EVENT_SOURCE_UNSPECIFIED.
#event_time
def event_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Optional. Only required for ImportUserEvents method. Timestamp of user event created.
#event_time=
def event_time=(value) -> ::Google::Protobuf::Timestamp- value (::Google::Protobuf::Timestamp) — Optional. Only required for ImportUserEvents method. Timestamp of user event created.
- (::Google::Protobuf::Timestamp) — Optional. Only required for ImportUserEvents method. Timestamp of user event created.
#event_type
def event_type() -> ::String-
(::String) —
Required. User event type. Allowed values are:
add-to-cartProducts being added to cart.add-to-listItems being added to a list (shopping list, favorites etc).category-page-viewSpecial pages such as sale or promotion pages viewed.checkout-startUser starting a checkout process.detail-page-viewProducts detail page viewed.home-page-viewHomepage viewed.page-visitGeneric page visits not included in the event types above.purchase-completeUser finishing a purchase.refundPurchased items being refunded or returned.remove-from-cartProducts being removed from cart.remove-from-listItems being removed from a list.searchProduct search.shopping-cart-page-viewUser viewing a shopping cart.impressionList of items displayed. Used by Google Tag Manager.
#event_type=
def event_type=(value) -> ::String-
value (::String) —
Required. User event type. Allowed values are:
add-to-cartProducts being added to cart.add-to-listItems being added to a list (shopping list, favorites etc).category-page-viewSpecial pages such as sale or promotion pages viewed.checkout-startUser starting a checkout process.detail-page-viewProducts detail page viewed.home-page-viewHomepage viewed.page-visitGeneric page visits not included in the event types above.purchase-completeUser finishing a purchase.refundPurchased items being refunded or returned.remove-from-cartProducts being removed from cart.remove-from-listItems being removed from a list.searchProduct search.shopping-cart-page-viewUser viewing a shopping cart.impressionList of items displayed. Used by Google Tag Manager.
-
(::String) —
Required. User event type. Allowed values are:
add-to-cartProducts being added to cart.add-to-listItems being added to a list (shopping list, favorites etc).category-page-viewSpecial pages such as sale or promotion pages viewed.checkout-startUser starting a checkout process.detail-page-viewProducts detail page viewed.home-page-viewHomepage viewed.page-visitGeneric page visits not included in the event types above.purchase-completeUser finishing a purchase.refundPurchased items being refunded or returned.remove-from-cartProducts being removed from cart.remove-from-listItems being removed from a list.searchProduct search.shopping-cart-page-viewUser viewing a shopping cart.impressionList of items displayed. Used by Google Tag Manager.
#product_event_detail
def product_event_detail() -> ::Google::Cloud::RecommendationEngine::V1beta1::ProductEventDetail-
(::Google::Cloud::RecommendationEngine::V1beta1::ProductEventDetail) —
Optional. Retail product specific user event metadata.
This field is required for the following event types:
add-to-cartadd-to-listcategory-page-viewcheckout-startdetail-page-viewpurchase-completerefundremove-from-cartremove-from-listsearch
This field is optional for the following event types:
page-visitshopping-cart-page-view- note that 'product_event_detail' should be set for this unless the shopping cart is empty.
This field is not allowed for the following event types:
home-page-view
#product_event_detail=
def product_event_detail=(value) -> ::Google::Cloud::RecommendationEngine::V1beta1::ProductEventDetail-
value (::Google::Cloud::RecommendationEngine::V1beta1::ProductEventDetail) —
Optional. Retail product specific user event metadata.
This field is required for the following event types:
add-to-cartadd-to-listcategory-page-viewcheckout-startdetail-page-viewpurchase-completerefundremove-from-cartremove-from-listsearch
This field is optional for the following event types:
page-visitshopping-cart-page-view- note that 'product_event_detail' should be set for this unless the shopping cart is empty.
This field is not allowed for the following event types:
home-page-view
-
(::Google::Cloud::RecommendationEngine::V1beta1::ProductEventDetail) —
Optional. Retail product specific user event metadata.
This field is required for the following event types:
add-to-cartadd-to-listcategory-page-viewcheckout-startdetail-page-viewpurchase-completerefundremove-from-cartremove-from-listsearch
This field is optional for the following event types:
page-visitshopping-cart-page-view- note that 'product_event_detail' should be set for this unless the shopping cart is empty.
This field is not allowed for the following event types:
home-page-view
#user_info
def user_info() -> ::Google::Cloud::RecommendationEngine::V1beta1::UserInfo- (::Google::Cloud::RecommendationEngine::V1beta1::UserInfo) — Required. User information.
#user_info=
def user_info=(value) -> ::Google::Cloud::RecommendationEngine::V1beta1::UserInfo- value (::Google::Cloud::RecommendationEngine::V1beta1::UserInfo) — Required. User information.
- (::Google::Cloud::RecommendationEngine::V1beta1::UserInfo) — Required. User information.