Jump to content

Page builder preview not displaying correctly after Media.net code injection

Recommended Posts


I'm trying to use ads from Media.net on my site to generate some income.

For the ads to be able to display, Media.net requires me to add the following custome code to my site header using code injection:

<script type="text/javascript">
window._mNHandle = window._mNHandle || {};
window._mNHandle.queue = window._mNHandle.queue || [];
medianet_versionId = "3121199";
<script src="https://contextual.media.net/dmedianet.js?cid=8CUY1287I" async="async"></script>

However, after injecting this piece of code, my pages don't display properly in my Squarespace page builder. It does still display correctly in the live version though. The attached image shows what appears when I try to open a page in the site builder. As you can see, it seems like the page is only displayed in the header part of the page. The weird thing is though that sometimes it does display correctly, and sometimes it doesn't.

Does anyone have experience with this issue, know what the cause is and how to fix it?

Thanks in advance!


Untitled (1).png

Link to comment
  • 7 months later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 1/16/2021 at 2:02 AM, Aud02 said:

this is happening to me as well. did you get this figured out?

Can you share site url? We can check easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

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

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.