Basically I need to add the script to the head of my index.html,
<script type="text/javascript" src="https://a.optmnstr.com/app/js/api.min.js" data-account="XXXXX" data-user="XXXXX" async></script>
so what I've tried is...
in my nuxt.config.js
head: {
script: [
{
type: 'text/javascript',
src: 'https://a.optmnstr.com/app/js/api.min.js',
data-account: 'XXXXX',
data-user: 'XXXXX',
async: true
}
]
}
now obviously this isn't working since data-account and data-user is not valid, so how can I make this work??
Any help would be appreciated!
Thanks