Event
Last updated
Last updated
How to record user events using the DFINERY SDK. must be done first.
Before linking events, you need to register events in . To register events, go to the console's Additional Settings > Data Linking > Event Management > Event List page and click the Create Event button to create standard and custom events.
Events are not logged if an unregistered event, an event property, an event property of the wrong type, or a registered event property is missing.
logEvent
Log user events using methods. provide constants.
Each parameter means:
eventName
: Event Name
properties
: Event properties
Required values vary for each standard event. Please check and use.
Standard events and standard event properties, product properties are as follows. They can also be used as event names.
Standard event names are provided as predefined static constants:
DFEvent.LOGIN
df_login
Log in
DFEvent.LOGOUT
df_logout
Log out
DFEvent.SIGN_UP
df_sign_up
Join the membership
DFEvent.PURCHASE
df_purchase
Purchase
DFEvent.VIEW_HOME
df_view_home
View Home Screen
DFEvent.VIEW_PRODUCT_DETAILS
df_view_product_details
View product details
DFEvent.ADD_TO_CART
df_add_to_cart
Put in a shopping cart
DFEvent.ADD_TO_WISHLIST
df_add_to_wishlist
Add to Wishlist
DFEvent.REFUND
df_refund
Cancel order
DFEvent.VIEW_SEARCH_RESULT
df_view_search_result
Search for products
DFEvent.SHARE_PRODUCT
df_share_product
Share this product
DFEvent.VIEW_LIST
df_view_list
View product list
DFEvent.VIEW_CART
df_view_cart
View Cart
DFEvent.ADD_PAYMENT_INFO
df_add_payment_info
Enter purchase information
DFEvent.REMOVE_CART
df_remove_cart
Delete Cart
For property names of standard events, event property names are provided as predefined static constants as follows:
DFEventProperty.ITEMS
df_items
Goods
DFEventProperty.TOTAL_REFUND_AMOUNT
df_total_refund_amount
Total refund (cancellation) amount
DFEventProperty.ORDER_ID
df_order_id
Order Number (ID)
DFEventProperty.DELIVERY_CHARGE
df_delivery_charge
Shipping Fee
DFEventProperty.PAYMENT_METHOD
df_payment_method
Payment Method
DFEventProperty.TOTAL_PURCHASE_AMOUNT
df_total_purchase_amount
Order Total
DFEventProperty.SHARING_CHANNEL
df_sharing_channel
Product sharing channel
DFEventProperty.SIGN_CHANNEL
df_sign_channel
Product Discount Price
DFEventProperty.KEYWORD
df_keyword
Search Keywords
Information about predefined property values for products loaded as an array in DFEventProperty.ITEMS. ITEM_ID, ITEM_NAME, ITEM_PRICE, ITEM_QUANTITY, ITEM_DISCOUNT are required values and must be included.
DFEventProperty.ITEM_ID
df_item_id
String
Product Number (ID)
✅
DFEventProperty.ITEM_NAME
df_item_name
String
Product Name
✅
DFEventProperty.ITEM_PRICE
df_price
Number
Product unit price
✅
DFEventProperty.ITEM_QUANTITY
df_quantity
Number
Product Quantity
✅
DFEventProperty.ITEM_DISCOUNT
df_discount
Number
Product Discount Price
✅
DFEventProperty.ITEM_CATEGORY1
df_category1
String
Product Category 1
DFEventProperty.ITEM_CATEGORY2
df_category2
String
Product Category 2
DFEventProperty.ITEM_CATEGORY3
df_category3
String
Product Category 3
DFEventProperty.ITEM_CATEGORY4
df_category4
String
Product Category 4
DFEventProperty.ITEM_CATEGORY5
df_category5
String
Product Category 5
This is an event that indicates the user's action of logging in. If you set the user's Identity before calling the login event, you can measure it as the Login event for that user. The logEvent function must be called after executing the setIdentity function within the async function.
Dfinery.setIdentity
If you execute Login without waiting for the API, it may not be measured as a Login event for a user who has set Identity, so it must be called after Identity has been set using await or promise.then function.
This event indicates that a user is logging out.
This event indicates the action taken by a user to sign up as a member.
Standard event properties
DFEventProperty.SIGN_CHANNEL
String
Membership Channel
✅
An event that represents a user's action of purchasing a product or service.
DFEventProperty.ITEMS
Array
✅
DFEventProperty.ORDER_ID
String
Order Number (ID)
✅
DFEventProperty.PAYMENT_METHOD
String
Payment Method
✅
DFEventProperty.TOTAL_PURCHASE_AMOUNT
NUMBER
Order Total
✅
DFEventProperty.DELIVERY_CHARGE
NUMBER
Shipping Fee
✅
DFEventProperty.DISCOUNT
NUMBER
Product discount price
✅
This event indicates that the user is viewing the app's home screen.
This event represents an action taken by a user to view detailed information about a specific product.
This event represents the action of a user adding a product to the shopping cart.
DFEventProperty.ITEMS
Array
✅
This event indicates that a user has added a product to their interest list.
DFEventProperty.ITEMS
Array
✅
This event represents the action of canceling and refunding an order purchased by a user.
DFEventProperty.ITEMS
Array
✅
DFEventProperty.TOTAL_REFUND_AMOUNT
NUMBER
Total refund amount
✅
This event represents the action of a user searching for a product and checking the results.
DFEventProperty.ITEMS
Array
✅
DFEventProperty.KEYWORD
String
Search Keywords
✅
This event represents a user's action of sharing a product.
DFEventProperty.ITEMS
Array
✅
DFEventProperty.SHARING_CHANNEL
String
Product sharing channel
✅
This event indicates the user's action of viewing a product list.
DFEventProperty.ITEMS
Array
✅
This event indicates the user's action of viewing the shopping cart.
DFEventProperty.ITEMS
Array
✅
This event represents the action of a user entering purchase information.
This event indicates that the user has removed a product from their shopping cart.
DFEventProperty.ITEMS
Array
✅
This is an event that reflects the user's input of an arbitrary event name and properties. You can also use standard events by adding custom properties in the DFINERY Console.
If there is no attribute
If there is an attribute
DFINERY SDK automatically collects the following information:
This value may not be collected depending on the browser environment and type.
Browser
Browser version
OS
Set language
Set Time Zone Offset
Url
Referer
utm parameter