{"componentChunkName":"component---src-templates-markdown-template-jsx","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/bigquery-define-schema/","result":{"data":{"pageMetadata":{"title":"BigQuery (Define Your Own Schema)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/bigquery-define-schema/","sourceCode":null,"metadataParent":{"title":"Data Warehouses and Data Lakes","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/","sourceCode":null,"hasVersionPicker":null,"metadataChildren":[{"title":"Advanced Data Warehouse Settings","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/advanced-data-warehouse-settings/","order":5.1,"label":null},{"title":"AWS Kinesis (Snowplow)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/aws-kinesis/","order":5.1,"label":null},{"title":"AWS Redshift (Define Your Own Schema)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/aws-redshift/","order":5.2,"label":null},{"title":"AWS S3 Integration (Define Your Own Schema)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/aws-s3-define-schema/","order":5.3,"label":null},{"title":"AWS S3 (Snowplow Schema)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/aws-s3-snowplow/","order":5.3,"label":null},{"title":"BigQuery (Snowplow Schema)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/bigquery-snowplow-schema/","order":5.4,"label":null},{"title":"BigQuery Firebase Schema","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/bigquery-firebase-schema/","order":5.5,"label":null},{"title":"BigQuery (Define Your Own Schema)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/bigquery-define-schema/","order":5.6,"label":null},{"title":"GCP BigQuery Export","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/gcp-bigquery-export/","order":5.7,"label":null},{"title":"Snowflake (Snowplow Schema)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/snowflake-snowplow-schema/","order":5.8,"label":null},{"title":"Snowplow Schema Overview","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/snowplow-schema/","order":5.8,"label":null},{"title":"Snowflake (Define Your Own Schema)","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/snowflake-define-schema/","order":5.9,"label":null}],"metadataParent":{"title":"Developer Docs","path":"/guides/analytics/analytics-deprecated/developer-docs/","metadataChildren":[{"title":"Introduction","path":"/guides/analytics/analytics-deprecated/developer-docs/introduction/","order":1,"label":null},{"title":"Integrations","path":"/guides/analytics/analytics-deprecated/developer-docs/integrations/","order":4,"label":null},{"title":"Data Warehouses and Data Lakes","path":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/","order":5,"label":null},{"title":"APIs","path":"/guides/analytics/analytics-deprecated/developer-docs/apis/","order":6,"label":null},{"title":"SDKs","path":"/guides/analytics/analytics-deprecated/developer-docs/sdks/","order":6,"label":null},{"title":"Developer Basics","path":"/guides/analytics/analytics-deprecated/developer-docs/developer-basics/","order":7,"label":null}],"metadataParent":{"title":"Analytics (Deprecated)","path":"/guides/analytics/analytics-deprecated/","metadataChildren":[{"title":"Introduction","path":"/guides/analytics/analytics-deprecated/introduction/","order":1.1,"label":null},{"title":"Developer Docs","path":"/guides/analytics/analytics-deprecated/developer-docs/","order":4,"label":null},{"title":"Identity Providers","path":"/guides/analytics/analytics-deprecated/identity-providers/","order":null,"label":null},{"title":"Settings","path":"/guides/analytics/analytics-deprecated/settings/","order":null,"label":null}],"metadataParent":{"title":"Analytics","path":"/guides/analytics/","metadataChildren":[{"title":"Introduction","path":"/guides/analytics/introduction/","order":1,"label":null},{"title":"Core Analytics (Beta)","path":"/guides/analytics/core-analytics/","order":1.1,"label":null},{"title":"Analytics Free Trial","path":"/guides/analytics/analytics-free-trial/","order":2,"label":null},{"title":"Setup","path":"/guides/analytics/setup/","order":3,"label":null},{"title":"Settings","path":"/guides/analytics/settings/","order":4,"label":null},{"title":"Analytics Data Manager","path":"/guides/analytics/data-manager/","order":5,"label":null},{"title":"Analyses","path":"/guides/analytics/analyses/","order":6,"label":null},{"title":"Query Builder","path":"/guides/analytics/query-builder/","order":6,"label":null},{"title":"User Aliasing","path":"/guides/analytics/user-aliasing/","order":7,"label":null},{"title":"Dashboards","path":"/guides/analytics/dashboards/","order":8,"label":null},{"title":"Analytics Resources","path":"/guides/analytics/resources/","order":10,"label":null},{"title":"User Segments","path":"/guides/analytics/user-segments/","order":10,"label":null},{"title":"Tutorials","path":"/guides/analytics/tutorials/","order":11,"label":null},{"title":"APIs","path":"/guides/analytics/apis/","order":12,"label":null},{"title":"Analytics (Deprecated)","path":"/guides/analytics/analytics-deprecated/","order":13,"label":null}],"metadataParent":{"title":"Guides","path":"/guides/","metadataChildren":[{"title":"Platform Overview","path":"/guides/platform-overview/","order":0.5,"label":null},{"title":"Getting Started","path":"/guides/getting-started/","order":1,"label":null},{"title":"mParticle Agent","path":"/guides/mparticle-agent/","order":1.5,"label":null},{"title":"Oversight","path":"/guides/oversight/","order":2,"label":null},{"title":"Data Platform","path":"/guides/data-platform/","order":3,"label":null},{"title":"Data Warehouse","path":"/guides/data-warehouse/","order":4,"label":null},{"title":"Customer 360","path":"/guides/customer-360/","order":5,"label":null},{"title":"Analytics","path":"/guides/analytics/","order":6,"label":null},{"title":"Audiences","path":"/guides/audiences/","order":7,"label":null},{"title":"Settings","path":"/guides/settings/","order":8,"label":null},{"title":"Troubleshooting mParticle","path":"/guides/troubleshooting/","order":10,"label":null},{"title":"Default Service Limits","path":"/guides/default-service-limits/","order":11,"label":null},{"title":"Glossary","path":"/guides/glossary/","order":12,"label":null}]}}}}}},"markdownRemark":{"html":"<aside class=\"warning\">\n<strong>Analytics Sunset</strong><br />\nWe began sunsetting mParticle Analytics on October 1, 2026. As a result, the features and workflows described on this page may no longer be available. This documentation is retained for reference. If you have questions about how this change affects your account, contact your mParticle account representative.\n</aside>\n<aside>\nNote: The information in this section pertains to legacy Analytics customers only. mParticle customers should refer to the <a href=\"/guides/data-warehouse/warehouse-sync/setup/\">Warehouse Sync Guide</a> to ingest data from third-party warehouses using mParticle's reverse-ETL solution.\n</aside>\n<h2 id=\"prerequisites\" style=\"position:relative;\"><a href=\"#prerequisites\" aria-label=\"prerequisites permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Prerequisites</h2>\n<p>You must grant ‘bigquery.dataViewer’ access to Analytics’ service account for your BigQuery project. In order to perform the following steps you must have administrative access to the BigQuery console as well as your BigQuery database.</p>\n<p>For this self-service integration, we also have some data requirements:</p>\n<ol>\n<li>All of your events must be unified into one singular table as opposed to having separate tables for each event type.</li>\n<li>By definition, an event must have a user_id, event_name, and timestamp field. The fields do not have to be named as such, and any additional fields will be treated as event properties.</li>\n<li>There can only be a maximum of one authenticatedID field and one unauthenticatedID field for aliasing.</li>\n<li>The event timestamp must be in UTC</li>\n<li>JSON fields must be pre-parsed and flattened into their own fields.</li>\n<li>All joins must be done beforehand.</li>\n<li>Sharded tables, meaning if your BigQuery tables end with the _MMDDYYYY format are not currently supported.</li>\n</ol>\n<p>We can still support any integrations that do not meet the above requirements, but you will need to get in touch with a <strong><a href=\"mailto:sales@indicative.com\">product specialist</a></strong>. Additionally, if there are additional enrichments required such as joining with user property tables or deriving custom user_ids, please <strong><a href=\"mailto:sales@indicative.com\">contact us</a></strong>.</p>\n<h2 id=\"adding-a-data-source-in-analytics\" style=\"position:relative;\"><a href=\"#adding-a-data-source-in-analytics\" aria-label=\"adding a data source in analytics permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Adding a Data Source In Analytics</h2>\n<ol>\n<li>In Analytics, click on the gear icon and select <strong>Project Settings</strong>.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/project-settings.png\" alt=\"Project Settings\"></li>\n<li>Select the <strong>Data Sources</strong> tab.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/data-sources-tab.png\" alt=\"Data Sources\"></li>\n<li>Select <strong>New Data Source</strong>.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/new-data-source.png\" alt=\"New Data Source\"></li>\n<li>Select <strong>Connect via Data Warehouse or Lake</strong>.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/connect-data-warehouse.png\" alt=\"Connect via Data Warehouse or Lake\"></li>\n<li>Select <strong>BigQuery</strong> as your data connection and <strong>Define your own schema</strong> as the connection schema and click <strong>Connect</strong>.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/bigquery-connect.png\" alt=\"BigQuery connect\"></li>\n<li>You should see this <strong>Google BigQuery</strong> overview screen. Click Next.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/bigquery-overview.png\" alt=\"Google BigQuery overview\"></li>\n</ol>\n<h2 id=\"connection-information\" style=\"position:relative;\"><a href=\"#connection-information\" aria-label=\"connection information permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Connection Information</h2>\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/bigquery-connection.png\" alt=\"BigQuery connection\">\n<ol>\n<li>Open the <a href=\"https://console.cloud.google.com/bigquery?_ga=2.215550228.-2045998963.1569964619\">BigQuery console</a> on Google Cloud Platform and <strong>Select a project</strong>.</li>\n<li>Enter the <strong>GCP Project ID</strong> containing your data.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/gcp-project-id.png\" alt=\"GCP Project ID\"></li>\n<li>Enter the <strong>Dataset Name</strong>.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/dataset-name.png\" alt=\"Dataset name\"></li>\n<li>Enter the <strong>Table Name</strong> and click <strong>Next</strong> in Analytics.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/table-name.png\" alt=\"Table name\"></li>\n</ol>\n<h2 id=\"grant-permissions\" style=\"position:relative;\"><a href=\"#grant-permissions\" aria-label=\"grant permissions permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Grant Permissions</h2>\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/grant-permissions-big-query.png\" alt=\"Grant permissions\">\n<ol>\n<li>\n<p>This integration works by sharing the dataset with Analytics’ service account and only requires read-only access to that dataset. Analytics takes on the cost of the query and caches this data in Analytics’ proprietary analytics engine.</p>\n<ol>\n<li>Within the BigQuery Console, select your Project and your dataset from the previous section.</li>\n<li>Click on <strong>Share Dataset</strong>.\n<img src=\"https://static.indicative.com/assets/integration/BQ4.png\" alt=\"Share Dataset\"></li>\n<li>\n<p>In the <strong>Dataset Permissions</strong> panel, in the <strong>Add Members</strong> field, place the user below.</p>\n<p><code class=\"language-text\">integrations@indicative-988.iam.gserviceaccount.com</code></p>\n</li>\n<li>In the <strong>Select a Role</strong> dropdown, select <strong>BigQuery Data Viewer</strong> and click <strong>Add</strong>.\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/bigquery-data-viewer.png\" alt=\"BigQuery Data Viewer\"></li>\n</ol>\n</li>\n</ol>\n<h2 id=\"data-loading\" style=\"position:relative;\"><a href=\"#data-loading\" aria-label=\"data loading permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Data Loading</h2>\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/data-loading-big-query.png\" alt=\"Data loading\">\n<ol>\n<li>\n<p><strong>Load Timestamp Field</strong>\nSelect the field used to identify new data. We recommend using a timestamp that denotes when the event was published, not the actual event timestamp to allow for late data to be collected. This will not impact your analyses since we reference the event timestamp for our queries. If you select to load data every 3, 6, or 12 hours, make sure to select a load timestamp field with at least hour precision (not a date only field).</p>\n<p>For example, if an event with an event timestamp of 12/1 was published to the table on 12/3, this will not be collected unless we use the publishing timestamp since every daily extract would look for events that occurred on 12/3. Using the publishing timestamp will allow us to extract all new data that was published to the table on a nightly basis.</p>\n</li>\n<li>\n<p><strong>Start Date</strong>\nSelect the date from where Analytics should load your data from.</p>\n<p>::: success\nIf your data history exceeds 1 billion events, a Solutions Engineer will contact you to assist with the integration.\n:::</p>\n</li>\n<li><strong>Schedule Interval</strong>\nSelect the frequency to make new data available in Analytics.</li>\n<li><strong>Processing Delay</strong>\nSelect when we should start extracting your data in UTC. This time should be when all of your previous day’s data is fully available in your table for extraction.</li>\n</ol>\n<h2 id=\"event-modeling\" style=\"position:relative;\"><a href=\"#event-modeling\" aria-label=\"event modeling permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Event Modeling</h2>\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/event-modeling-gbq.png\" alt=\"Event modeling\">\n<ol>\n<li><strong>Events Field</strong>\nSelect the field that should be used for your Analytics event names. We recommend choosing a field that will result in 20-300 unique values.</li>\n<li><strong>Timestamp Field</strong>\nSelect the field that represents the time that the event was performed. This timestamp is the field that will be used for querying.</li>\n</ol>\n<p>::: success\nAfter this step, we will perform a few checks on your data with the model that you provided. The checks are:</p>\n<ul>\n<li>Valid event field (Do at least 80% of your records have a value for the event field?</li>\n<li>Valid timestamp field (Do at least 80% of your records have a value for the timestamp field?</li>\n<li>Total number of unique events. We recommend 20-300 unique events and limit it to 2000.\n:::</li>\n</ul>\n<h2 id=\"user-modeling\" style=\"position:relative;\"><a href=\"#user-modeling\" aria-label=\"user modeling permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>User Modeling</h2>\n<p>After some basic checks, we can define your users within your data. For more information on User Identification (Aliasing), please refer to <a href=\"https://support.mparticle.com/hc/en-us/articles/11368278866573-User-Aliasing\">this article</a>.</p>\n<ol>\n<li>\n<p>If you choose to enable Aliasing:</p>\n<ol>\n<li><strong>Unauthenticated ID</strong> - Input the field used to identify anonymous users.</li>\n<li><strong>Authenticated ID</strong> - Input the field used to identify known users.</li>\n</ol>\n</li>\n<li>\n<p>If you choose to disable Aliasing, press <strong>Disabled</strong>:</p>\n<ol>\n<li><strong>Unauthenticated ID</strong> - Enter the field used to identify your users. All users must have a value for this field.</li>\n</ol>\n</li>\n</ol>\n<p>If you have a non-null value that represents null UserID values, please click on the <strong>Show Advanced</strong> button. In this field, please enter these non-null values.</p>\n<p>::: success\nAfter this step, we will perform additional checks on your data with the user model that you provided. The checks are:</p>\n<ul>\n<li>User Hotspot (Is there a single UserID that represents over 40% of your records?)</li>\n<li>Anti-Hotspot (Does your data have too many unique userIDs? A good events table contains multiple events per user)</li>\n<li>Aliasing\n- Too many unauthenticated IDs for a single authenticated userID\n- Too many authenticated IDs for a single anonymous ID\n:::</li>\n</ul>\n<h2 id=\"assisted-modeling\" style=\"position:relative;\"><a href=\"#assisted-modeling\" aria-label=\"assisted modeling permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Assisted Modeling</h2>\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/assisted-modeling-big-query.png\" alt=\"Assisted modeling\">\n<p>You should see a summary of your data based on the last 7 days in two main blocks. You should only be concerned if the margin of error is significant. If so, please reach out to a product specialist:</p>\n<ol>\n<li>\n<p><strong>Events Summary</strong>\nYou should see a daily breakdown of your Total Event Count, and the number of Unique Event Names. If there are certain events to exclude, please click on the Exclude checkbox for those events.</p>\n<p>If you would like to exclude any events by regex or property value, please contact a product specialist.</p>\n</li>\n<li>\n<p><strong>Properties Summary</strong>\nHere you will see the number of Unique Property Names. If there are certain properties to exclude, please click on the Exclude checkbox for those events.</p>\n<p>If you require more advanced configurations such as parsing out JSON fields, creating derived properties, or excluding properties based on regex, please contact a product specialist.</p>\n</li>\n<li><strong>Users Summary</strong>\nThis section lists the number of Unique users seen. If the numbers do not look correct, please go back to the User Modeling section to confirm that the correct ID was chosen.</li>\n</ol>\n<h2 id=\"waiting-for-data\" style=\"position:relative;\"><a href=\"#waiting-for-data\" aria-label=\"waiting for data permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Waiting For Data</h2>\n<img src=\"/images/guides/analytics-deprecated/data-warehouses-lakes/waiting-for-data.png\" alt=\"Waiting for data\">\n<p>If you see this screen, you’re all done! You should see your data in Analytics within 48-72 hours and will be notified by email.</p>","frontmatter":{"title":"BigQuery (Define Your Own Schema)","order":5.6,"seoTitle":null,"seoDescription":null},"parent":{"__typename":"File","modifiedTime":"October 12, 2026"}}},"pageContext":{"slug":"/guides/analytics/analytics-deprecated/developer-docs/data-warehouses-lakes/bigquery-define-schema/"}},"staticQueryHashes":["2950460867"]}