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.
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.