Maintaining Google Analytics goal tracking when using Drupal forms and Marketo API form submission | Community
Skip to main content
July 10, 2017
Question

Maintaining Google Analytics goal tracking when using Drupal forms and Marketo API form submission

  • July 10, 2017
  • 2 replies
  • 2008 views

Hello,

We're using Drupal and wanting to use Drupal forms that submits a Marketo form via API.

When the form is submitted we can capture UTMs via hidden fields, but the UTMs are lost on the follow-up page and therefore makes it harder to manage GA conversion tracking. My thinking is to use javascript to pass the UTMs through from the submission, but not sure if that's possible.

I'm curious to understand the method in which to ensure GA tracking is maintained after the form submission.

Any tips?

Cheers

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

SanfordWhiteman
Level 10
July 11, 2017

We're using Drupal and wanting to use Drupal forms that submits a Marketo form via API.

I dearly hope you mean the Forms API and not another API.

When the form is submitted we can capture UTMs via hidden fields, but the UTMs are lost on the follow-up page and therefore makes it harder to manage GA conversion tracking. My thinking is to use javascript to pass the UTMs through from the submission, but not sure if that's possible.

Don't see what this really has to do with Drupal. The Marketo Forms API can forward UTMs (assuming you are also capturing those UTMs into Marketo form fields). See my answer here from earlier today: Using a token for a form follow up page

July 13, 2017

Thanks for your help, Sanford!