SOLVED

Embed Form Code Automation

Go to solution
Level 1

Embed Form Code Automation

The October '20 release note mentions the following: 

Website Marketing 

  • Embed Form Code Automation: Acquire more leads with Marketo Engage forms embedded in your secured landing pages hosted outside of Marketo. The form embed code automatically updates to include the landing page domain name and eliminates manual work for web developers. Custom domain in the code link improves website navigation experiences and forms utilization.

 

I'm just wondering if anyone can explain this in greater detail. We have a few Marketo forms embedded on our website (not on a Marketo landing page) and it sounds like this update might help with reporting but I'm not entirely certain I understand it. 

1 ACCEPTED SOLUTION

Accepted Solutions
Marketo Employee

Re: Embed Form Code Automation

Instead of your form embed code set up to load directly from a Marketo subdomain

<script src="//app-sj01.marketo.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1"></form>
<script>MktoForms2.loadForm("//app-sj01.marketo.com", "123-ABC-456", 1);</script>

 your embed code will be updated to whatever is set up as your primary CNAME in your instance (if your domain is secured with SSL)

<script src="//your.domain.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1"></form>
<script>MktoForms2.loadForm("//your.domain.com", "123-ABC-456", 1);</script>

Note this doesn't update wherever you're using the embed code, it just updates what the UI presents to you. You would still need to review wherever you're using the old embed code and update it to the new one.

 

It shouldn't have any impact on reporting, but it should help deal with adblockers targeting Marketo resources in some circumstances.

View solution in original post

1 REPLY 1
Marketo Employee

Re: Embed Form Code Automation

Instead of your form embed code set up to load directly from a Marketo subdomain

<script src="//app-sj01.marketo.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1"></form>
<script>MktoForms2.loadForm("//app-sj01.marketo.com", "123-ABC-456", 1);</script>

 your embed code will be updated to whatever is set up as your primary CNAME in your instance (if your domain is secured with SSL)

<script src="//your.domain.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1"></form>
<script>MktoForms2.loadForm("//your.domain.com", "123-ABC-456", 1);</script>

Note this doesn't update wherever you're using the embed code, it just updates what the UI presents to you. You would still need to review wherever you're using the old embed code and update it to the new one.

 

It shouldn't have any impact on reporting, but it should help deal with adblockers targeting Marketo resources in some circumstances.

View solution in original post