Ways to Simplify the Google Analytics Events for Marketo Forms | Community
Skip to main content
Eric_Salamon1
Level 6
February 23, 2018
New

Ways to Simplify the Google Analytics Events for Marketo Forms

  • February 23, 2018
  • 2 replies
  • 4587 views

It would be great if in the form builder we could apply the Google Analytic tags so that the events can be tracked as they happen. On the front end it would be 3 fields we would fill in. The code could then auto generate and it would be easier for the marketeers to track/ update.

2 replies

SanfordWhiteman
Level 10
February 23, 2018

This is very difficult to generalize, though. In order to be safe, onSuccess couldn't fire at all until the GA hitCallback had finished, which depending on what you're actually doing in the onSuccess might add totally unnecessary latency.

Eric_Salamon1
Level 6
February 23, 2018

I get what your saying. That being said for some coding is a passive skill and if the basic code could be generated based on specific structure it would save time and effort for people who don't necessary know how to get the GA tracking feature working. I managed to get the code working once, but that was a while ago and now I was trying to duplicate my work, but can't find it.

Additionally, lets say you are using a Marketo landing page and want to embed the form so it can auto fill. You won't be able to add the GA code because you would use the form object. By updating the editor to include this capability it would simplify the process for everyone. To your point there should be a selector asking if you want to use the GA tracking code as well. I personally find it to be a great double check for form fills to make sure nothing is dropped.

SanfordWhiteman
Level 10
February 23, 2018

You won't be able to add the GA code because you would use the form object.

What d'you mean here? You can use the Forms onSuccess in a Marketo LP as much as on a non-Marketo page.

February 4, 2020
No text available