klaro-js
klaro-js copied to clipboard
Gatsby and klaro.js
Hello, is there anyone here, or even a tutorial, on how to get klaro.js running with Gatsby? I just can't get it to work. Am grateful for any help.
https://www.gatsbyjs.com/
gatsby-plugin-klaro is a quite new Gatsby plugin to include Klaro. You will still have to configure Klaro and ensure that your third party scripts implemented through plugins are configured properly as shown in the README of Klaro. To configure third party scripts properly you might have to create forks of the original plugins that inject Klaro's required data attributes.
Example for the scripts from Klaro README:
<script type="text/plain"
data-type="text/javascript"
data-name="optimizely"
data-src="https://cdn.optimizely.com/js/10196010078.js">
</script>
Hi @pascal-zarrad and @TheOneAndOnlyGarcia, thanks for opening this issue and sorry it take me a while to reply, next week I'm fully back and will start documenting the process of using Klaro together with Gatsby.js.
Hi @adewes and @TheOneAndOnlyGarcia, I have a quick update regarding the Klaro plugin for Gatsby:
The name of the plugin and usage is still the same but the project has been moved to another GitHub organization. Here is an updated link: lazybytez/gatsby-plugin-klaro. The plugin will stay available, updated and managed without any further transfers or renames - promissed.
Hi @pascal-zarrad and @TheOneAndOnlyGarcia, thanks for opening this issue and sorry it take me a while to reply, next week I'm fully back and will start documenting the process of using Klaro together with Gatsby.js.
im really looking forward to it
@adewes have you found time for a tutorial on how to integrate klaro into gatsby?