# Conversion Tracking for Marketo Lead form Submission

**URL:** <https://forum.builder.io/t/conversion-tracking-for-marketo-lead-form-submission/2392>\
**Category:** CMS\
**Tags:** react\
**Created:** [July 18, 2022, 9:32pm UTC](https://forum.builder.io/t/conversion-tracking-for-marketo-lead-form-submission/2392 "2022-07-18T21:32:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lspethmann](https://avatars.discourse-cdn.com/v4/letter/l/db5fbb/32.png) [@lspethmann](https://forum.builder.io/u/lspethmann)\
**Post date:** [July 18, 2022, 9:32pm UTC](https://forum.builder.io/t/conversion-tracking-for-marketo-lead-form-submission/2392/1 "2022-07-18T21:32:04Z")

</div>

Hello!

I have a marketo (3rd party) lead form embedded on several of my [builder.io](http://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](http://Builder.io)

I have read [this article](https://www.builder.io/c/docs/conversion-tracking) and [this article](https://forum.builder.io/t/tracking-conversions-for-a-b-test/214) but haven’t quite figured it out yet.

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![logan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/logan/32/5564_2.png) [@logan](https://forum.builder.io/u/logan)\
**Post date:** [July 19, 2022, 2:30pm UTC](https://forum.builder.io/t/conversion-tracking-for-marketo-lead-form-submission/2392/2 "2022-07-19T14:30:57Z")

</div>

Hey @lspethmann,

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

Thanks,  
~Logan from [Builder.io](http://Builder.io)

---

<div class="post-metadata">

**Author:** ![lspethmann](https://avatars.discourse-cdn.com/v4/letter/l/db5fbb/32.png) [@lspethmann](https://forum.builder.io/u/lspethmann)\
**Post date:** [July 19, 2022, 2:56pm UTC](https://forum.builder.io/t/conversion-tracking-for-marketo-lead-form-submission/2392/3 "2022-07-19T14:56:29Z")

</div>

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)

 ![Screen Shot 2022-07-19 at 10.55.25 AM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/3/3e305630fb4a6ec5ff27b41020bbbb368f3f2361.png)  
 ![Screen Shot 2022-07-19 at 10.55.54 AM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/f/f7e5e895c38628028db1d109e61eed4e57758de6.png)

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

---

<div class="post-metadata">

**Author:** ![logan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/logan/32/5564_2.png) [@logan](https://forum.builder.io/u/logan)\
**Post date:** [July 19, 2022, 7:11pm UTC](https://forum.builder.io/t/conversion-tracking-for-marketo-lead-form-submission/2392/4 "2022-07-19T19:11:08Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![lspethmann](https://avatars.discourse-cdn.com/v4/letter/l/db5fbb/32.png) [@lspethmann](https://forum.builder.io/u/lspethmann)\
**Post date:** [July 19, 2022, 9:44pm UTC](https://forum.builder.io/t/conversion-tracking-for-marketo-lead-form-submission/2392/5 "2022-07-19T21:44:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![logan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/logan/32/5564_2.png) [@logan](https://forum.builder.io/u/logan)\
**Post date:** [July 20, 2022, 4:44pm UTC](https://forum.builder.io/t/conversion-tracking-for-marketo-lead-form-submission/2392/6 "2022-07-20T16:44:24Z")

</div>

_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](https://ideas.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.
