The current Typeform integration only supports Universal Analytics (UA), but not the new GA4 format or analytics. You can find information about how to create a Universal Analytics (UA) ID for new properties in this Google Analytics help article.
The steps to follow are:
1. On your Google Analytics home page, select the account you want to integrate your typeform with and copy the property ID behind the name/URL of that account. It takes the form UA-XXXXX-Y or UA-XXXXX-YY.
Warning! You can't track Payment questions due to legal reasons, so it is currently not possible to use Google Analytics if you have a Payment field in your typeform.
2. Open your Workspace, load up the typeform you want to track, and click the Connect panel.
You’ll see Add a Google Analytics tracking code to your typeform. Click Connect.
3. A new window will appear. Paste your Google Analytics tracking code here, and click Save.
4. Open your typeform a couple of times, and answer your questions
5. Open your Google Analytics account where you are tracking the typeform.
6. Go to the Behavior panel, select Site Content, then click on All Pages.
7. Get your typeform’s URL and copy its ID. It’s the last string of characters in the URL, after the last “/”, and should be something similar to “xxXxXX”.
8. Search for the typeform ID in the search box for the All Pages report.
Warning! If you followed all the steps above, but still can’t see the data, check if there is filtering turned on in the Admin > View settings > Filters of your Google Analytics Account. Typeforms are loaded from a different domain than your main website, so you should make sure that it is not filtered out of the reports.
Note! That it will take Google Analytics a few hours to update the tracking data, so you may have to wait to see it working.
Embedded typeforms with the same tracking code as their hosting webpage are tracked as a single record, but you can segment different events in your Google Analytics metrics.
For example, one visit in Google Analytics can be segmented as follows:
- a visitor clicked on a Typeform ad in Google,
- they visited the Products, Integrations and Contact pages,
- they filled out a typeform and submitted their name, email, company name and address,
- and finally, they visited the Pricing page.
If you use Hidden Fields in your typeform, the ID is the string between the last “/” and the “?” character.
Warning! If you add your Google Analytics tracking code to a typeform, you are responsible for the data collected by Google Analytics. If you’re using hidden fields that include personally identifiable information, like name or email address, etc, you must ensure this information is added to the ‘Exclude URL Query Parameters’ field in Google Analytics’ view settings. Collecting this data breaks Google’s Terms of Service. Here’s how to do this: https://support.google.com/analytics/answer/1010249?hl=en
On every submit of your typeforms we also send a Google Analytics event with the following parameters:
- Category for your typeform’s UID
- Action for “TypeformSubmit”
- Label for the name of your typeform
You can find all the typeform submissions in Google Analytics in the Behavior > Events > Top events report.
To see how to use this event to set up Goals (for easier use in other reports, like conversion tracking), please refer to this Google Analytics help article.
Each time your respondent answers a question, we trigger a Google Analytics event with the following parameters:
- Category for your typeform’s UID
- Action for “TypeformQuestionPassed”
- Label for the question title
You can find all your typeform’s “Questions Passed” events in Google Analytics under Behavior > Events > Top Events report. If you want to figure out where respondents drop off, click on “Unique Events” to see which question has the fewest answers. Take note: statement fields are not tracked!
This is a great way to track points where respondents drop off. Then you can revise your questions to try to improve your typeform’s completion rate. Remember these 4 steps to an awesome typeform!