Add the following script to your website:
<script>
(function(w,d,r,i,p,c,t){
console.log('Initializing widget script with:', { namespace: r, portalId: i, color: p, delay: c });
w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)};
t=d.createElement('script');t.async=1;
t.src='embed.js';
c=d.getElementsByTagName('script')[0];
c.parentNode.insertBefore(t,c);
w[r]('init', {
portalId: i,
primaryColor: p,
delay: c
});
})(window,document,'ReviewWidgetNS','YOUR_PORTAL_ID','#007bff',1000);
</script>
portalId (required): Your unique portal identifierprimaryColor (optional): The primary color for the widget (default: '#007bff')delay (optional): Delay in milliseconds before showing the review modal (default: 5000)<script>
(function(w,d,r,i,p,c,t){
w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)};
t=d.createElement('script');t.async=1;
t.src='embed.js';
c=d.getElementsByTagName('script')[0];
c.parentNode.insertBefore(t,c);
w[r]('init', {
portalId: '123e4567-e89b-12d3-a456-426614174000',
primaryColor: '#FF5733',
delay: 3000
});
})(window,document,'ReviewWidgetNS','123e4567-e89b-12d3-a456-426614174000','#FF5733',3000);
</script>
Here's a live preview of the widget with a 2-second delay: