I am trying to update the hits.page.pagePath field in the Google Analytics export in BigQuery, however i\'m unable to unnest the field using the method outlined in the docum
This should help get you started. You need to include everything else from hits in order to perform the update, including the nested page.
UPDATE `you_dataset.tablename`
SET hits = ARRAY(
SELECT AS STRUCT * REPLACE (
(SELECT AS STRUCT page.* REPLACE ('foo' AS pagePath)) AS page
)
FROM UNNEST(hits) as pagePath
)
WHERE fullVisitorID like "%1%"