Hi
I am not a developers, but my developers are facing issues embedding a script on a single CMS page.
The script is for gamification and is suppossed to show a "Choose the right pillow test"
<script id="_ss_11467">
(function(w,d,s,l,r,a,m){
if(d.getElementById(r))return;
w[r]=w[r]||{};a=d.createElement(s),m=d.getElementsByTagName(s)[0];
a.async=1;a.src=l;a.id=r;m.parentNode.insertBefore(a,m);
})(window,document,'script','https://cdn.scratcher.io/embed/11467.js','Scratcher_11467');
Scratcher_11467.options = {
slug: 'vaelg-den-rette-hovedpude-for-dig',
width: '100%',
height: 1100,
};
</script>
It does not work. I believe the script is supposed to be on the body of the CMS page. Any guidance?
Thanks
<head> <script src="Vendor_Extension::js/custom.js"/> </head>
I think the problem lies in the path https://cdn.scratcher.io/embed/11467.js
You should download the JS files and put them in the web/js of theme
Then change the http path to the filename