MCPcopy Index your code
hub / github.com/GitbookIO/plugin-ga

github.com/GitbookIO/plugin-ga @2.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.0.0 ↗ · + Follow
3 symbols 3 edges 2 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.

Core symbols most depended-on inside this repo

componentDidMount
called by 0
src/index.js
componentDidUpdate
called by 0
src/index.js
render
called by 0
src/index.js

Shape

Function 3

Languages

TypeScript100%

Modules by API surface

src/index.js3 symbols

For agents

$ claude mcp add plugin-ga \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact