To embed Sentiyen, you’ll need to add a line of code to the page where you’d like the embed and also add our script to the theme.
Just in case.
theme.liquid
{% if user.guest == false %}
<script>
const sentiyenDiv = document.getElementById("sentiyen-iframe-wrapper");
sentiyenDiv.setAttribute("data-user", "{{ user.email }}");
</script>
<script defer type="text/javascript" src="<https://www.sentiyen.com/embed/embed.js>"></script>
{% else %}
<div class="sub-box">
<p>This content is only available to subscribers</p>
</div>
{% endif %}
div
to the page you want the embed on<div id="sentiyen-iframe-wrapper" data-id="CHANNEL_ID" style="height: 700px"></div>