Skip to main content

What does the Javacript in the SquareOffs embed do?

The SquareOffs iframe embed includes one line of Javascript. Here's what it's for ...

Written by SquareOffs Support

SquareOffs technology is delivered via an iframe embed, which is essentially a window hosted by SquareOffs that appears within the publisher’s website. Due to standard web browser security (same-origin policy), this iframe cannot access any JavaScript variables, DOM elements, or video player data from the parent page.

The SquareOffs embed is typically accompanied by a single line of JavaScript (embed.js) that serves a few limited purposes:

  • Automatically adjusting the iframe height to fit its content

  • Tracking whether or not a user is logged in and display around that

  • GPC Plugin Opt Out (Global Privacy Control)

Importantly, SquareOffs does not track video viewing behavior (such as play, pause, or completion) from the publisher’s page.

Did this answer your question?