Customer Journey Table

customer_journey_table

The Customer Journey table tracks each step a customer takes on their path through your website, from viewing pages to making purchases. Querying this table helps identify patterns and key touchpoints in the customer journey, enabling targeted improvements to enhance the shopping experience and conversion rates.

📘

Note

Event Date (event_date) is a required field for queries on this table.

Use Event Type (type) to categorize and analyze specific actions in the customer journey, such as page views, add-to-cart events, and completed purchases.

Dimensions

Dimensions are immutable properties that can be used for grouping data.

TitleIDTypeDescription
Event Dateevent_datedateThe date the customer journey event occurred. Based on the time zone of the shop at the moment of the event.
Event Dayevent_date.daydateThe day on which the event occurred. Derived from event_date.
Event Weekevent_date.weekdateThe Sunday of the week during which the event occurred. Derived from event_date.
Event Monthevent_date.monthdateThe month during which the event occurred. Derived from event_date.
Event Quarterevent_date.quarterdateThe first month of the quarter during which the event occurred. Derived from event_date.
Event Yearevent_date.yeardateThe year during which the event occurred. Derived from event_date.
Ad IDad_iddateThe ID of the ad associated with the customer journey event.

Example value: 643742158069
Ad Image URLad_image_urlstringThe thumbnail image URL of the ad associated with the customer journey event.

Example value: https://www.example.com/ad-image.jpg
Ad Namead_namestringThe name of the ad associated with the customer journey event.

Example values: Kids Ad 1, Read Our Latest Blog 03/12/2023, 8 best fall looks
Ad Set Nameadset_namestringThe name of the ad set associated with the customer journey event.

Example values: Broad Audience, Bracelets, Wellness
Campaign Namecampaign_namestringThe name of the campaign associated with the customer journey event.

Example values: Catalog Retargeting, US Generic Search, Breakfast of Champions Campaign
Customer CountrycountrystringThe country of the customer.

Example values: Canada, United States, Hong Kong
Customer IDcustomer_idstringThe unique customer ID associated with the customer journey event. Assigned by the main sales platform.

Example value: 5209503793328
Discount Codediscount_codestringThe discount code for the order associated with the customer journey event. Assigned by the seller in the main sales platform.

Example values: WELCOME10, Replacement for defective item, 807QRWMNK2
Customer EmailemailstringThe customer’s email address.

Example value: [email protected]
Event Timestampevent_timetimestampThe exact timestamp when the customer journey event occurred. Formatted according to the ISO 8601 international standard.

Example value: 2024-03-16T00:13:03
Fulfillment Statusfulfillment_statusstringThe order fulfillment status for the order associated with the customer journey event.

Example values: fulfilled, partial, restocked
Is New Customeris_new_customerbooleanTrue if the order associated with the customer journey event is the customer's first.

Possible values: true, false

Note that Triple Whale classifies all customers as either new or returning, while the main sales platform may leave some unclassified, potentially leading to discrepancies.
Items Purchaseditems_purchasedrecord repeatedInformation about items purchased by the customer in the order associated with the customer journey event.
Priceitems_purchased.pricestringThe price of the purchased item in the order associated with the customer journey event.

Example values: 40.59, 10.99, 24.50
Product Titleitems_purchased.product_titlestringThe title of the product purchased in the order associated with the customer journey event.

Example values: $20 USD Gift Card, Unisex Hoodie
Variant Titleitems_purchased.variant_titlestringThe title of the product variant purchased in the order associated with the customer journey event.

Example values: Forest Green, M, iPhone 14 Pro
Stock Keeping Unit (SKU)items_purchased.skustringThe stock keeping unit (SKU) of the product or variant purchased in the order associated with the customer journey event.

Example values: SIL-RING-4445, NVDPROTECTION03
Quantityitems_purchased.quantitystringThe quantity of items purchased in the order associated with the customer journey event.

Example values: 1, 5, 200
Lead Click Timestamplead_click_tstimestampThe time of the ad click that led to the customer journey event. Formatted according to the ISO 8601 international standard.

Example value: 2024-10-26 20:03:48
Order IDorder_idstringThe unique order ID associated with the customer journey event. Assigned by the main sales platform.

Example value: 4930225799243
Order Nameorder_namestringThe name of the order associated with the customer journey event. Assigned by the main sales platform.

Example values: #2188464, Ex-2163819-9
Page Typepage_typestringThe type of page the customer interacted with during the customer journey event.

Example values: product, collection, cart
Page View Event IDpage_view_event_idstringA unique ID that links to the parent page view associated with the customer journey event. This allows tracking of custom events as child actions within the context of the page they occurred on.

Example value: 0m3uyt4g11owByF1cQ
Customer PhonephonestringThe customer's phone number.

Example value: 18005550199
Product IDproduct_idstringThe unique ID of the product in the order associated with the customer journey event.

Example value: 7760518986312
Product Image URLproduct_imagestringThe image URL of the product in the order associated with the customer journey event.

Example value: https://cdn.shopify.com/s/files/1/prod1
Product Titleproduct_titlestringThe title of the product in the order associated with the customer journey event.

Example values: $20 USD Gift Card, Unisex Hoodie
URL Query Parametersquery_paramsstringThe query parameters contained in the URL associated with the customer journey event.

Example values: {"tw_adid":"83906898178855", "tw_campaign":"103306890", "tw_source":"bing"," utm_campaign":"Bing Shopping", "utm_content":"HERO SKU Summer Book Run", "utm_medium":"cpc", "utm_source":"bing", "utm_term":"1342506080190763", "variant":"44042133111001"}
Survey Questionsquestionsrecord repeatedSurvey questions asked during the customer journey.
Survey Questionquestions.questionstringThe question asked during the customer journey event.

Example value: Which of the following led you to purchase today?
Survey Answerquestions.answerstringThe answer provided during the customer journey event.

Example values: Exchange for a prior purchase, Youtube, QVC, Just decided to try them
ReferrerreferrerstringThe referrer platform of the ad associated with the customer journey event.

Example values: shop.example.com, tiktok, google
Session IDsession_idstringThe unique session ID associated with the customer journey event. Assigned by Triple Pixel.

Example value: cltlok4y634IRw62AZ_1710700966152
SourcesourcestringThe source of the customer journey event.

Example values: snapchat-ads, klaviyo, google-ads, Direct
Tagstagsrepeated stringTags for the order associated with the customer journey event. Assigned by the seller in the main sales platform.

Example values: Upsell, Order Credits, discount_eligible
Triple Pixel IDtriple_idstringThe unique ID assigned by Triple Pixel event to track visitors across sessions, for the visitor associated with the customer journey event.

Example value: cltlok4y634IRw62AZ
Customer Journey Event TypetypestringThe customer journey event type.

Example values: viewed_page, added_to_cart, placed_order, post_purchase_survey_submitted
URLurlstringThe URL the customer interacted with during the customer journey event.

Example values: myshop.com/cart, myshop.com/products/my_product_07

Measures

Measures are numeric fields that can be aggregated and/or combined to calculate new metrics.

TitleIDTypeDescription
DiscountdiscountnumericThe total discount applied to the order associated with the customer journey event.

Example values: 41.99, 7.49, 71042.30
Order Revenueorder_revenuenumericThe revenue from the order associated with the customer journey event.

Example values: 25, 253850.59
Page Viewspage_view_numbernumericThe number of pages viewed during the customer journey event.

Example values: 1, 5, 12
QuantityquantitynumericThe number of products added to the cart (for added_to_cart events) or the number of orders (for placed_order events).

Example values: 1, 3, 15
Total Pricetotal_pricenumericThe total price of the order associated with the customer journey event.

Example value: 247.22

Derived

Derived fields are metrics that are pre-calculated using multiple measures or advanced formulas.

TitleIDTypeDescription
Customer Journey Eventsevent_countformulaThe total number of customer journey events within the selected timeframe.

Example values: 13, 452, 225,897