HTML iframe
Below are the SDK docs for passive data collection using an iframe and raw HTML/JS
Prerequisites
-
Understand what the sdk does
-
Get an innerworks project ID
Invisible iframe
This is a very lightweight integration that simply requires you to include an iframe component in the body of the page you want to run the data collection. This is shown below. There are two options you need to be aware of.
-
projectId
- This is the project id you have been given by Innerworks. -
detectionType
- This outlines the kind of detection, eithervpn
,fingerprint
, orbot
.
Callback
Since the data collection runs in the background of a page, you must ensure that the iframe remains open while data is being collected. For a home page or dashboard page this is not an issue, but for a short-lived page such as a loading page or a splashscreen you may want to ensure that it only closes once the Innerworks data collection has completed. To do this, we provide a callback function:
Remember to include the code in your page.