Marvin Live Intercept helps teams collect feedback in the moment by launching an AI interviewer while they are exploring your website or product.
To connect Marvin Live Intercept, you need to add a code snippet to your website or product’s code.
Code snippet to connect Live Intercept to your domain
Access your website's code or content management system. Copy and paste this snippet right after the opening <head> tag, in the code of every page of your website*.
*Make sure that only one snippet is added per page.
<script
src="https://app.heymarvin.com/in-app-interviewer-loader.js"
data-target-id="4be5f57c-4305-4ade-8735-8309a4cd1941"
data-origin="https://app.heymarvin.com">
</script>
Save changes and clear cache for the changes to reflect. Marvin Live Intercept should be connected to your website or product now.
Once the domain is successfully connected, let your Marvin admin know. They should be able to see it in the list of domains while setting up a new Intercept.
Collect user details through Live Intercept
Please add this code after the base snippet to collect user/participant data. The name and email are used to pre-fill and bypass the interview lobby.
window.MarvinIntercept.identify({
user_id: "{{user_id}}",
name: "{{name}}",
email: "{{email}}",
});
user_id, name, and email are static parameters and should not be edited in the code. Mention the corresponding fields in your data in the {{ }}.
Collect custom metadata
To gather and pass custom parameters, such as role, or company, use the following code. You can use these additional attributes about to target specific users or filter interviews by segment.
Add the parameter and the corresponding field in your data for values.
window.MarvinIntercept.setCustomParams({
{{param1}}: "{{value1}}",
{{param2}}: "{{value2}}",
{{param3}}: "{{value3}}",
});
For example,
window.MarvinIntercept.setCustomParams({
plan: "pro",
company: "Acme",
company_size: 200,
});
That's it! Your domain should now be connected to Marvin Live Intercept. For any questions or guidance, please write to us at [email protected].
