JS API/Activity Log | Community
Skip to main content
Human-Decode
Level 2
July 16, 2024
Question

JS API/Activity Log

  • July 16, 2024
  • 1 reply
  • 2236 views

Hello Marketo Community,

 

I hope this message finds you well.

 

I am currently working on integrating Marketo using its JavaScript API, specifically through the method submit as described in the API reference (https://developers.marketo.com/javascript-api/forms/api-reference/). My goal is to track and debug form submissions.

 

I would like to know if there is an interaction log accessible from the Marketo dashboard that records form submissions and any associated errors. Having access to such logs would greatly assist in diagnosing and resolving any issues that arise during the submission process.

 

If such a log does not exist, is the only way to register errors by using the onError callback and implementing our own logging platform? Any insights or recommendations on the best practices for this would be greatly appreciated.

 

Thank you in advance for your assistance!

 

Best regards,
Javi from Human Decode

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

1 reply

SanfordWhiteman
Level 10
July 16, 2024

It would be better if you defined in full detail what you’re trying to do when onSubmit is fired. onSubmit fires before anything is put on the wire, and any onSubmit listener can abort submission.

 

The Marketo Activity Log records successful form fills, including the original form data. By definition, it can’t record form posts that never happen, and malformed payloads are also not reflected since they would not be allowed to update leads. (Note that a form submission may not update any lead fields; an existing person whose fields are all blocked from updates will have a Filled Out Form activity but no other effects.)

Human-Decode
Level 2
July 16, 2024

Hi Sandford,

 

Thank you for your response.

 

To provide more context, this issue is occurring with a Marketo integration in Unbounce. The problem we're facing is that some leads are not being sent to Marketo despite the Unbounce form submission being successful.

 

The onSuccess callback fires without any issues, and our Marketo implementation seems correctly configured. However, since this issue is intermittent, it has been challenging to diagnose the exact cause.

 

I understand that the Marketo Activity Log only records successful form fills and does not capture malformed payloads or form posts that never happen. Given this, I'm looking for any way to obtain more detailed logs or records of form submission errors. This information would help us identify why some submissions are not being processed correctly and allow us to compare these instances against Unbounce lead reports.

 

I've implemented my own error handling based on your article Adding a Network/Server Error Handler to Marketo Forms, and we will probably use this to log issues into another platform. However, I would like to know if Marketo provides tools to capture such information directly, so we don't have to rely on a third party unnecessarily.

 

Any guidance or suggestions on how to capture this information would be greatly appreciated.

Thank you for your assistance.

 

Best regards,
Javi

SanfordWhiteman
Level 10
July 16, 2024

Are you saying you have directly observed a situation in which the onSuccess fires yet no Filled Out Form activity is logged on any Marketo lead? That’s effectively impossible unless there’s a widespread outage. And not sure why logging in onSubmit or onError would help you there: if there’s an onSuccess, that tells you when something was attempted and what data was posted.

 

What code are you using to integrate with Unbounce and are you 100.00% sure it doesn’t have a race condition that causes it to simply not fire at all under some circumstances (i.e. there isn’t actually an onSuccess).