Hey all,
Is it possible to embed javascript code into the of the page using a CMS Collection to dynamically add it in?
I’ve tried the following methods from this forum and none are working:
-
Added the full script including the .
-
Added an embed field onto the page and pulled Tracking Code A into the embed field.
-
Added a rich text CMS Collection item called “Tracking Code C”. Added a Rich Text field onto the page and pulled the content from the CMS collection.
In ALL options, Webflow encoded the value of the embeds.
Here was my original code:
<script>prefinery=window.prefinery||function(){(window.prefinery.q=window.prefinery.q||[]).push(arguments)};</script>
<script src="https://widget.prefinery.com/widget/v2/cdmokyya.js" defer></script>
Here is what happens to the code after publishing:
<script>prefinery=window.prefinery||function(){(window.prefinery.q=window.prefinery.q||[]).push(arguments)};</script><script src="https://widget.prefinery.com/widget/v2/cdmokyya.js" defer></script>
Here is a video showing all steps taken:
https://www.loom.com/share/400641e3b96a46b89e40a8ccfb296679
What can I do? Thank you so much in advance for your help!