AnsweredAssumed Answered

Marketo forms in single page applications - incorrect referrer

Question asked by Junnu Ekman on Jun 13, 2019
Latest reply on Jun 13, 2019 by Sanford Whiteman



My colleagues and I have run into an issue with Marketo forms on our website.



Our website is a so-called "single page application", which means that when a user navigates between pages, there isn't a "normal" page load, but the URL just changes and the content is replaced.



This causes the issue that when a user fills out a form on page A and navigates to page B to fill out another form, on both times the submitted "_mktoReferrer" is the URL of page A. In Marketo, this incorrectly indicates that the forms were filled out on the same page.


(It used to be so that the Marketo forms' "base script" (forms2.min.js) was loaded immediately on the first page of the session, which caused even more issues referrer issues, but this has now been changed to load the script only when a separate "form module" is opened [= forms are loaded into a "lightbox" only when a user clicks certain CTA elements.])



Has anyone else come across with this kind of an issue? Were you able to solve the problem? I would be very grateful for any advice!


Best regards,

Junnu Ekman