Next.js Discord

Discord Forum
And here is the documentation : https://developers.goodays.co/docs/web-sdk","dateCreated":"2024-05-10T13:46:47.687Z","answerCount":0,"author":{"@type":"Person","name":"Estonian Hound"}}}

Integration script Goodays

Unanswered
Estonian Hound posted this in #help-forum
Open in Discord
Estonian HoundOP
Hello,

I need to integrate the script of goodays but it needs to be render on every page I use it.

I try multiple method (passing a key to my component, using useEffect) but nothing is working.

Can someone help ?

Here is what it looks like on their documentation :
<script type="text/javascript">
    (function (i, s, o, g, r, a, m) {
        i[r] = i[r], a = s.createElement(o), m = s.getElementsByTagName(o)[0];
        a.async = 1;
        a.src = g;
        m.parentNode.insertBefore(a, m)
    })(window, document, 'script', 'https://cdn.goodays.co/sdk/<API_KEY>.js', 'cz');
</script>


And here is the documentation : https://developers.goodays.co/docs/web-sdk

0 Replies