Tracking remote book form submissions
Form Problem
The remote ebook forms use a different format for Marketo forms on other parts of about.gitlab.com. This new format does not have the dataLayer.push
event we need to track form submissions.
This is the case for forms on both the homepage and blog(/sites/blog/source/index.html.haml
).
CTA Problem
Google Tag Manager isn't able to successfully capture click interactions from the hero CTA on the homepage 100% of the time. This is similar to the behavior in the past with the value driver pillars.
I can click on any part of the column to pop up the form or load the /just-commit/
page on the value drivers. However, the same click class/text is not always present so it make it difficult to track CTA clicks.
Solution
@skarpeles can you add a form.onSuccess
event and add a dataLayer.push
event to the remote ebook forms?
Something like this is what we use to capture form submits as an event in Google Analytics in other spots.
form.onSuccess(function() {
dataLayer.push({event: 'resources', mktoFormId: form.getId()});
@amy.waller is there a better way to make sure GA picks up Marketo form fills?
@skarpeles @laurenbarker I'll set up some time this week for us to look at the CTA boxes to see if we can find a reliable element for firing those click events, or discuss possible update to make sure we can capture those too. Thanks!