Streaming live at 10am (PST)

Ability to use NOSCRIPT tag in custom code

Hi, I am getting an error on the following portion of FB’s pixel script when trying to place FB pixel in header - I remember reading somewhere on these forums that Webflow doesn’t handle these noscripts well - what would be the equivalent code in a webflow-friendly format? Thanks!



Try adding custom code using the custom code area or embed component:

I am using the custom code area…

Remove new lines (enters) at the end of each line. I’m 100% sure that’s the case :)

That did not solve the issue

I have the same problem! Hope someone knows what to do?

hi @josh_elkin

Try this:

<!-- Facebook Pixel Code -->
fbq('init', '982578691793703');
fbq('track', "PageView");
<script language="JavaScript">
document.writeln("<noscript><img height=\"1\" width=\"1\" alt=\"\" style=\"display:none\" src=\""" /></noscript>");
<!-- End Facebook Pixel Code -->

Epic bump! The writeln does NOT work – Although Webflow accepts it, Pixel warns me that the code isn’t active!

Hi @Dylan_Hunt, thanks for the post. At the moment, the noscript tag is not supported in the code editor. The best thing to do is to just leave it out completely.

Leaving the noscript tag in the custom code, and using document.writeln will work to save the code, but will have no effect on the page.

That code is just saying, "if there is no support for javascript in the browser, then display the link “

I hope this helps!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.