Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
Hmm. Would you know if I could fire a tag in Google Tag Manager with an successful form submission instead of hardcoding the pixel?
What timing. I just noticed that and was just about to fix it. I can throw a pixel fire in there too correct? Something like: MktoForms2.loadForm("//app-ab00.marketo.com", "785-UHP-775", 1057);MktoForms2.whenReady(function(mktoForm) { mktoForm.onSuccess(function(values, followUpUrl) { dataLaye...
I think I may have figured out my own question...I think. did a little digging and it looks like this is the code they are using on the page to show the thank you message.
Yes. The Forms 2.0 API is what I was referencing. That code, which is what you helped me with in the linked message, was what I intended to use until the Marketo team switched things up. Now they do not refresh the page but just show a 'Thank you' message when the form is submitted. I'm trying to fi...
The original post is here.https://nation.marketo.com/t5/Product-Discussions/How-to-track-Marketo-forms-in-Google-Analytics-using-using-API/m-p/305735 Originally we were doing a page refresh with a form submission but working on moving over to leveraging the API to trigger a conversion event on a suc...
Excellent! Thanks. Pardon this non-programmer question but is there any significance to the naming convention? For example could:marketo.form_id be simplyform_id
Ok. So if I go the route of adding through a push I need one more line of code such as: "marketo.form_url": document.location.href
Would this be better than say using {{Page URL}} as the label in the GTM/GA tag for the event?
Sorry for the late reply. Now, if we use the same form on multiple pages I imagine there is probably a way to push some additional data to the dataLayer that would indicate which page the form was on. Correct? is there a best practice to do something like this?
Sorry for the delay. The goal would be to track successful form submissions in Google Analytics