How to diplay Marketo forms on AEM published pages?

Andrew
Level 1

How to diplay Marketo forms on AEM published pages?

I have no issues when viewing the form in the author but the forms does not show when viewing published pages.
 
- In both author and publisher, I have configured the Marketo settings. (in both cases, the settings is stored in this path: /conf/myapp/settings/cloudconfigs/Marketo)
- I looked around ACS-commons and found this piece of code: . In author, ${configMgr} is not null while in the publisher, it is null. This seems to be the problem but unsure why this is happening.
- I looked at the publisher logs but nothing obvious is showing up.
 
Any ideas on how to fix?? Thanks