Ask coding questions

← Back to all posts
SyntaxErrors - Any have any advice ?
ChristianSierra (0)

Does anyone have any suggestions on why my code keeps coming back as

SyntaxError: Invalid or unexpected token
SyntaxError: missing ) after argument list

CBlockSurprise (17)

The first error comes from the Facebook Pixel Code (line 39). The second one comes from the document.writeln (line 66). On line 66, try replacing the document.writeln with this:

document.writeln('<noscript><img height="1" width="1" style="display:none" src=""/></noscript>');

I'm not sure of a fix for line 39. Maybe change the email and others to an object before, and add then it may work? Or don't have it on multiple lines? Hopefully, that would fix it.

Awesome site though!