I was given this script by flip.to
<script>
!function(b,e){
(b[e] = b[e] || []).push({
flipto: {
bookingEngine: "Demo",
companyCode: "XX",
code: "YYYY",
},
})
}(window,'fliptoDataLayer');
</script>
After adding this code to another page/component, I encountered a JavaScript error: "b and e are undefined"
Any suggestions on how to modify this function to work with the next.js project? Thank you
This is what the error message looks like: