Use data feeds to calculate common metrics
Describes how to calculate common metrics using data feeds.
exclude_hit: Analysis Workspace only includes data whereexclude_hit = 0.customer_perspective: Analysis Workspace only includes data wherecustomer_perspective = 0, unless you use a virtual report suite that includes mobile background hits.hit_source: Data from data sources might contain differences between raw data and Analysis Workspace. If you want to exclude hits from data sources, exclude all rows wherehit_source = 5,7,8,9.
Page views
- Count the number of rows where a value is in
post_pagenameorpost_page_url.
Occurrences
- Count the total number of rows.
Visits
- Concatenate
post_visid_high,post_visid_low,visit_num, andvisit_start_time_gmt. - Count the unique number of values.
visit_num values for different visits. While optional, use visit_start_time_gmt when counting visits to make sure that these visits are counted.Visitors
All methods Adobe uses to identify unique visitors (custom visitor ID, ECID, etc.) are all ultimately calculated as a value in post_visid_high and post_visid_low. The concatenation of these two columns can be used as the standard of identifying unique visitors regardless of how they were identified as a unique visitor. If you would like to understand which method Adobe used to identify a unique visitor, use the column post_visid_type.
- Concatenate
post_visid_highandpost_visid_low. - Count the unique number of values.
Custom, download, or exit links
-
Count the number of rows where:
post_page_event = 100for custom linkspost_page_event = 101for download linkspost_page_event = 102for exit links
Custom events
All metrics are counted in the post_event_list column as comma-delimited integers. Use event.tsv to match numeric values with the desired event. For example, post_event_list = 1,200 indicates that the hit contained a purchase event and custom event 1.
- Count the number of times the event lookup value appears in
post_event_list.
Time spent
Hits must first be grouped by visit, then ordered according to the hit number within the visit.
- Concatenate
post_visid_high,post_visid_low,visit_num, andvisit_start_time_gmt. - Sort by this concatenated value, then apply a secondary sort by
visit_page_num. - If a hit is not the last one in a visit, subtract the
post_cust_hit_timevalue from the subsequent hit’spost_cust_hit_timevalue. - This number is the amount of time spent (in seconds) for the hit. Filters can be applied to focus on dimension items or events.
Orders, units, and revenue
If a hit’s currency value doesn’t match a report suite’s currency, it is converted using that day’s conversion rate. The column post_product_list uses the converted currency value, so all hits use the same currency in this column.
-
Exclude all rows where
duplicate_purchase = 1. -
Include only rows where
event_listcontains the purchase event. -
Parse the
post_product_listcolumn to extract all price data. Thepost_product_listcolumn is formatted the same as thes.productsvariable. -
Calculate the desired metric:
- Count the number of rows to calculate Orders
- Sum the number of
quantityin the product string to calculate Units - Sum the number of
pricein the product string to calculate revenue