Code: Select all
<__script__>
I assume this is a deliberate restriction, so should I be creating a new Template to add the Survey code, or is there another way?
Thanks in advance!
Code: Select all
<__script__>
Hello RolfRolf wrote:Disable wysiwyg editor in options tab
Add {literal} tags around the code
Code: Select all
<__script__>(function(e,t,s,n){var o,c,i;e.SMCX=e.SMCX||[],t.getElementById(n)||(o=t.getElementsByTagName(s),c=o[o.length-1],i=t.createElement(s),i.type="text/javascript",i.async=!0,i.id=n,i.src=["https:"===location.protocol?"https://":"http://","widget.surveymonkey.com/collect/website/js/YEwZziOY4TOOIOrs3w90KWL_2BjsYP46eBSZoBg1ZlD_2BInDs_2BipLji0uVZDFPeMqXc.js"].join(""),c.parentNode.insertBefore(i,c))})(window,document,"script","smcx-sdk");</__script>
I tried the Page Specific Metadata as suggested and it did not work, but now I have added the code into the "Smarty data or Logic specific to this page", and it works.velden wrote:Is the code allowed to be in the head section of the html?
If you used the {metadata} tag in the template consider put this code in the 'Page specific metadata' field on the Options tab of your page.