Download the ebook now

Thankyou for sharing the details. Here is your ebook on "Top questions people ask about Server Side Tagging".
Oops! Something went wrong while submitting the form.

A step-by-step guide to tracking Marketo form with Google Tag Manager

April 7, 2023
Google Analytics 4 Migration Via Tagmate

Marketo is arguably one of the best acquisitions made by Adobe and it is getting increasingly popular among SMEs due to its unique features like sales partnership, cross-channel engagement, and content personalization. It also helps businesses automate experiences and personalize content and no doubt, it is gaining traction in 2023.

Being a relatively new platform for most companies, sometimes, marketing teams end up tearing their hair out due to the learning curve. While managing contacts and running campaigns is relatively simple, tasks like tracking Marketo forms using Google Tag Manager are extremely challenging.

To help our broad reader base, I have decided to create an actionable guide to help you set up Marketo forms on your website with the help of Google Tag Manager (GTM).

Let’s get started:

How to track Marketo form submission

Marketo form submission can be tracked in many ways:

  • Thank you page - After form submission, if a different web page appears with a message (e.g. Thank you), a web page having a URL similar to
  • with the data layer/listen layer in Google Tag Manager.

Marketo Form  Events

Marketo forms give event names of different types and here is the complete list:

Track Marketo form using the data layer in Google Tag Manager

Step 1: Create a Container and Workspace in your Google Tag Manager account

Pro TIP: Create a new container and user ‘Default Workspace’

and if you have already having container and workspace then skip this step.

Step 2: Copy the Data Layer Snippet

Step 3: Create a Custom HTML Tag

  • Go to ‘Tags’ > Click on ‘New’

  • Select Tag type > Custom HTML

  • Paste the code snippet (step 2) here

  • Select Trigger type > All Pages

  • The final configuration of the custom HTML tag looks like this

Step 4: Create a Custom Event

  • Click on ‘Triggers’ > Click on ‘New’

  • Select the ‘Custom Event’  trigger type

  • Configure custom event

    - Give meaningful name
    - Enter event name = mkto.form.success
    - This tag fires on = all custom events
    - Click on ‘Save’

Step 5: Create a Data Layer Variable

  • Go to ‘Variables > Click on ‘New’

  • Go to ‘Variables > Click on ‘New’

  • Configure data layer variable

    - Give a meaningfull name
    - Set data layer variable name =
    - Click on ‘save’

Step 6: Create Configuration Tag

Hope you know this step if not please make a configuration tag for GA4

  • Go to Tags > New > Select Configuration tag

  • Enter the measurement ID of the data stream of GA4

Step 7: Create GA4 Event Tag

  • Go to Tags > New > Select GA4 event tag
  • Set configuration

    - Set configuration tag
    - Set event name (give meaningful name)
    - Set the event parameter as form Id and select form id’s data layer variable
    - Set custom event trigger that is created

Step 8: Preview Tag / Debug tag

  • Click on ‘Preview’ and start preview / debug mode

  • Check the ‘mkto.form.submit’ event  and check tag is fired or no

Step 9: Test data in GA4

  • Open your Google Analytics account > Locate Property which is configured in the configuration tag

  • Check the event name

  • Check form Id

Wrap Up

It can be difficult to keep track of all of your lead activities across several marketing platforms (such as Google Ads, Facebook Ads, LinkedIn, and Google Analytics), especially when there are several Marketo forms and different sales and marketing operations teams involved.

It does seem a very lengthy process! but Tagmate’s pre-built templates help you create tags, triggers, and variables with just a few clicks.

Top questions people ask about Server Side Tagging
Download for Free NOW!
Stay a step ahead.
Get served hottest tracking posts from industry-experts every week.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Ready to Get Started
Stay Updated
Subscribe to get the latest news, industry trends, blog posts, and updates.

Set up tags in seconds.
Not days.

Start Free Trial