Initial integration
Embed Plug-in

Embed in web app

Introduction

This page describes how to integrate the plug-in within your website and get started performing health scans.

Document image


Prerequisites

Make sure you're able to obtain a valid plug-in URL, by following the explanation in our Plug-in URL page.

IFrame HTML Component

Now that you've obtained a valid plug-in URL, the web application can be embedded in your website by loading it into an iframe HTML component. An iframe or inline frame is used to embed another document within your current HTML document.

Add the IntelliProve to your website as follows. Take into account the additional attributes, which are further described below.

html


Camera Access

Our Face Scan requires access to the device's camera. Make sure the allow="camera" attribute is added to the iframe HTML tag.

<iframe src="your_webplugin_url" allow="camera"></iframe>

When the user first visits your website, the site will request permission to use the user's camera. If the user doesn't grant permission, a pop-up is shown indicating that a measurement cannot be started. The user is then presented with two options:

  • They can click the try again option, in which case the permission is requested again through a modal.
  • They can click continue. In this case, a message event of the type UserFinished is sent to you. You can use this to handle this situation as you desire. For example, you may redirect the user to an information page explaining how the health scan works, or to your homepage. For more information, refer to Message events.



Document image


Minimal Dimensions

The intelliProve plug-in solution consists of three main pages: the welcome page, the onboarding page and the measurement page

It’s important to understand that each of these pages may require different optimal height and width settings. Below are some recommendations to help you optimize these settings.

Document image


Welcome and onboarding page

Below a certain available height, there may be insufficient space available for the welcome and onboarding page to display al content, which may result in a double scroll bar (scroll bar within the iframe). This can be undesirable for users. To prevent this, set the iframe’s screen height to 100% and make sure the containing element has enough height to display all the content in the iframe. The required height will vary based on the selected width. This will ensure that all text and action buttons are fully visible without triggering an extra scroll bar.

HTML


The welcome page has minimum dimensions. If these dimensions are not met, the screen will not display. Consider these carefully when designing the area for the plug-in.

Minimal Width: 300px

Minimal Height: 500px

Measurement page

It's important that the measurement page is fully visible to the end user. If the settings aren’t configured correctly, the user may miss the instructions at the top or fail to see how to start the measurement.

To set the height of the measurement page independent of the welcome page, use the post message startNewMeasurement sent when the user clicks on the corresponding button on the welcome page. Use CSS styling and set the height so that it dynamically adjusts to the view height of the user screen. An example is given below.

HTML


The welcome page has minimum dimensions. If these dimensions are not met, the screen will not display. Consider these carefully when designing the area for the plug-in.

Minimal Width: 300px

Minimal Height: 500px

Optional CSS parameters

To seamlessly embed the iframe in your HTML code, add additional styling parameters to the iframe HTML tag.

HTML

Keep in mind: the web plug-in's temporary behaviour implies that the iframe's src attribute should be set from the JS code dynamically.

Result

Once the iframe HTML component is added to your HTML document and configured with a valid URL, you're ready to perform your first measurement!

Document image

Document image


Next steps

1. Determine the intended use case and user flow and display the results

  • Head to our Fetch and visualise insights page. This includes things like:
    • Establishing communication between your own app and the plug-in. This may be useful to track the user's progress within the plug-in, or to obtain the results in JSON format for further analysis or linking actions.
    • Visualizing the results for your users.

2. Customization

  • To allow for seamless integration of the plug-in in your website, matching your brand's colours and fonts, please visit our Customisation documentation.