Onebox displaying JavaScript embed code

I’ve not seen this happen before. A onebox displaying the embedded markup for Google analytics instead of body text.

Is there a workaround? I believe the site it is on is a Squarespace site.

Their OG Description tag isn’t set correctly (that’s how the body text is determined), if you view source here’s what it contains:

<meta property="og:description" content="&amp;lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;!-- Ad 1 --&amp;gt; &amp;lt;ins class=&quot;adsbygoogle&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp;style=&quot;display:block&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp;data-ad-c"/>

This can also be seen in the Open Graph validator: Sharing Debugger - Facebook for Developers

Maybe send an email to the person who maintains that site and let them know? There’s not much else to be done.

5 Likes

Thanks for the debugger info. It pinpoints the problem. I will pass that on to their website maintainer.

2 Likes

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