I’m working on my Laravel SAAS app that provides a social proof notification widget to the end users to be embedded on their website. I need to provide them a simple code to paste into their website to render my widget into their website.
It could be something like this:
<div id='someId'><div>
<script src="link/to/file/.js"></script>
I am not sure what code to use in the JavaScript file so it could render the widget into their website. If you could give me steps or share a tutorial of how to create the widget and build the code for rendering it would be helpful.