This article covers the following: |
Overview of VWO <> BigQuery Integration
Integrating your VWO account with BigQuery (BQ) enables seamless streaming of your VWO experiment data into BigQuery. This integration helps consolidate your data in a robust and scalable data warehouse, allowing you to run complex SQL queries and conduct advanced data analysis efficiently.
For example, if you export GA and VWO data to BQ, you can combine historical website traffic data from GA with A/B test results from VWO. This enables you to analyze long-term trends, understand how A/B tests affect visitor behavior over time, and build more sophisticated attribution models to measure the effectiveness of your overall marketing strategy.
Configure the Integration
Configuring the VWO-BigQuery integration is a multi-step process:
Step 1: Create a Service Account for Your BQ Data
- Log in to your Google Cloud account and select the project where you want to store your VWO experiment data in BigQuery.
- From the main menu panel on the left, go to IAM & Admin > Service Accounts.
- On the Service Accounts page, click Create service account, enter the service account name and account ID, and click Create and Continue.
- You can skip the next step and click on Done to save your changes. Upon successful creation, the new service account is listed on the Service Accounts page.
- Now, click on the newly created service account and go to the Keys tab.
- Click Add Key > Create New Key, select JSON as the key type option, and click Create. The service JSON file is downloaded in your browser. Keep this file secure, as you will need it later.
Step 2: Create a Custom Role
- In the Google Cloud console, go to IAM & Admin > Roles.
-
Click Create Role and enter the following details:
- Title: VWO Custom Role
- ID: vwo_custom_role
- Stage: General Availability (GA)
- Under Permissions, click Add Permissions and search for the permission bigquery.jobs.create.
- Click Add and then Create to save the role. Upon successful creation, the custom role looks like this:
Step 3: Assign the Custom Role to Your Service Account
- Go to IAM & Admin > IAM.
- Click Add and enter the email ID of the service account created earlier.
- Under Role, select VWO Custom Role (created in Step 2) and click Save.
Step 4: Create a Cloud Storage Bucket and HMAC Key for Your BQ Data
- In the Google Cloud console, go to Cloud Storage.
-
Click Create Bucket and follow these steps:
- Select Protection Tools as None or Object Versioning.
- Ensure the bucket does not have a retention policy.
- Once the bucket is created, go to the Bucket Permissions section.
- Click Add Principal and assign the role Storage Object Admin to your service account.
- Click SAVE.
- Now, go to Cloud Storage Settings > Interoperability.
- Click Create a Key for a Service Account.
- Select the service account you created earlier.
- Click Create Key and copy the Access ID and Secret Key.
Step 5: Create BigQuery Datasets and Assign Permissions
- In the Google Cloud console, go to BigQuery.
- Create a new dataset with your preferred name.
-
Go to the dataset permissions, click Add Principal, and assign the following roles to your service account:
- BigQuery User
- BigQuery Data Editor
- Now, create another dataset named vwo_raw_data. This dataset will serve as the staging area for your VWO data before being processed into your chosen dataset.
- Assign the same roles (BigQuery Data Editor and BigQuery User) to the service account for the vwo_raw_data dataset as well.
Step 6: Enable the BigQuery Integration in VWO
- Log in to your VWO account.
- From the left panel of your VWO dashboard, go to Configurations > Integrations. This menu provides integrations that can be enabled at the account level.
- Browse for the BigQuery integration, click on it, and turn on the toggle switch to enable it.
- You are auto-navigated to the Config tab to connect your BigQuery account with VWO.
- Check the Push VWO Data to BigQuery checkbox and save it.
- Click Connect BigQuery.
-
Enter the details in the following fields and click Create Connection.
Field Value Project ID Specify the Google Cloud Project ID, where the required BigQuery dataset is present. Dataset Location Specify the location of the BigQuery dataset. Dataset ID Specify the ID of your selected BigQuery dataset. HMAC Key Access ID Enter the HMAC key Access ID you created earlier. HMAC Key Secret Enter the HMAC key Secret you created earlier. GCS Bucket Name Specify the GCS Bucket Name you created. Service Account Paste the content of the service account JSON file.
Once the connection is established, your VWO experiment data will start streaming to your BigQuery account.
If you wish to enable the BigQuery integration for your existing campaigns, select the campaign, go to Configuration > Integrations, and select BigQuery.
Need more help?
For further assistance or more information, contact VWO Support.