Welcome to the Koken CMS community!

Here at KCS, you will find a friendly bunch of photographers who like to share their love for the Koken CMS. We hope that you will enjoy your time here and thrive in our community!

You asked for it: Donations!
You asked for it, and it's here: The possibility to "buy me a beer (or more)"!

Seriously: By giving a small paypal donation you will help with keeping this site afloat and also give me more incentive to develop OxyGen further... ;)

// Bjarne Varöystrand and the KCS Team
Koken Development

Google Universal Analytics plugin for Koken

Release and discuss your custom plugins here
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Google Universal Analytics plugin for Koken

Postby Bjarne Varöystrand » Sat 11 Jul 2015, 22:56

Name: Google Universal Analytics plugin for Koken
Description: This Koken plugin is based on Koken's plugin koken-google-analytics. It automatically generates and inserts Google Universal Analytics tracking code into your published site, regardless of what theme you have selected.

A Koken installation (0.2.0 or higher) and a free Google Analytics account are required.
Creator: Daniel Muller
Source code: https://github.com/DanielMuller/koken-p ... -analytics
Downloads: https://github.com/DanielMuller/koken-p ... master.zip

Note:
Requiers Koken 0.2.0 or higher
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
jrphoto
User
User
Posts: 28
Joined: Fri 20 Oct 2017, 11:41
Your name: Jonathan
Location: Brussels
Contact:

Re: Google Universal Analytics plugin for Koken

Postby jrphoto » Wed 07 Mar 2018, 18:05

Hello,

I did update that plugin in order to self host the analytics.js in order to minimize call to external Javascript scripts, be able to set browser caching on the file and Reduce DNS lookup by avoiding call to another domain.

Source code: https://github.com/jonathanR79/koken-pl ... -analytics
Downloads: https://github.com/jonathanR79/koken-pl ... master.zip

Note that I have a created a pull request from my fork.
Jonathan
--------------------------------
https://www.jr-photo.be
jrphoto
User
User
Posts: 28
Joined: Fri 20 Oct 2017, 11:41
Your name: Jonathan
Location: Brussels
Contact:

Re: Google Universal Analytics plugin for Koken

Postby jrphoto » Tue 13 Mar 2018, 13:02

My update was pushed.
Jonathan
--------------------------------
https://www.jr-photo.be
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Re: Google Universal Analytics plugin for Koken

Postby Bjarne Varöystrand » Wed 14 Mar 2018, 21:56

Thank you for contributing! :D
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
User avatar
Kulturmensch
Donator
Donator
Posts: 28
Joined: Sun 30 Jul 2017, 13:41
Your name: Dr Jürgen Tenckhoff
Contact:

Re: Google Universal Analytics plugin for Koken

Postby Kulturmensch » Thu 12 Jul 2018, 23:40

Hi,
how and where can I insert the following script to give users the possibility to opt-out- GA?:
...

Code: Select all

<script>
   var gaProperty = 'XXXXXX';
   var disableStr = 'ga-disable-' + gaProperty;
   if (document.cookie.indexOf(disableStr + '=true') > -1) {
      window[disableStr] = true;
   }
   function gaOptout() {
      document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/';
   window[disableStr] = true;
   }
</script>

...

This is recommended to comply with the DSVGO in Germany i.e. here: https://www.datenschutz.org/google-anal ... tenschutz/
User avatar
Bjarne Varöystrand
Webbplatsadministratör
Webbplatsadministratör
Posts: 1063
Joined: Sun 29 Mar 2015, 21:02
Your name: Bjarne Varöystrand
Location: Lysekil, Sweden
Contact:

Re: Google Universal Analytics plugin for Koken

Postby Bjarne Varöystrand » Thu 12 Jul 2018, 23:42

I would say that you use the HTML injector plugin, and place the above "chunk" in the footer section. :ugeek:
Regards
Bjarne Varöystrand - Image || Reddit || Twitter|| Facebook

Image
User avatar
Kulturmensch
Donator
Donator
Posts: 28
Joined: Sun 30 Jul 2017, 13:41
Your name: Dr Jürgen Tenckhoff
Contact:

Re: Google Universal Analytics plugin for Koken

Postby Kulturmensch » Sat 21 Jul 2018, 14:07

Thanks for the advice Bjarne, it works:-)

  • Similar Topics
    Replies
    Views
    Last post

Return to “Plugins”



Who is online

Users browsing this forum: No registered users and 1 guest