Jump to content

Syntax error when adding Facebook Pixel to the HEAD section

Recommended Posts


I have a problem with adding Facebook Pixel Code to my PS head section. Adding pixel causes fatal error. There is some problem with syntax... it looks like that:

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/shop/themes/default-bootstrap/header.tpl" on line 86 "{if(f.fbq)return;n=f.fbq=function(){n.callMethod?" - Unexpected ".", expected one of: "","" , ")" <-- thrown in /shop/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 86

I was trying to turn off HTLM minifer, clear cache etc. nothing helps. I think the code compiler can't understand this new Facebook pixel syntax, or something like that. Any ideas how to fix that?

Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...