-
-
Save courtnEMAIL/e19116bf9f723a46c905811dae87df31 to your computer and use it in GitHub Desktop.
Set Marketo fields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MktoForms2.loadForm("//app-sjXX.marketo.com", "XXX-XXX-XXX", formID, function(form) { | |
| var myUTM = your_utm_function(); // This function is your custom logic to retrieve the user's UTM codes. | |
| form.setValues({ | |
| "utm_source": myUTM.source; | |
| "utm_campaign": // etc etc | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment