walks you through each step in setting up a Custom Dimension.<\/span><\/p>\r\nOf course, we would set up our Random User ID (RUID) as a User-based-scope custom dimension.<\/span><\/p>\r\nAfter the RUID is set up, use the following script:<\/span><\/p>\r\n\r\n\r\nSELECT\r\n (select value.string_value FROM UNNEST(event_params) WHERE key = 'ruid') as RUID,\r\n event_timestamp,\r\n (SELECT value.int_value FROM UNNEST(event_params) WHERE key = 'ga_session_id') AS ga_session_id,\r\n (SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'page_location')\r\n AS page_location,\r\n (SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'page_title') AS page_title,\r\n traffic_source\r\nFROM\r\n`mytable.events_*`\r\nWHERE\r\n event_name = 'page_view'\r\nORDER BY\r\n user_pseudo_id,\r\n ga_session_id,\r\n event_timestamp ASC;<\/code><\/pre>\r\n\r\nWe must also pass the RUID into our CRM of choice. Make sure that, in your CRM, you have two important factors in place:<\/p>\r\n
\r\nLead scoring\/Qualification exists<\/li>\r\n Form customization is possible<\/li>\r\n<\/ul>\r\nFrom there, you’ll want to blend your two data sources – the BigQuery table and the CRM data. You might want to import a subset of your CRM data into Google Sheets. Some sample fields that you can use for this subset are:<\/span><\/p>\r\n\r\nRUID<\/li>\r\n Create Date<\/li>\r\n Lead Scoring Value<\/li>\r\n Lifecycle Stage<\/li>\r\n<\/ul>\r\n <\/noscript> <\/p>\r\nWow, that’s a lot of data!<\/p>\r\n
Wrap-Up<\/h2>\r\n This data, blended with a full list of page visits and events, provides a scalable, manageable, and powerful method of analyzing user journeys throughout the entire customer lifecycle. <\/span><\/p>\r\nYour business requirements will dictate each of the data points that you want to measure. Your audience requirements will guide how you want to display that data. Unsampled Google Analytics data aligned with your CRM data provide rich veins of customer behavior both online and offline. Mining the insight is now in your capable hands!<\/span><\/p><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"By now, you’ve most likely heard the news that Universal Analytics will stop processing hits on July 1, 2023. Google recommends that all Google Analytics properties move over to Google Analytics 4 as soon as possible. One of the biggest, most impactful benefits of this move is the exporting of Google Analytics data into Google […]<\/p>\n","protected":false},"author":111,"featured_media":60095,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","advgb_blocks_editor_width":"","advgb_blocks_columns_visual_guide":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[1214,1210],"coauthors":[],"class_list":["post-60001","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-bigquery","tag-google-analytics-4"],"acf":[],"yoast_head":"\n
How to Use BigQuery to Fill in the Gaps in GA4 - Portent<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n\t \n\t \n\t \n","yoast_head_json":{"title":"How to Use BigQuery to Fill in the Gaps in GA4 - Portent","description":"As powerful as Google Analytics 4 is, it still has limitations. Learn how to fill in the gaps in GA4's reporting with BigQuery.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/how-to-use-bigquery-to-fill-in-the-gaps-in-google-analytics-4.htm","og_locale":"en_US","og_type":"article","og_title":"How to Use BigQuery to Fill in the Gaps in GA4 - Portent","og_description":"As powerful as Google Analytics 4 is, it still has limitations. Learn how to fill in the gaps in GA4's reporting with BigQuery.","og_url":"https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/how-to-use-bigquery-to-fill-in-the-gaps-in-google-analytics-4.htm","og_site_name":"Portent","article_publisher":"https:\/\/www.facebook.com\/portent.marketing","article_published_time":"2022-08-31T14:00:00+00:00","article_modified_time":"2022-09-01T21:33:49+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.eigene-homepage-erstellen.net\/wp-content\/uploads\/2022\/08\/BigQuery-GA_Featured-Image.png","type":"image\/png"}],"author":"Mike Harmanos","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/mikeharmanos","twitter_site":"@portent","twitter_misc":{"Written by":"Mike Harmanos","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/how-to-use-bigquery-to-fill-in-the-gaps-in-google-analytics-4.htm#article","isPartOf":{"@id":"https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/how-to-use-bigquery-to-fill-in-the-gaps-in-google-analytics-4.htm"},"author":{"name":"Mike Harmanos","@id":"https:\/\/www.eigene-homepage-erstellen.net\/#\/schema\/person\/216619cc40eed2e4b83664fd971f510f"},"headline":"How to Use BigQuery to Fill in the Gaps in Google Analytics 4","datePublished":"2022-08-31T14:00:00+00:00","dateModified":"2022-09-01T21:33:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/how-to-use-bigquery-to-fill-in-the-gaps-in-google-analytics-4.htm"},"wordCount":990,"commentCount":0,"publisher":{"@id":"https:\/\/www.eigene-homepage-erstellen.net\/#organization"},"image":{"@id":"https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/how-to-use-bigquery-to-fill-in-the-gaps-in-google-analytics-4.htm#primaryimage"},"thumbnailUrl":"https:\/\/eigene-homepage-erstellen.net\/wp-content\/uploads\/2022\/08\/BigQuery-GA_Featured-Image.png","keywords":["Bigquery","google analytics 4"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/how-to-use-bigquery-to-fill-in-the-gaps-in-google-analytics-4.htm#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/how-to-use-bigquery-to-fill-in-the-gaps-in-google-analytics-4.htm","url":"https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/how-to-use-bigquery-to-fill-in-the-gaps-in-google-analytics-4.htm","name":"How to Use BigQuery to Fill in the Gaps in GA4 - Portent","isPartOf":{"@id":"https:\/\/www.eigene-homepage-erstellen.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/how-to-use-bigquery-to-fill-in-the-gaps-in-google-analytics-4.htm#primaryimage"},"image":{"@id":"https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/how-to-use-bigquery-to-fill-in-the-gaps-in-google-analytics-4.htm#primaryimage"},"thumbnailUrl":"https:\/\/eigene-homepage-erstellen.net\/wp-content\/uploads\/2022\/08\/BigQuery-GA_Featured-Image.png","datePublished":"2022-08-31T14:00:00+00:00","dateModified":"2022-09-01T21:33:49+00:00","description":"As powerful as Google Analytics 4 is, it still has limitations. Learn how to fill in the gaps in GA4's reporting with BigQuery.","breadcrumb":{"@id":"https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/how-to-use-bigquery-to-fill-in-the-gaps-in-google-analytics-4.htm#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/how-to-use-bigquery-to-fill-in-the-gaps-in-google-analytics-4.htm"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/how-to-use-bigquery-to-fill-in-the-gaps-in-google-analytics-4.htm#primaryimage","url":"https:\/\/eigene-homepage-erstellen.net\/wp-content\/uploads\/2022\/08\/BigQuery-GA_Featured-Image.png","contentUrl":"https:\/\/eigene-homepage-erstellen.net\/wp-content\/uploads\/2022\/08\/BigQuery-GA_Featured-Image.png","width":1200,"height":628,"caption":"\"\""},{"@type":"BreadcrumbList","@id":"https:\/\/www.eigene-homepage-erstellen.net\/blog\/analytics\/how-to-use-bigquery-to-fill-in-the-gaps-in-google-analytics-4.htm#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eigene-homepage-erstellen.net\/"},{"@type":"ListItem","position":2,"name":"How to Use BigQuery to Fill in the Gaps in Google Analytics 4"}]},{"@type":"WebSite","@id":"https:\/\/www.eigene-homepage-erstellen.net\/#website","url":"https:\/\/www.eigene-homepage-erstellen.net\/","name":"Portent","description":"Digital Marketing Agency - Seattle, WA","publisher":{"@id":"https:\/\/www.eigene-homepage-erstellen.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.eigene-homepage-erstellen.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.eigene-homepage-erstellen.net\/#organization","name":"Portent","url":"https:\/\/www.eigene-homepage-erstellen.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.eigene-homepage-erstellen.net\/#\/schema\/logo\/image\/","url":"https:\/\/portent.wpenginepowered.com\/images\/2018\/08\/logo-indigo.svg","contentUrl":"https:\/\/portent.wpenginepowered.com\/images\/2018\/08\/logo-indigo.svg","width":182,"height":40,"caption":"Portent"},"image":{"@id":"https:\/\/www.eigene-homepage-erstellen.net\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/portent.marketing","https:\/\/x.com\/portent","https:\/\/www.linkedin.com\/company\/portent\/"]},{"@type":"Person","@id":"https:\/\/www.eigene-homepage-erstellen.net\/#\/schema\/person\/216619cc40eed2e4b83664fd971f510f","name":"Mike Harmanos","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.eigene-homepage-erstellen.net\/#\/schema\/person\/image\/e4a1945ff51bbbd976054c99ddf5176d","url":"https:\/\/secure.gravatar.com\/avatar\/b52029a79bd3b337202dd5306c85f478?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b52029a79bd3b337202dd5306c85f478?s=96&d=mm&r=g","caption":"Mike Harmanos"},"description":"Mike believes that analytics is the art and science of asking the quesiton, \"why?\" As a data analytics manager for Portent, he enjoys using measurable data to glean actionable insights that drive his clients' cross-channel performance results. Mike is a firm believer in the importance of equity in the digital analytics field, and is a regular volunteer with Measurecamp.org, a free-to-attend analytics \"unconference.\"","sameAs":["https:\/\/www.linkedin.com\/in\/mikeharmanos\/","https:\/\/x.com\/https:\/\/twitter.com\/mikeharmanos"],"url":"https:\/\/eigene-homepage-erstellen.net\/blog\/author\/mharmanos"}]}},"author_meta":{"display_name":"Mike Harmanos","author_link":"https:\/\/eigene-homepage-erstellen.net\/blog\/author\/mharmanos"},"featured_img":"https:\/\/eigene-homepage-erstellen.net\/wp-content\/uploads\/2022\/08\/BigQuery-GA_Featured-Image-300x157.png","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/eigene-homepage-erstellen.net\/wp-content\/uploads\/2022\/08\/BigQuery-GA_Featured-Image.png","tax_additional":{"categories":{"linked":["Analytics<\/a>"],"unlinked":["Analytics<\/span>"]},"tags":{"linked":["Bigquery<\/a>"," google analytics 4<\/a>"],"unlinked":["Bigquery<\/span>","google analytics 4<\/span>"]}},"comment_count":"0","relative_dates":{"created":"Posted 2 years ago","modified":"Updated 2 years ago"},"absolute_dates":{"created":"Posted on August 31, 2022","modified":"Updated on September 1, 2022"},"absolute_dates_time":{"created":"Posted on August 31, 2022 7:00 am","modified":"Updated on September 1, 2022 2:33 pm"},"featured_img_caption":"","series_order":"","category_info":[{"taxonomy":"category","name":"Analytics","slug":"analytics","permalink":"https:\/\/eigene-homepage-erstellen.net\/blog\/analytics","icon":"https:\/\/eigene-homepage-erstellen.net\/wp-content\/uploads\/2021\/10\/analytics-category-icon.png","theme":"analytics"}],"author_info":{"first":"Mike","last":"Harmanos","url":"https:\/\/eigene-homepage-erstellen.net\/blog\/author\/mharmanos"},"_links":{"self":[{"href":"https:\/\/eigene-homepage-erstellen.net\/wp-json\/wp\/v2\/posts\/60001"}],"collection":[{"href":"https:\/\/eigene-homepage-erstellen.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eigene-homepage-erstellen.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eigene-homepage-erstellen.net\/wp-json\/wp\/v2\/users\/111"}],"replies":[{"embeddable":true,"href":"https:\/\/eigene-homepage-erstellen.net\/wp-json\/wp\/v2\/comments?post=60001"}],"version-history":[{"count":0,"href":"https:\/\/eigene-homepage-erstellen.net\/wp-json\/wp\/v2\/posts\/60001\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eigene-homepage-erstellen.net\/wp-json\/wp\/v2\/media\/60095"}],"wp:attachment":[{"href":"https:\/\/eigene-homepage-erstellen.net\/wp-json\/wp\/v2\/media?parent=60001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eigene-homepage-erstellen.net\/wp-json\/wp\/v2\/categories?post=60001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eigene-homepage-erstellen.net\/wp-json\/wp\/v2\/tags?post=60001"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/eigene-homepage-erstellen.net\/wp-json\/wp\/v2\/coauthors?post=60001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}