Engine's embed code can be placed in any order within your page, but for optimal user experience we recommend placing the script tag within the same div where the content is being rendered.
Basic Embed Syntax
PLEASE NOTE: Your Engine representative will provide you with your specific code snippet. Do not try to reproduce from the sample snippet outlined below.
This is a representative example of what our embed code looks like, and contains placeholders as defined below. Placeholders and will be replaced with precise values in the embed code provided to you.
Embed Components
Channel: placeholder that will be replaced with precise values in the embed code provided to you.
Zone: placeholder that will be replaced with precise values in the embed code provided to you.
Component Name: corresponds to the specific product or Engine experience type that's being rendered.
data-embed-type: enables Engine's auto-mount functionality; without this attribute, the component will not render.
Acceptable Value: "auto-mount"
Customization & Auto Sizing
The web component loads iFrame and will automatically fill the container. Embeds are rendered wherever you include our HTML tag on your page and will responsively scale to fill the space available to it.
Banking Specific Syntax
Engine's banking embed requires an additional tag to be included at the end of the standard script to be able to mount correctly: <moneylion-banking></moneylion-banking>
Full sample embed script looks like the following:
Component Names
/web-component/banking/: A full application-style flow where consumers browse and compare banking deposit offers on your site, in a block that feels like part of your page instead of redirecting them elsewhere. It keeps the experience focused on exploring rates and products in context, so users stay in your environment while they shop for savings-related accounts.
How to Implement Client Tags for Reporting & Customer Data Prefill
To add client tags in an embed, use the following syntax in the data-tags attribute within the embed script:
To prerefill fields in an embed, use the following syntax in the data-tags attribute within the embed script:
Sample Implementation
In the above example, clientId and source are available as tags for reporting purposes and the embed "credit rating" and "zipcode" fields will be prepopulated when the embed is rendered.
Supported Client Tag Keys
These are the keys that are currently fully supported across all Engine embed types. Please note that the keys below are case-sensitive:
agentId
campaignId
clientId
deviceid
medium
sourceId
subid
subid1
subid2
subid3
target
trafficsource
userid
If a different key is needed, please reach out to your Partner Manager - we may be able to accommodate, but adding nonstandard keys will increase the time it takes Engine to report Client Tag values back to you and is therefore not recommended.
Supported Keys for Banking Customer Data Prefill
The following is a list of params that can be added to the Banking embed code to prefill in the embed frontend:
Key
Description
Example
zip
User zipcode
10013
product
Specific banking product
savings, money market, CD
depositAmount
Minimum deposit amount
5000
page
Pagination query parameter; defaults to 1 if omitted
2
Embed Best Practices & Troubleshooting
Component Not Showing
Check the required attribute:
Make sure data-embed-type="auto-mount" is present
Check browser console:
Open developer tools and look for error messages
Loading Too Slowly
Make sure async attribute is present on the <script> tag