Javascript Embed Question

Hey All,

I am starting the development of a site that uses embedded scripts from CNET to display syndicated manufacturer information. I have been able to get the other scripts working fine but the one at this page is giving me some issues.

Below is the script they have provided as well as the link to a test page I have been trying to test it on.

Thanks for any help in advance!

https://preview.webflow.com/preview/code-embed-220?utm_medium=preview_link&utm_source=designer&utm_content=code-embed-220&preview=066f60a8d2dfc5453a8130450cb179db&pageId=5e15c674fa5548e86e01c82f&mode=preview

<!DOCTYPE html>

<html>

   <head>

      <meta charset="utf-8">

      <title>Example Page</title>

   </head>

   <body>

      <div id="ccs-brand-showcase"></div>

 

<!-- New Brand Showcase Lenovo -->

 

<script type='text/javascript'>

var ccs_cc_args = ccs_cc_args || [];

(function () {

   var o = ccs_cc_args; o.push(['_SKey', '09abcf4b']); o.push(['_ZoneId', '9d4ffef9b7']);

   var sc = document.createElement('script'); sc.type = 'text/javascript'; sc.async = true;

   sc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + '[cdn.cnetcontent.com/jsc/h.js](http://cdn.cnetcontent.com/jsc/h.js)';

   var n = document.getElementsByTagName('script')[0]; n.parentNode.insertBefore(sc, n);

})();

</script>

   </body>

</html>

Here is my site Read-Only: LINK
(how to share your site Read-Only link)

hello, you will need to drop the head content in the head custom code area

<meta charset="utf-8">
<title>Example Page</title>

then the body part inside a webflow embed component in your layout

<div id="ccs-brand-showcase"></div>

then your javascript function inside the custom code section before the end of the </body> tag

<script>
var ccs_cc_args = ccs_cc_args || [];

(function () {

   var o = ccs_cc_args; o.push(['_SKey', '09abcf4b']); o.push(['_ZoneId', '9d4ffef9b7']);

   var sc = document.createElement('script'); sc.type = 'text/javascript'; sc.async = true;

   sc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + '[cdn.cnetcontent.com/jsc/h.js](http://cdn.cnetcontent.com/jsc/h.js)';

   var n = document.getElementsByTagName('script')[0]; n.parentNode.insertBefore(sc, n);

})();
</script>
1 Like

Thanks for your help. I will give it a shot.

I followed your instructions and still having issues. Did I implement it correctly?