I'm using Nuxt3 for my static website and have successfully integrated the OptinMonster script to manage campaigns. However, I've run into an issue where the OptinMonster script functions correctly during the initial page visit and subsequent manual refreshes.
app: {
head: {
script: [
{
src: 'https://a.omappapi.com/app/js/api.min.js',
async: true,
defer: true,
'data-user': 2345,
'data-account': 3453,
type: 'text/javascript'
},
]
}
}
Unfortunately, when navigating to other pages within the application, OptinMonster script doesn't appear to execute, and the campaigns fails to display. I have found a related nuxt issue thread but couldn't able to find a solution.