kirby-deprecated-plugins / kirby-ga

Licence: other
Kirby GA - Google Analytics

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to kirby-ga

kirby-html-minifier
Minify the html output of a site built with Kirby CMS
Stars: ✭ 20 (+25%)
Mutual labels:  kirby-cms, kirby-2, kirby-3
kirby3-many-to-many-field
This plugin allows you to create many-to-many relationships between pages in Kirby and synchronizes them on both sides.
Stars: ✭ 38 (+137.5%)
Mutual labels:  kirby, kirby-cms, kirby-3
kirby-git
Kirby plugin for updating content in the panel via Git
Stars: ✭ 75 (+368.75%)
Mutual labels:  kirby, kirby-cms, kirby-3
kirby-panel-brand
Possible to add a color and a text at the top of the Kirby Panel
Stars: ✭ 18 (+12.5%)
Mutual labels:  kirby-2, kirby-3
kirby-highlight
Themeable server-side syntax highlighting for Kirby
Stars: ✭ 14 (-12.5%)
Mutual labels:  kirby, kirby-cms
kirby-podcast
A KirbyCMS-Podcast-Plugin
Stars: ✭ 22 (+37.5%)
Mutual labels:  kirby, kirby-cms
field-engineer
A Kirby field for complex field structures.
Stars: ✭ 49 (+206.25%)
Mutual labels:  kirby, kirby-cms
hfg-documentation-generator
The HfG Documentation Generator
Stars: ✭ 13 (-18.75%)
Mutual labels:  kirby, kirby-cms
monochrome
A fully responsive Kirby CMS theme
Stars: ✭ 27 (+68.75%)
Mutual labels:  kirby, kirby-cms
kirby-blade
Enable Blade for Kirby 3
Stars: ✭ 14 (-12.5%)
Mutual labels:  kirby, kirby-3
kirby-membership
Simple Membership plugin for Kirby CMS
Stars: ✭ 27 (+68.75%)
Mutual labels:  kirby, kirby-cms
kirby-boiler-field
Boilerplate for Kirby form fields
Stars: ✭ 15 (-6.25%)
Mutual labels:  kirby, kirby-cms
retour-for-kirby
Kirby 3 plugin to manage redirects and track 404s right from the Panel
Stars: ✭ 96 (+500%)
Mutual labels:  kirby, kirby-cms
laravel-mix-kirby
Laravel Mix helper for Kirby
Stars: ✭ 23 (+43.75%)
Mutual labels:  kirby, kirby-cms
search-for-kirby
Kirby 3 plugin for adding a search index (sqlite or Algolia).
Stars: ✭ 42 (+162.5%)
Mutual labels:  kirby, kirby-cms
kirby-blade
Enable Laravel Blade Template Engine for Kirby 3
Stars: ✭ 20 (+25%)
Mutual labels:  kirby, kirby-cms
kirby-scheduled-pages
No description or website provided.
Stars: ✭ 18 (+12.5%)
Mutual labels:  kirby-2, kirby-3
murby
A plain Kirby 3 starterkit on steroids!
Stars: ✭ 41 (+156.25%)
Mutual labels:  kirby-cms, kirby-3
kirby-minify-html
Enable minify HTML output for Kirby 3
Stars: ✭ 27 (+68.75%)
Mutual labels:  kirby, kirby-cms
kirbyup
🆙 Zero-config bundler for Kirby Panel plugins
Stars: ✭ 33 (+106.25%)
Mutual labels:  kirby, kirby-cms

Kirby GA

Verion 0.2

Google Analytics for Kirby CMS.

  • Doesn't run the GA script on localhost.
  • Doesn't run the GA script if you are logged in.

Table of contents

Usage

  1. Add the config plugin.ga.id to config.php.
  2. Add the code below to your footer snippet.
<?php snippet('ga'); ?>

Options

Only the plugin.ga.id is required.

c::set('plugin.ga.id', '');
c::set('plugin.ga', true);
c::set('plugin.ga.blacklist', [ '127.0.0.1', '::1' ] );
c::set('plugin.ga.debug', false);
c::set('plugin.ga.snippet', 'ga');

plugin.ga.id (required)

The Google Analytics ID. Set it to something like UA-12345678-12.

c::set('plugin.ga.id', '');

plugin.ga

You can deactivate the script by setting this value to false.

c::set('plugin.ga', true);

plugin.ga.blacklist

Localhost is in the blacklist as default. You can change it.

c::set('plugin.ga.blacklist', [ '127.0.0.1', '::1' ] );

plugin.ga.debug

The script is only active for not logged in users and users not on localhost.

If you want to always run the script, set this option to true.

c::set('plugin.ga.debug', false);

plugin.ga.snippet

Change the snippet name with this option. You can override the snippet as well.

c::set('plugin.ga.snippet', 'ga');

Requirements

Disclaimer

This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.

License

MIT

It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.

Credits

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].