Skip to main content

iFrame Usage

Now you are ready to retrieve the IFrame code snippet and put it to use.

Retrieve iFrame code

Generate the code snippet in app settings and copy this as you will need it in the next step. Docusaurus

Append Unique User Id

When presenting the iFrame to your users, you will need to append a unique user id to the link for each user. Add &app_uid={your_unique_id} to the end of the src url of the iFrame from the previous step.


<iframe src="" style="border: 0; width:400px; height:800px;"></iframe>

Provide Custom Tracking Data

If you would like to provide custom data into the link and receive that via Server callbacks, you can add &session_uid={your_custom_data} to the end of the iFrame source link and this value will be returned via SessionId on the Server callback. This value accepts only alphanumeric characters + underscore and dash. We recommend using a url safe base64 encoding approach when passing in custom data.

Setting Up a Test User

We highly recommend adding a test user via the Test Users tab, which will enable Test Surveys for that user and ensure surveys are available during testing. This is the best way to test the inBrain flow. The value you provide for the test user is what you should use for app_uid when testing.


Before Going Live

Make sure to click Go Live in the publisher dashboard before presenting the iFrame to your users.