# DMP DataHub ###### tags: `Datahub`, `DMP`, `KGC`, `Footer` ## Change logs | Date | Content | Author | | ---------- |:----------------------------:|:-----------------------------------:| | 2021/02/26 | Added event : CheckOutItem | Jack Wu [ jack.wu@adgeek.com.tw] | | 2021/02/25 | 全事件修改 | Jack Wu [ jack.wu@adgeek.com.tw] | | 2021/02/18 | Using 'id' instead of '\_id' | Nicky Goh [ nicky.goh@cyntelli.com] | | 2021/02/09 | Initial document | Nicky Goh [ nicky.goh@cyntelli.com] | ## Data Type Reference https://hackmd.io/dU2Wp2TcTiKYxD0eJ4XB3g?view ## Constant Fields Always at first 3 positions | DataHub Field Name | Data Type | Notes | | ------------------ | --------- |-------| | uid | String || | ts | DateTime || | url | String || ## Events *Parameters that extracted from query String data* [TOC] ### CompleteRegistration | Query String parameter | Field Name | Data Type | Remark | |:---------------------- |:------------------- |:--------- |:-------| | memberId | member_id | String | | | from | from | String | | | lineId | line_id | String | | | ref | ref | String | | ### MemberLogin | Query String parameter | Field Name | Data Type | Remark | |:---------------------- |:------------------- |:--------- |:-------| | memberId | member_id | String | | | from | from | String | | | lineId | line_id | String | | | ref | ref | String | | ### PageView | Query String parameter | Field Name | Data Type | Remark | |:---------------------- |:------------------- |:--------- |:-------| | memberId | member_id | String | | | lineId | line_id | String | | | pt | pt | String | | | ref | ref | String | | ### ScrollDepth | Query String parameter | Field Name | Data Type | Remark | |:---------------------- |:------------------- |:--------- |:-------| | scroll | scroll | Integer | | | memberId | member_id | String | | | lineId | line_id | String | | | pt | page_title | String | | ### Search | Query String parameter | Field Name | Data Type | Remark | |:---------------------- |:------------------- |:--------- |:-------| | memberId | member_id | String | | | lineId | line_id | String | | | keyword | keyword | String | | | ref | ref | String | | | utm_medium | utm_medium | String | | | utm_content | utm_content | String | | | utm_campaign | utm_campaign | String | | | fbclid | fbclid | String | | ### ViewContent | Query String parameter | Field Name | Data Type | Remark | |:---------------------- |:------------------- |:--------- |:-------| | id | id | String | | | name | name | String | | | price | price | Integer | | | qty | quantity | Integer | | | brand | brand | String | | | cat | category | String | | | variants | variants | String | | | ps1 | product_spec_01 | String | | | ps2 | product_spec_02 | String | | | ps3 | product_spec_03 | String | | | memberId | member_id | String | | | lineId | line_id | String | | | currency | currency | String | | ### AddToCart | Query String parameter | Field Name | Data Type | Remark | |:---------------------- |:------------------- |:--------- |:-------| | id | id | String | | | name | name | String | | | price | price | Integer | | | qty | quantity | Integer | | | brand | brand | String | | | cat | category | String | | | ps1 | product_spec_01 | String | | | ps2 | product_spec_02 | String | | | ps3 | product_spec_03 | String | | | memberId | member_id | String | | | lineId | line_id | String | | | res | res | String | | | currency | currency | String | | ### AddToFavorites/AddToWishList | Query String parameter | Field Name | Data Type | Remark | |:---------------------- |:------------------- |:--------- |:-------| | id | id | String | | | name | name | String | | | price | price | Integer | | | qty | quantity | Integer | | | brand | brand | String | | | cat | category | String | | | ps1 | product_spec_01 | String | | | ps2 | product_spec_02 | String | | | ps3 | product_spec_03 | String | | | memberId | member_id | String | | | lineId | line_id | String | | | currency | currency | String | | ### RemoveFromCart | Query String parameter | Field Name | Data Type | Remark | |:---------------------- |:------------------- |:--------- |:-------| | id | id | String | | | name | name | String | | | price | price | Integer | | | qty | quantity | Integer | | | brand | brand | String | | | cat | category | String | | | ps1 | product_spec_01 | String | | | ps2 | product_spec_02 | String | | | ps3 | product_spec_03 | String | | | memberId | member_id | String | | | lineId | line_id | String | | | currency | currency | String | | ### CheckOutItem | Query String parameter | Field Name | Data Type | Remark | |:---------------------- |:------------------- |:--------- |:-------| | checkOutStep | check_out_step | String | | | shippingType | shipping_type | String | | | payment | payment | String | | | id | id | String | | | name | name | String | | | price | price | Integer | | | qty | quantity | Integer | | | brand | brand | String | | | cat | category | String | | | ps1 | product_spec_01 | String | | | ps2 | product_spec_02 | String | | | ps3 | product_spec_03 | String | | | memberId | member_id | String | | | lineId | line_id | String | | | currency | currency | String | | ### Purchase | Query String parameter | Field Name | Data Type | Remark | |:---------------------- |:------------------- |:--------- |:-------| | memberId | member_id | String | | | transactionId | transaction_id | Integer | | | amount | transaction_total | Integer | | | discountTotal | discount_total | Integer | | | coupon | coupon | String | | | points | points | Integer | | | tax | tax | Integer | | | shippingFee | shipping_fee | Integer | | | shipping | shipping_type | String | | | payment | payment | String | | | status | status | String | | | lineId | line_id | String | | ### PurchaseItem | Query String parameter | Field Name | Data Type | Remark | |:---------------------- |:------------------- |:--------- |:-------| | id | id | String | | | name | name | String | | | price | price | Integer | | | qty | quantity | Integer | | | brand | brand | String | | | cat | category | String | | | transactionId | transaction_id | Integer | | | memberId | member_id | String | | | lineId | line_id | String | | | ps1 | product_spec_01 | String | | | ps2 | product_spec_02 | String | | | ps3 | product_spec_03 | String | | | currency | currency | String | |