Conversion Tracking for Marketo Lead form Submission

Hello!

I have a marketo (3rd party) lead form embedded on several of my builder.io pages and am currently still missing conversion tracking. I have the conversion event in GA, but now that I want to start running A/B tests, I would love to have this tracking in builder.

I am not technical but am wondering if it is as simple as dropping the builder.trackConversion() tag into javascript of the thank you page or if there is a more elegant way to do it.

Fundamentally: Is there a simple way to set up conversion tracking for 3rd party integrated lead forms on builder pages to inform the A/B optimization? Note this is NOT a shopify store.

Tech stack is ReactJS app integrated with Builder.io

I have read this article and this article but haven’t quite figured it out yet.

Thank you for your help!

Hey @lspethmann,

Could you clarify what “conversion tracking for 3rd party integrated lead forms” means for you?

Thanks,
~Logan from Builder.io

Hey Logan, thank you for the quick reply.

Basically I want to be able for builder to recognize when a lead form (via the custom component my developers created - screenshot attached) is submitted on a given page and that that shows up as a conversion via the insights dash. (Screenshot attached)


Let me know what other info I can provide! Thank you

Thanks, @lspethmann!

If your dev team is able to customize the code that runs when the “Get Started” button is pushed and the form is successfully submitted, that’s a great time to run builder.trackConversion(). If you don’t have access to the action of the button, it’s a great idea to redirect users to a page that automatically tracks the conversion as soon as they arrive.

It really is as simple as calling the method in the React Application!

Hey Logan! Super useful!

We have a thank you page setup in builder so would it suffice to run the builder.trackConversion()script there right?

This should resolve ensuring that the insights tab counts conversions whenever someone lands on the thank you page, no matter where the event is coming from correct? Will it in the case that we do it through the thank you page know which variant the conversion was directed from?

Best,

Laurens

This should ensure that the insights tab counts conversions whenever someone lands on the thank you page, no matter where the event is coming from correct?

  • Yes!

Will it in the case that we do it through the thank you page know which variant the conversion was directed from?

  • builder.trackConversion() will track a conversion for the page entry it is running on. There’s not currently a way to pass in data that references a previous page or referral page, but you are welcome to request that at Builder.io Ideas. I would recommend finding a way to run builder.trackConversion() on the variant if you need that data associated with the variant.