5 Embedding on Page Load

Description

In this example we are loading the body of an interaction inside an element on page load.
<div
    data-fs-etag="onload:trigger-example-interaction" 
    data-fs-params='{ 
        "trigger": {
            "moduleid": "module-2410d449e70cdb75a0fccd29e7880c17"
         },
         "rel": {
             "interaction": {
                    "subject":"Example Interaction",
                    "description": "This interaction was loaded into this element on page load"
             }       
         }      
   }'></div>
<div 
    style="display: flex;"
    data-fs-el="@module-2410d449e70cdb75a0fccd29e7880c17" 
    data-fs-opt='{ 
        "display": "embed", 
        "theme": "translucent", 
        "size": "full"
    }'></div>