Alternate solution to replicate associate lead method between Segment and Marketo

trinanginvision
Level 1

Alternate solution to replicate associate lead method between Segment and Marketo

Hello, we've been relying on the Associate Lead method for dual post submission to pass a Vendor ID that associates track events from Segment with the lead. With the deprecation of the Munchkin Associate Lead Method, we've migrated to a backend form submission but the issue is the time the user gets created, we don't know the vendor ID until after the record is created and we can't associate track events with the lead. 

 

Our current set up is Webpage calls associateLead and save2 at the same time to create the lead. So we have a race condition where the associateLead call is coming from our Segment integration javascript on the page. We're trying to use Tray to put in a delay in the Segment events and we're thinking about sending identify calls through Tray as well as another stop gap.

 

Has anyone found a better solution in place of the associate lead method for Segment sending data into Marketo?