1
0
mirror of https://github.com/kremalicious/gatsby-plugin-matomo.git synced 2024-12-22 01:03:21 +01:00

package updates

This commit is contained in:
Matthias Kretschmann 2020-07-02 19:53:36 +02:00
parent d68376354e
commit 12093c349c
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 10057 additions and 27 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
/*.js /*.js
node_modules node_modules
package-lock.json
coverage coverage

View File

@ -1,4 +1,4 @@
[![gatsby-plugin-matomo](https://raw.githubusercontent.com/kremalicious/gatsby-plugin-matomo/master/src/gatsby-plugin-matomo.png)](https://kremalicious.com/gatsby-plugin-matomo/) [![gatsby-plugin-matomo](https://raw.githubusercontent.com/kremalicious/gatsby-plugin-matomo/main/src/gatsby-plugin-matomo.png)](https://kremalicious.com/gatsby-plugin-matomo/)
# gatsby-plugin-matomo # gatsby-plugin-matomo
@ -65,20 +65,20 @@ _NOTE: By default, this plugin only generates output when run in production mode
### Options ### Options
| Option | Explanation | | Option | Explanation |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `siteId` | Your Matomo site ID configured in your Matomo installation. | | `siteId` | Your Matomo site ID configured in your Matomo installation. |
| `matomoUrl` | The url of your Matomo installation. | | `matomoUrl` | The url of your Matomo installation. |
| `siteUrl` | The url of your site, usually the same as `siteMetadata.siteUrl`. Only used for generating the url for `noscript` image tracking fallback. | | `siteUrl` | The url of your site, usually the same as `siteMetadata.siteUrl`. Only used for generating the url for `noscript` image tracking fallback. |
| `matomoPhpScript`| (optional) The name of your Matomo PHP script. Defaults to `piwik.php` | | `matomoPhpScript` | (optional) The name of your Matomo PHP script. Defaults to `piwik.php` |
| `matomoJsScript` | (optional) The name of your Matomo JS script. Defaults to `piwik.js` | | `matomoJsScript` | (optional) The name of your Matomo JS script. Defaults to `piwik.js` |
| `exclude` | (optional) Specify an array of pathnames where tracking code will be excluded. The pathname `/offline-plugin-app-shell-fallback/` is excluded by default. | | `exclude` | (optional) Specify an array of pathnames where tracking code will be excluded. The pathname `/offline-plugin-app-shell-fallback/` is excluded by default. |
| `requireConsent` | (optional) If true, tracking will be disabled until you call `window._paq.push(['setConsentGiven']);`. | | `requireConsent` | (optional) If true, tracking will be disabled until you call `window._paq.push(['setConsentGiven']);`. |
| `disableCookies` | (optional) If true, no cookie will be used by Matomo. | | `disableCookies` | (optional) If true, no cookie will be used by Matomo. |
| `cookieDomain` | (optional) Specify cookie domain. | | `cookieDomain` | (optional) Specify cookie domain. |
| `localScript` | (optional) If set, load local `piwik.js` script from the given path, instead of loading it from your `matomoUrl`. | | `localScript` | (optional) If set, load local `piwik.js` script from the given path, instead of loading it from your `matomoUrl`. |
| `trackLoad` | (optional) If true, it will track the loading of the matomo library. Defaults to `true`. | | `trackLoad` | (optional) If true, it will track the loading of the matomo library. Defaults to `true`. |
| `dev` | (optional) Activate dev mode by setting to `true`. Will load all scripts despite not running in `production` environment. Ignores your local browser's DNT header too. Outputs some information in console about what it is doing. Useful for local testing but careful: all hits will be send like in production. | | `dev` | (optional) Activate dev mode by setting to `true`. Will load all scripts despite not running in `production` environment. Ignores your local browser's DNT header too. Outputs some information in console about what it is doing. Useful for local testing but careful: all hits will be send like in production. |
```js ```js
plugins: [ plugins: [

10031
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -15,19 +15,19 @@
}, },
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.8.4", "@babel/cli": "^7.10.4",
"@babel/core": "^7.9.0", "@babel/core": "^7.10.4",
"@babel/runtime": "^7.9.2", "@babel/runtime": "^7.10.4",
"auto-changelog": "^2.0.0", "auto-changelog": "^2.1.0",
"babel-preset-gatsby-package": "^0.5.0", "babel-preset-gatsby-package": "^0.5.1",
"cross-env": "^7.0.2", "cross-env": "^7.0.2",
"eslint": "^7.0.0", "eslint": "^7.3.1",
"eslint-config-prettier": "^6.10.1", "eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.2", "eslint-plugin-prettier": "^3.1.4",
"jest": "^26.0.1", "jest": "^26.1.0",
"prettier": "^2.0.3", "prettier": "^2.0.5",
"react": "^16.13.1", "react": "^16.13.1",
"release-it": "^13.5.1" "release-it": "^13.6.4"
}, },
"homepage": "https://kremalicious.com/gatsby-plugin-matomo", "homepage": "https://kremalicious.com/gatsby-plugin-matomo",
"keywords": [ "keywords": [