VWO provides a one-click integration option for Google Analytics on the final screen of the test creation process. Enabling integration should automatically start pushing your website data to GA. However, if you notice any issues or error in the integration, follow these steps to troubleshoot the issue:
- Ensure that GA code is installed
- Check if VWO is pushing data
Ensure that GA Code is Installed
Check if GA code present on the page has been installed directly or through Google Tag Manager (GTM). You can check the installation through network calls:
- Right-click the page, and then select Inspect to open Chrome Dev tools.
- Select the Network tab, and then type Google in the Filter field. All related calls should appear.
- Refresh the page, and then check the Initiator column field for the analytics.js call.
- If GA code is added directly to the page, the initiator will mostly be the same page or any JS file on the page. If the code is installed through GTM, the initiator field will show gtm.js call.
Adding Analytics Code on the Page
To integrate a test with your analytics account, you must add analytics code to the website. Then, go to the final screen of test creation process, under Integrate with Third-Party Products, select the relevant integration is enabled. This will ensure that the VWO test data is pushed to your analytics account. You can add the analytics code to the website using Tag Manager or install the code directly on the website.
Verify if the Code is Installed on the Page
To ensure that your analytics code is added correctly to the website, you can check the initiator for the respective network call:
- Right-click the page, select Inspect to open Chrome Dev tools.
- Select the Network tab, and then type Google in the Filter field.
All related calls should appear.
- Refresh the page, and then check the Initiator column field for the analytics.js call
- For Universal Analytics code added directly to the page, the initiator is the same URL or any JS file on the page.
- If the code is installed through Google Tag Manager, the initiator field will show gtm.js call.
- To check the placement of Classic Google Analytics Code, you can check the initiator for ga.js call. If it shows the initiator as the same URL or JS file for ga.js, the code is added directly on the site. The initiator will be gtm.js if the code is added through Google Tag Manager.
Check if VWO Is Pushing Data
After verifying the setup, you can check if VWO is pushing the data to Google Analytics. To check, right-click in the page, and then select Inspect. Under Network, apply the Google filter. Check for data, beginning with collect in the Network call details.
For Classic GA, the data is present in the network call beginning with utm.gif. For Universal GA or GTM, the data is present in the network call beginning with Collect. For GTM integration through custom events, data would reflect under Collect Network call under the Event action and Event label options.