-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_20201209`
(
  event_date STRING,
  event_timestamp INT64,
  event_name STRING,
  event_params ARRAY<STRUCT<key STRING, value STRUCT<string_value STRING, int_value INT64, float_value FLOAT64, double_value FLOAT64>>>,
  event_previous_timestamp INT64,
  event_value_in_usd FLOAT64,
  event_bundle_sequence_id INT64,
  event_server_timestamp_offset INT64,
  user_id STRING,
  user_pseudo_id STRING,
  privacy_info STRUCT<analytics_storage INT64, ads_storage INT64, uses_transient_token STRING>,
  user_properties ARRAY<STRUCT<key INT64, value STRUCT<string_value INT64, int_value INT64, float_value INT64, double_value INT64, set_timestamp_micros INT64>>>,
  user_first_touch_timestamp INT64,
  user_ltv STRUCT<revenue FLOAT64, currency STRING>,
  device STRUCT<category STRING, mobile_brand_name STRING, mobile_model_name STRING, mobile_marketing_name STRING, mobile_os_hardware_model INT64, operating_system STRING, operating_system_version STRING, vendor_id INT64, advertising_id INT64, language STRING, is_limited_ad_tracking STRING, time_zone_offset_seconds INT64, web_info STRUCT<browser STRING, browser_version STRING>>,
  geo STRUCT<continent STRING, sub_continent STRING, country STRING, region STRING, city STRING, metro STRING>,
  app_info STRUCT<id STRING, version STRING, install_store STRING, firebase_app_id STRING, install_source STRING>,
  traffic_source STRUCT<medium STRING, name STRING, source STRING>,
  stream_id INT64,
  platform STRING,
  event_dimensions STRUCT<hostname STRING>,
  ecommerce STRUCT<total_item_quantity INT64, purchase_revenue_in_usd FLOAT64, purchase_revenue FLOAT64, refund_value_in_usd FLOAT64, refund_value FLOAT64, shipping_value_in_usd FLOAT64, shipping_value FLOAT64, tax_value_in_usd FLOAT64, tax_value FLOAT64, unique_items INT64, transaction_id STRING>,
  items ARRAY<STRUCT<item_id STRING, item_name STRING, item_brand STRING, item_variant STRING, item_category STRING, item_category2 STRING, item_category3 STRING, item_category4 STRING, item_category5 STRING, price_in_usd FLOAT64, price FLOAT64, quantity INT64, item_revenue_in_usd FLOAT64, item_revenue FLOAT64, item_refund_in_usd FLOAT64, item_refund FLOAT64, coupon STRING, affiliation STRING, location_id STRING, item_list_id STRING, item_list_name STRING, item_list_index STRING, promotion_id STRING, promotion_name STRING, creative_name STRING, creative_slot STRING>>
);

INSERT INTO `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_20201209` (event_date, event_timestamp, event_name, event_params, event_previous_timestamp, event_value_in_usd, event_bundle_sequence_id, event_server_timestamp_offset, user_id, user_pseudo_id, privacy_info, user_properties, user_first_touch_timestamp, user_ltv, device, geo, app_info, traffic_source, stream_id, platform, event_dimensions, ecommerce, items) VALUES ('20201209', 1607484545230081, 'scroll', '[{''key'': ''source'', ''value'': {''string_value'': ''google'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''all_data'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''gclid'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''clean_event'', ''value'': {''string_value'': ''gtm.js'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''page_title'', ''value'': {''string_value'': ''Apparel | Google Merchandise Store'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''debug_mode'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''percent_scrolled'', ''value'': {''string_value'': None, ''int_value'': 90, ''float_value'': None, ''double_value'': None}}
 {''key'': ''medium'', ''value'': {''string_value'': ''organic'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''campaign'', ''value'': {''string_value'': ''(organic)'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''ga_session_number'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''session_engaged'', ''value'': {''string_value'': ''1'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''page_location'', ''value'': {''string_value'': ''https://shop.googlemerchandisestore.com/Google+Redesign/Apparel'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''page_referrer'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''gclsrc'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''ga_session_id'', ''value'': {''string_value'': None, ''int_value'': 5399370187, ''float_value'': None, ''double_value'': None}}
 {''key'': ''term'', ''value'': {''string_value'': ''<obfuscated>'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''engaged_session_event'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''engagement_time_msec'', ''value'': {''string_value'': None, ''int_value'': 207262, ''float_value'': None, ''double_value'': None}}]', NULL, nan, -8006032258, NULL, NULL, '1001519.8438987528', {'analytics_storage': None, 'ads_storage': None, 'uses_transient_token': 'No'}, '[]', 1607484300839189, {'revenue': 0.0, 'currency': 'USD'}, {'category': 'mobile', 'mobile_brand_name': 'Apple', 'mobile_model_name': 'iPhone', 'mobile_marketing_name': '<Other>', 'mobile_os_hardware_model': None, 'operating_system': 'iOS', 'operating_system_version': 'iOS 14.3', 'vendor_id': None, 'advertising_id': None, 'language': 'en-us', 'is_limited_ad_tracking': 'No', 'time_zone_offset_seconds': None, 'web_info': {'browser': 'Safari', 'browser_version': '14.0'}}, {'continent': 'Europe', 'sub_continent': 'Northern Europe', 'country': 'Denmark', 'region': 'Region of Southern Denmark', 'city': '(not set)', 'metro': '(not set)'}, NULL, {'medium': '<Other>', 'name': '<Other>', 'source': '<Other>'}, 2100450278, 'WEB', NULL, {'total_item_quantity': None, 'purchase_revenue_in_usd': None, 'purchase_revenue': None, 'refund_value_in_usd': None, 'refund_value': None, 'shipping_value_in_usd': None, 'shipping_value': None, 'tax_value_in_usd': None, 'tax_value': None, 'unique_items': None, 'transaction_id': None}, '[]'), ('20201209', 1607490496371821, 'user_engagement', '[{''key'': ''gclid'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''page_title'', ''value'': {''string_value'': ''Apparel | Google Merchandise Store'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''page_location'', ''value'': {''string_value'': ''https://shop.googlemerchandisestore.com/Google+Redesign/Apparel'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''engagement_time_msec'', ''value'': {''string_value'': None, ''int_value'': 4399, ''float_value'': None, ''double_value'': None}}
 {''key'': ''clean_event'', ''value'': {''string_value'': ''gtm.js'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''source'', ''value'': {''string_value'': ''google'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''campaign'', ''value'': {''string_value'': ''(organic)'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''term'', ''value'': {''string_value'': ''<obfuscated>'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''engaged_session_event'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''gclsrc'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''ga_session_number'', ''value'': {''string_value'': None, ''int_value'': 2, ''float_value'': None, ''double_value'': None}}
 {''key'': ''page_referrer'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''session_engaged'', ''value'': {''string_value'': ''0'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''ga_session_id'', ''value'': {''string_value'': None, ''int_value'': 4377464061, ''float_value'': None, ''double_value'': None}}
 {''key'': ''medium'', ''value'': {''string_value'': ''organic'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''debug_mode'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''all_data'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}]', NULL, nan, 1661971270, NULL, NULL, '1001519.8438987528', {'analytics_storage': None, 'ads_storage': None, 'uses_transient_token': 'No'}, '[]', 1607484300839189, {'revenue': 0.0, 'currency': 'USD'}, {'category': 'mobile', 'mobile_brand_name': 'Apple', 'mobile_model_name': 'iPhone', 'mobile_marketing_name': '<Other>', 'mobile_os_hardware_model': None, 'operating_system': 'iOS', 'operating_system_version': 'iOS 14.3', 'vendor_id': None, 'advertising_id': None, 'language': 'en-us', 'is_limited_ad_tracking': 'No', 'time_zone_offset_seconds': None, 'web_info': {'browser': 'Safari', 'browser_version': '14.0'}}, {'continent': 'Europe', 'sub_continent': 'Northern Europe', 'country': 'Denmark', 'region': 'Region of Southern Denmark', 'city': '(not set)', 'metro': '(not set)'}, NULL, {'medium': '<Other>', 'name': '<Other>', 'source': '<Other>'}, 2100450278, 'WEB', NULL, {'total_item_quantity': None, 'purchase_revenue_in_usd': None, 'purchase_revenue': None, 'refund_value_in_usd': None, 'refund_value': None, 'shipping_value_in_usd': None, 'shipping_value': None, 'tax_value_in_usd': None, 'tax_value': None, 'unique_items': None, 'transaction_id': None}, '[]'), ('20201209', 1607490441754488, 'page_view', '[{''key'': ''page_referrer'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''entrances'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''session_engaged'', ''value'': {''string_value'': ''0'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''debug_mode'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''campaign'', ''value'': {''string_value'': ''(organic)'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''medium'', ''value'': {''string_value'': ''organic'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''ga_session_number'', ''value'': {''string_value'': None, ''int_value'': 2, ''float_value'': None, ''double_value'': None}}
 {''key'': ''gclid'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''page_title'', ''value'': {''string_value'': ''Apparel | Google Merchandise Store'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''all_data'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''page_location'', ''value'': {''string_value'': ''https://shop.googlemerchandisestore.com/Google+Redesign/Apparel'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''clean_event'', ''value'': {''string_value'': ''gtm.js'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''gclsrc'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''term'', ''value'': {''string_value'': ''<obfuscated>'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''engaged_session_event'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''source'', ''value'': {''string_value'': ''google'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''ga_session_id'', ''value'': {''string_value'': None, ''int_value'': 4377464061, ''float_value'': None, ''double_value'': None}}]', NULL, nan, -2217306130, NULL, NULL, '1001519.8438987528', {'analytics_storage': None, 'ads_storage': None, 'uses_transient_token': 'No'}, '[]', 1607484300839189, {'revenue': 0.0, 'currency': 'USD'}, {'category': 'mobile', 'mobile_brand_name': 'Apple', 'mobile_model_name': 'iPhone', 'mobile_marketing_name': '<Other>', 'mobile_os_hardware_model': None, 'operating_system': 'iOS', 'operating_system_version': 'iOS 14.3', 'vendor_id': None, 'advertising_id': None, 'language': 'en-us', 'is_limited_ad_tracking': 'No', 'time_zone_offset_seconds': None, 'web_info': {'browser': 'Safari', 'browser_version': '14.0'}}, {'continent': 'Europe', 'sub_continent': 'Northern Europe', 'country': 'Denmark', 'region': 'Region of Southern Denmark', 'city': '(not set)', 'metro': '(not set)'}, NULL, {'medium': '<Other>', 'name': '<Other>', 'source': '<Other>'}, 2100450278, 'WEB', NULL, {'total_item_quantity': None, 'purchase_revenue_in_usd': None, 'purchase_revenue': None, 'refund_value_in_usd': None, 'refund_value': None, 'shipping_value_in_usd': None, 'shipping_value': None, 'tax_value_in_usd': None, 'tax_value': None, 'unique_items': None, 'transaction_id': None}, '[]'), ('20201209', 1607484300839189, 'page_view', '[{''key'': ''engaged_session_event'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''ga_session_id'', ''value'': {''string_value'': None, ''int_value'': 5399370187, ''float_value'': None, ''double_value'': None}}
 {''key'': ''debug_mode'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''session_engaged'', ''value'': {''string_value'': ''0'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''medium'', ''value'': {''string_value'': ''organic'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''ga_session_number'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''entrances'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''gclsrc'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''clean_event'', ''value'': {''string_value'': ''gtm.js'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''gclid'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''source'', ''value'': {''string_value'': ''google'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''page_location'', ''value'': {''string_value'': ''https://shop.googlemerchandisestore.com/Google+Redesign/Apparel'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''term'', ''value'': {''string_value'': ''<obfuscated>'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''page_title'', ''value'': {''string_value'': ''Apparel | Google Merchandise Store'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''page_referrer'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''campaign'', ''value'': {''string_value'': ''(organic)'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''all_data'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}]', NULL, nan, 7591871343, NULL, NULL, '1001519.8438987528', {'analytics_storage': None, 'ads_storage': None, 'uses_transient_token': 'No'}, '[]', 1607484300839189, {'revenue': 0.0, 'currency': 'USD'}, {'category': 'mobile', 'mobile_brand_name': 'Apple', 'mobile_model_name': 'iPhone', 'mobile_marketing_name': '<Other>', 'mobile_os_hardware_model': None, 'operating_system': 'iOS', 'operating_system_version': 'iOS 14.3', 'vendor_id': None, 'advertising_id': None, 'language': 'en-us', 'is_limited_ad_tracking': 'No', 'time_zone_offset_seconds': None, 'web_info': {'browser': 'Safari', 'browser_version': '14.0'}}, {'continent': 'Europe', 'sub_continent': 'Northern Europe', 'country': 'Denmark', 'region': 'Region of Southern Denmark', 'city': '(not set)', 'metro': '(not set)'}, NULL, {'medium': '<Other>', 'name': '<Other>', 'source': '<Other>'}, 2100450278, 'WEB', NULL, {'total_item_quantity': None, 'purchase_revenue_in_usd': None, 'purchase_revenue': None, 'refund_value_in_usd': None, 'refund_value': None, 'shipping_value_in_usd': None, 'shipping_value': None, 'tax_value_in_usd': None, 'tax_value': None, 'unique_items': None, 'transaction_id': None}, '[]'), ('20201209', 1607484300839189, 'session_start', '[{''key'': ''page_location'', ''value'': {''string_value'': ''https://shop.googlemerchandisestore.com/Google+Redesign/Apparel'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''engaged_session_event'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}
 {''key'': ''page_referrer'', ''value'': {''string_value'': None, ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''ga_session_id'', ''value'': {''string_value'': None, ''int_value'': 5399370187, ''float_value'': None, ''double_value'': None}}
 {''key'': ''page_title'', ''value'': {''string_value'': ''Apparel | Google Merchandise Store'', ''int_value'': None, ''float_value'': None, ''double_value'': None}}
 {''key'': ''ga_session_number'', ''value'': {''string_value'': None, ''int_value'': 1, ''float_value'': None, ''double_value'': None}}]', NULL, nan, 7591871343, NULL, NULL, '1001519.8438987528', {'analytics_storage': None, 'ads_storage': None, 'uses_transient_token': 'No'}, '[]', 1607484300839189, {'revenue': 0.0, 'currency': 'USD'}, {'category': 'mobile', 'mobile_brand_name': 'Apple', 'mobile_model_name': 'iPhone', 'mobile_marketing_name': '<Other>', 'mobile_os_hardware_model': None, 'operating_system': 'iOS', 'operating_system_version': 'iOS 14.3', 'vendor_id': None, 'advertising_id': None, 'language': 'en-us', 'is_limited_ad_tracking': 'No', 'time_zone_offset_seconds': None, 'web_info': {'browser': 'Safari', 'browser_version': '14.0'}}, {'continent': 'Europe', 'sub_continent': 'Northern Europe', 'country': 'Denmark', 'region': 'Region of Southern Denmark', 'city': '(not set)', 'metro': '(not set)'}, NULL, {'medium': '<Other>', 'name': '<Other>', 'source': '<Other>'}, 2100450278, 'WEB', NULL, {'total_item_quantity': None, 'purchase_revenue_in_usd': None, 'purchase_revenue': None, 'refund_value_in_usd': None, 'refund_value': None, 'shipping_value_in_usd': None, 'shipping_value': None, 'tax_value_in_usd': None, 'tax_value': None, 'unique_items': None, 'transaction_id': None}, '[]');