Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Uncaught SyntaxError: Unexpected token ‘<'

  • #8129
    Avatar photo[anonymous]

    Hey there, Whenever I accept my cookies I get this error in the console. I am using technews template. If anyone could shed some light it would be helpful. My blog can be visited by clicking here

    The error I’m getting can be viewed here

    #8130
    Avatar photo[anonymous]

    Hi,

    You have a bug in your GTM code – are you using Google Analytics plugin or did you embed it by yourself?

    If you are using  Google Analytics plugin for Publii – please make sure that your custom code option does not contains script tags – because your current problem looks like script tag inside script tag.

    #8131
    Avatar photo[anonymous]

    Oh, ye I was indeed putting a script tag inside a script tag. Its fixed now, Thanks 🙂