GitXplorerGitXplorer
G

plugin-ga

public
52 stars
23 forks
6 issues

Commits

List of commits on branch master.
Unverified
05356de42b60e693a5420247be6743c4ee0ec017

Bump version to 2.0.0 🚀

SSamyPesse committed 8 years ago
Unverified
aeabe2c8fb76f7279bec5545e12263deb7729839

Adapt for GitBook v4 (#16)

SSamyPesse committed 8 years ago
Unverified
ec1840f9c822ad5dfbdbb9190c2b051088df2271

Bump version to 1.0.1

SSamyPesse committed 9 years ago
Unverified
b875b8bae9eb5c37985b313fcd782323609faca6

Fix use of configuration

SSamyPesse committed 9 years ago
Unverified
dd8d8cbae0f1ba0edd3e038a3b0730b108875467

Bump version to 1.0.0

SSamyPesse committed 9 years ago
Unverified
222657ad8c4c297bc88563ec5026283b22bb4a06

Adapt to gitbook 2.5.x

SSamyPesse committed 9 years ago

README

The README file for this repository.

Google Analytics tracking for GitBook

You can use install it via NPM:

$ npm install gitbook-plugin-ga

And use it for your book with in the book.json:

{
    "plugins": ["ga"]
}

You can set the Google Analytics tracking ID using the plugins configuration in the book.json:

{
    "plugins": ["ga"],
    "pluginsConfig": {
        "ga": {
            "token": "UA-XXXX-Y"
        }
    }
}

You can customize the tracker object by passing additional configuration options. You can either pass in auto, none or an object:

{
    "plugins": ["ga"],
    "pluginsConfig": {
        "ga": {
            "token": "UA-XXXX-Y",
            "configuration": {
                "cookieName": "new_cookie_name",
                "cookieDomain": "mynew.domain.com"
            }
        }
    }
}

For an overview of all available configuration parameters, please refer to the analytics.js field reference.