Loading...

UserView Installation

Iframes

Same domain iframes

UserView will work with iframes without you needing to do anything when these are hosted on the same domain. This means that the part of the url between :// and the first / is exactly the same (i.e. app.acme.com and dashboard.acme.com are considered different domains).

In this case, you only need to add the UserView script to the outermost frame (i.e. the parent page).

You don't need to do anything to make UserView work cross-domain if iframes aren't involved.

Different domain iframes

To make UserView work when you have iframes on different domains / subdomains, you'll need to add the javascript code snippet to all the iframes. This is the code you get from https://app.upscope.io/install.

The iframes will connect automatically.

Using the SDK

The code will behave differently in the iframe, and you can't use SDK within it.

That means that if you want to identify the user you'll need to do so in the outermost frame.