I'm somewhat new to marketo and I can get my form to show up using the embed code but im also trying to include a program ID as well.
Marketo tokens ({{lead.tokens}}, {{my.tokens}}, {{program.tokens}}, etc.) only work on Marketo LPs.
If you use my de facto standard Pre-Fill JS, you can use that to import tokens into a non-Marketo page if you want.
Is it possible that this is what's being done here? https://fiscalnote.com/whitepapers/local-legislation-for-covid-19
they seem to be attaching the programID to the div. This is currently on our site, but not something i created, it was a previous person.
That data- attribute is statically added to the <div> on the server side. I have no idea where it comes from but probably hard-coded in the CMS. It's not being read in the browser.
Is hardcoding it a good option? It's going to be a registration form basically replacing one like this https://pages.fiscalnote.com/WBN-2020-04-15-1433-AdvocacyandLobbyingBestPracticesduringCOVID-19_LP-R...
the form ID wont change but the program ID will change for every event.
Is hardcoding it a good option? It's going to be a registration form basically replacing one like this https://pages.fiscalnote.com/WBN-2020-04-15-1433-AdvocacyandLobbyingBestPracticesduringCOVID-19_LP-R...
Good? I don't know, depends on how often you need to set one up.
There's a natural capacity for human error since the CMS isn't going to know if the Program ID is valid. But it may be totally fine as long as you strictly copy-and-paste from marketo.
Ideally the CMS devs could even let you paste a whole Marketo URL, then parse out the ID (it's always consistently formatted, like in https://app-sj01.marketo.com/#PG4395A1 it's the first sequence of contiguous digits in the hash = 4395) so you wouldn't have to clip it out.
I definitely dont mind the cutting and pasting, I'm just not certain what I would be cutting and pasting exactly. Now does knowing the url to the program help me generate the actual form?
The URL above was copied from the browser when I had the Program focused in the Marketing Activities tree.
The Program ID is in the URL, in the position I described: first sequence of digits.
This isn't about the Form ID, you said you were sharing a global form.
If you're invested in Marketo and your CMS, you can customise your CMS and add widgets that call the Marketo API to get the data you need.
Do you have any examples of this from wordpress?