You can upload it into your standard Marketo assets. Create a folder like "HTML" (although the folder doesn't actually affect the URL path).
When I say "create a behavior + origin" that's CloudFront-speak. You don't need to use CloudFront or another CDN for this if your pages are all regular http: or if your Marketo LP domain(s) have an SSL cert installed so they work over https:. You need a CDN if your pages are secure but your Marketo LP domain is not.
Hi Sanford,
Thank you for getting back to me so quickly. I'm using pretty much exactly the same code you put in your codepen.
I'm getting a "Subscriber 'OUR CODE' is not valid," error and the form are not loading. The forms work when we use regular Marketo loadform calls. Any thoughts?
Thank you again.
Please post the URL to your working and non-working pages.
Hi Sanford,
First off, thank you for this codepen. I have been looking for weeks for a solution to the Firefox private browsing issue. I uploaded the file to our instance, changed the loadform to our instance that is SSL encrypted and not on Marketo servers, and it is working like a charm. Thank you so much for doing this and being a part of the community. Will upload URL after we post live, but wanted to say thank you.
Great! This is a pesky problem, but it's good we can work around it without being too crazy (although I think most Marketo users would be scared off, so my hat's off to you for going through with it).
Hey Sanford Whiteman, thanks for posting this solution. I tried using your code and was able to get the form to load in Firefox with do not track on. However, the form itself hangs and doesn't submit. Does anything about my code below look off?
HTML:
<script src="//go.bandwidth.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1821" class="mktoForm"></form>
JS:
MktoForms2.setOptions({
formXDPath:"//go.bandwidth.com/rs/381-NQJ-981/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//app-sjp.marketo.com", "381-NQJ-981", 1821);
Post a link to an example URL.
If you run the code I posted in CodePen, and try submitting the form there, it does the same as well.
You forgot to run loadForm with your LP domain -- that's what sets the base for the XDFrame.
See this Pen.
Screenshot of FF 52 Private Window + Tracking Protection: