dataLayer push for SaaS trial requests on customers.gitlab.com

Problem

The GitLab marketing team needs to be able to track SaaS trail request conversions with Google Analytics.

Solution

We push an event to the Google Tag Manager dataLayer on about.gitlab.com when someone completes a self-managed trial request. Could we create a similar event for customers.gitlab.com? Then I can set Google Tag Manager to trigger a Google Analytics event when someone requests a SaaS trial.

This is what we fire on submission success in source/free-trial/self-managed/index.html.haml

dataLayer.push({event: 'trial', mktoFormId: form.getId()});

This dataLayer is created when a page is opened in the head include, source/includes/layout/head.html.haml

<script>
window.dataLayer = window.dataLayer || [];
</script>

Happy to help unpack this as needed to help set this up.

@s_awezec can you help me label and assign this appropriately?

Assignee Loading
Time tracking Loading