I’m looking to edit our Google Analytics Typeform events to allow for cross-domain tracking, but I can’t find a way to do this in the Typeform platform. I have our Google Analytics account connected with my Typeform page, but I don’t believe you can edit any of the events that are synced there.
I can’t find anything in the help center or community about this - can someone help? If this isn’t possible, I’ll have to remove the Google Analytics connection and recreate those events in Google Tag Manager.
Best answer by LizView original
@dbroberg - thanks for asking! We don’t offer an option to add custom code into the forms since we wouldn’t be able to guarantee how the form would look.
The upside is that we do have an option using hidden fields to pass UTM values into your form and then into Google Analytics with the steps below:
1. Make sure you have connected your typeform to Google Analytics. Check out our help center article for more info.
2. Go to Typeform Builder (Create Panel) and add two hidden fields to your form.
3. Name them
utm_medium. It should look something like this:
Note! How the URL on the right side now displays differently to includes the data.
4. Publish the form so the changes are applied.
3. Now go to the share panel and choose your preferred way of embedding the form.
6. Click on get the code and when the pop-up window appears copy the code.
7. Paste it in your code editor. Don't save check next step first.
8. Make sure your website URL has the parameters with the same name, that is,
utm_medium. It should look like this:
9. Go to the embedded code snippet and add the following part to the code you pasted in your website. :
10. Try not to break the code. Add it after
data-mode="your embed mode"or after the Typeform URL just as in the screenshot. It should look like this:
Hopefully this helps! Let me know if you have any troubles getting this setup. :)
Hi is it possible to add html to a question?
For example I'd like to include a BMI calculator and Waist-to-Hip Ratio Calculator as you can see on this page https://www.healthbyscience.co.uk/free-resources/lose-weight/
@stuartmaytham I’ve added your post here where we have the answer. 😀
is there any difference between those parameters:
found here: https://www.typeform.com/help/a/dynamically-pass-utm-values-from-a-url-to-an-embedded-typeform-for-advanced-users-4406211186580/
found in this thread here.
Hi, yes there is a difference:
You should use the first one with embed code you find in the share page of your typeform (or with current embed lib).