Giter Site home page Giter Site logo

cppl / grav-gosquared Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 15 KB

A GRAV plugin that lets you easily add the GoSquared Analytics platform to your GRAV website

License: MIT License

PHP 100.00%
grav gosquared-plugin gosquared-analytics grav-plugin gpm

grav-gosquared's Introduction

GoSquared for Grav

This is a Grav plugin that adds the GoSquared Analytics tracking code to Grav pages.

Installation

Installing the GoSquared plugin can be done in one of two ways.

Admin Installation (Preferred)

If you have the GRAV Admin plugin installed (and you really should ) you can install this plugin from your browser. Simply log in to your Admin area, click on "Plugins" in the left sidebar menu, and then click on + Add in the top right of the Plugins view.

Simply scroll to the GoSquared Analytics plugin (or filter by name) and then click + Install on the right end of the row for the plugin.

GPM Installation

The simplest way to install this plugin is via the Grav Package Manager (GPM) through your system's Terminal (also called the command line). From the root of your Grav install type:

bin/gpm install gosquared

This will install the GoSquared plugin into your /user/plugins directory within Grav. The plugin files should now be in /your/site/grav/user/plugins/gosquared

Manual Installation

To install this plugin, just download the zip version of this repository and unzip it under /your/site/grav/user/plugins. Then, rename the folder to gosquared.

You should now have all the plugin files under

/your/site/grav/user/plugins/gosquared

Config Defaults

Prior to the Admin plugin, you could modify a plugins' yaml file directly (you still can actually), but now the Admin screens offers a much easier and safer way to adjust the plugin settings.

The gosquared.yaml contains only 3 settings:

enabled: true  
gsn: ''  
gsInAdmin: false

If you need to change any value, I recommend using the Admin screens available via the Admin plugin . This will let you change any of the settings and provide a useful tooltip for each setting (hover over the settings label).

Usage

  1. In your GoSquared account, open the domain you're using Grav on (or add one if needed).
  2. At the bottom of the left side menu, you will find Settings โ€” click on it.
  3. Copy the GoSquared Site Token and paste it into the settings for the plugin (I recommend pasting not typing...)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.