...
Make a backup of the existing extra-script.
Remove the
document.write(`
at the top and the`)
at the endRemove all HTML comments (e.g.
<!-- Google Tag Manager -->
) OR convert them into JavaScript Comments: (e.g.// Google Tag Manager
)Remove the
<noscript>
sectionsChange the way external
<script>
s are called:From:
<script src="[some URL]"></script>
To:
Code Block var script = document.createElement("script"); script.src = [some URL]; document.head.appendChild(script);
If the original call included an
async
tag change it like this:From:
<script async src="[some URL]"></script>
To:
Code Block var script = document.createElement("script"); script.src = [some URL]; script.async = true; document.head.appendChild(script);
Move the content of the
<style>
test into the extra-style textarea (ommiting the<style>
tag itself)Remove the remaining
<scipt>
and</script>
tags, keeping the content.Save and test your changes