klaro-js icon indicating copy to clipboard operation
klaro-js copied to clipboard

Gatsby and klaro.js

Open TheOneAndOnlyGarcia opened this issue 4 years ago • 5 comments
trafficstars

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/

TheOneAndOnlyGarcia avatar Dec 13 '20 14:12 TheOneAndOnlyGarcia

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>

pascal-zarrad avatar Jan 06 '21 19:01 pascal-zarrad

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.

adewes avatar Jan 07 '21 18:01 adewes

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.

pascal-zarrad avatar Jan 11 '21 19:01 pascal-zarrad

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

TheOneAndOnlyGarcia avatar Jan 12 '21 17:01 TheOneAndOnlyGarcia

@adewes have you found time for a tutorial on how to integrate klaro into gatsby?

TheOneAndOnlyGarcia avatar Jan 25 '21 12:01 TheOneAndOnlyGarcia