What is Marvin Live Intercept?
Marvin Live Intercept helps teams collect feedback in the moment by launching an AI interviewer while they are exploring your website or product.
How do I connect Live Intercept to my website or product?
You need to add the code snippet shared by your Marvin admin to your website or product’s code. If they haven't shared it with you, they can follow these instructions to locate and share the code.
Access your website's code or content management system.
Copy the code snippet shared by your Marvin admin.
Paste the snippet immediately after the opening <head> tag, in the code of every page of your website (Make sure that only one snippet is added per page).
The snippet will be in this format*, and the data-target-id will be unique to your company.
<script
src="https://app.heymarvin.com/in-app-interviewer-loader.js"
data-target-id=XXXXXXXXXXXXX"
data-origin="https://app.heymarvin.com">
</script>*This is a sample of the code you need to add. Please do not use this snippet in your code.
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.
window.MarvinIntercept.setCustomParams({
{{param1}}: "{{value1}}",
{{param2}}: "{{value2}}",
{{param3}}: "{{value3}}",
});
Add the parameter and the corresponding field in your data for values. For example,
window.MarvinIntercept.setCustomParams({
plan: "pro",
company: "Acme",
company_size: 200,
});
You can use these additional attributes to target specific users or filter interviews by segment.
That's it! Your domain should now be connected to Marvin Live Intercept.
Where can I find the code snippet to connect Live Intercept?
To access the code snippet, you must be an Admin, Full seat user, or Collaborator in Marvin.
Follow these instructions to locate and share the code snippet unique to your team.
Login to Marvin, and open the Live Intercept tab from the left navigation menu.
Click Installation in the top left corner.
Copy the snippet under Main code block. It will be the first section on the page.
For any questions or guidance, please write to us at [email protected].



