Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the error 'Unable to parse JSON-LD tag. Malformed JSON found' #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

petermann
Copy link

This pull request fixes the JSON-LD parsing error in the script, which was causing the error "[Meta Pixel] - Unable to parse JSON-LD tag. Malformed JSON found:" in the browser console and reporting as "Invalid escape sequence in string" in the Google Search Console.

Browser Console
Browser Console

Google Search Console
Google Search Console

I replaced the code that was causing the error with a corrected version that follows best practices for formatting and generating JSON-LD.

This fix is important to ensure that the correct information is being transmitted to search engines and other systems that consume JSON-LD. Additionally, the proper formatting of JSON-LD improves accessibility and content indexing by search engines.

Please review the changes.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants