Push Marketo form data to AEP data layer | Community
Skip to main content
Level 2
January 10, 2025
Solved

Push Marketo form data to AEP data layer

  • January 10, 2025
  • 1 reply
  • 787 views

Hi,

Good morning/evening,

 

I want to send Marketo form data to AEP data layer and from there CJA will consume that data for form analytics reporting.

Currently we have implemented this solution and we are able to pass following parameters

form action, 

form name, 

error field, 

error count 

form start

form submit count

The problem here is we are not able to send the form name, instead we are sending form id. Can anyone help me how to send form name data. I checked all the MktoForms2 Methods, but there is nothing about form name.

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

There’s no built-in way to get the Form Name.

 

You can switch from loadForm() to newForm() and fetch the descriptor yourself, which lets you read the name — but that’s a major dev lift.

 

Alternately, you can simply side-fetch the descriptor over JSONP and read it. Very easy to do code-wise, but creates a redundant HTTP request and is a bit sloppy IMO.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
January 10, 2025

There’s no built-in way to get the Form Name.

 

You can switch from loadForm() to newForm() and fetch the descriptor yourself, which lets you read the name — but that’s a major dev lift.

 

Alternately, you can simply side-fetch the descriptor over JSONP and read it. Very easy to do code-wise, but creates a redundant HTTP request and is a bit sloppy IMO.

Level 2
January 14, 2025

Thank you so much for your response. I know its tough to implement but will definitely try to implement below solution.