Compare commits
279 Commits
Author | SHA1 | Date |
---|---|---|
Matthias Kretschmann | a1d4da6c10 | |
Matthias Kretschmann | 5df8121767 | |
Matthias Kretschmann | 729c1ce921 | |
Matthias Kretschmann | fe41f551e6 | |
Matthias Kretschmann | a4b1c3be07 | |
Matthias Kretschmann | 1848c2ba4e | |
Matthias Kretschmann | 3102610efe | |
Matthias Kretschmann | 28ad5918c7 | |
Matthias Kretschmann | d9a22c2467 | |
Matthias Kretschmann | 5b5f35aaf7 | |
Matthias Kretschmann | 98103c87ea | |
Matthias Kretschmann | 8e84c789ba | |
dependabot[bot] | 3a28ad96cf | |
Matthias Kretschmann | d6ad15cc18 | |
Matthias Kretschmann | 3974169706 | |
dependabot[bot] | d3b1c8be41 | |
dependabot[bot] | 38ae6bbe5e | |
dependabot[bot] | 1041dc1d08 | |
Matthias Kretschmann | 42a33207b3 | |
Matthias Kretschmann | 3d087e4e33 | |
dependabot[bot] | 5f53ac84e8 | |
dependabot[bot] | 80db297e5d | |
dependabot[bot] | 8701024764 | |
dependabot[bot] | 122b0b0a9c | |
dependabot[bot] | 219233aeaa | |
dependabot[bot] | 6bbba8bb6e | |
Matthias Kretschmann | 6919fc6b1a | |
dependabot[bot] | 22f44b3992 | |
dependabot[bot] | b4d87fc90b | |
dependabot[bot] | cc7060a6a3 | |
dependabot[bot] | fd155c76a2 | |
dependabot[bot] | 9fdf75d8e8 | |
dependabot[bot] | 02fe5363e5 | |
Fabio Bonelli | 7d921386fa | |
dependabot[bot] | 197a17ec1e | |
dependabot[bot] | a6065d77e8 | |
dependabot[bot] | 2600a06cf0 | |
dependabot[bot] | 5ee2e47483 | |
dependabot[bot] | 906ac45a80 | |
dependabot[bot] | dd52ef0be5 | |
dependabot[bot] | 08cca8a23b | |
dependabot[bot] | 42c2a5c8d2 | |
dependabot[bot] | 67d9f66bf1 | |
dependabot[bot] | 682f304fdd | |
dependabot[bot] | 36f5e0fa2f | |
dependabot[bot] | 81598dc6e6 | |
dependabot[bot] | 094ec63279 | |
dependabot[bot] | 4f2f6af1a5 | |
dependabot[bot] | 72677940e7 | |
dependabot[bot] | 8cb95ddd09 | |
dependabot[bot] | 7baa8f2414 | |
dependabot[bot] | 6796116e3d | |
dependabot[bot] | e91d9e76b1 | |
dependabot[bot] | 21283c227c | |
dependabot[bot] | 63a1e972d6 | |
dependabot[bot] | fd449b9c8c | |
dependabot[bot] | c4da8d2330 | |
dependabot[bot] | db26707a19 | |
Matthias Kretschmann | 469302ae6b | |
Matthias Kretschmann | d02b3dddbb | |
dependabot[bot] | a4595803f7 | |
dependabot[bot] | 65a5348dc6 | |
dependabot[bot] | 98ab771e86 | |
dependabot[bot] | dd67dd5eee | |
dependabot[bot] | 072df8c184 | |
dependabot[bot] | a912a3a299 | |
dependabot[bot] | 14bb285d01 | |
dependabot[bot] | 00cb12a4c4 | |
dependabot[bot] | 278c5007a0 | |
dependabot[bot] | 9be9a4d1b4 | |
dependabot[bot] | 3e82af65af | |
dependabot[bot] | 567b3ffbc4 | |
dependabot[bot] | 70c762f923 | |
dependabot[bot] | bc0596d7bb | |
dependabot[bot] | 29068f2d27 | |
dependabot[bot] | b214491c17 | |
dependabot[bot] | 6245a15c5b | |
dependabot[bot] | f0883569f5 | |
dependabot[bot] | ffe5d5f39e | |
dependabot[bot] | 6664048940 | |
dependabot[bot] | dcd1392a8f | |
dependabot[bot] | 50927c9cd7 | |
dependabot[bot] | 26c0b912b6 | |
dependabot[bot] | 0812596af2 | |
dependabot[bot] | ade4960782 | |
dependabot[bot] | 312ebbba26 | |
dependabot[bot] | 42438c40fc | |
dependabot[bot] | 9e9b8af135 | |
dependabot[bot] | 13e3597426 | |
dependabot[bot] | fda3499bbb | |
dependabot[bot] | ccd387252a | |
dependabot[bot] | 057c3d655c | |
dependabot[bot] | 96323976b6 | |
dependabot[bot] | 57fec52166 | |
dependabot[bot] | c695cbe7a6 | |
Matthias Kretschmann | 5bda1a1777 | |
Matthias Kretschmann | ac8dd7df43 | |
Matthias Kretschmann | 3565e9aa9c | |
dependabot[bot] | 41d7924925 | |
dependabot[bot] | 8a37114beb | |
dependabot[bot] | 0395fff0f7 | |
dependabot[bot] | b434fe9d4a | |
dependabot[bot] | d294bfcc31 | |
dependabot[bot] | 649798999e | |
dependabot[bot] | 6ad8dfaa8c | |
dependabot[bot] | 056ab7b3f9 | |
dependabot[bot] | fc77281938 | |
dependabot[bot] | e81a393127 | |
dependabot[bot] | b89159f923 | |
Matthias Kretschmann | 9fa4413143 | |
Matthias Kretschmann | 8bfa9d3b32 | |
Matthias Kretschmann | b4efe1dfb0 | |
dependabot[bot] | 3253556ca5 | |
dependabot[bot] | f8f6e76727 | |
dependabot[bot] | 7dbf7d65df | |
dependabot[bot] | 9342ca4fc2 | |
dependabot[bot] | 63b8330034 | |
dependabot[bot] | 5f25b22e47 | |
dependabot[bot] | ff0a9c9138 | |
dependabot[bot] | 124c28fe06 | |
dependabot[bot] | 4bc86115a4 | |
dependabot[bot] | 3aa782ac6f | |
dependabot[bot] | 0e3b2a199d | |
dependabot[bot] | 176e2d9806 | |
dependabot[bot] | c17c8581a5 | |
dependabot[bot] | 01cda2eb30 | |
dependabot[bot] | e68cbe0c23 | |
dependabot[bot] | 7df0a6b6d3 | |
dependabot[bot] | b7d71632e0 | |
dependabot[bot] | 7a90f0e9bd | |
dependabot[bot] | efe0702942 | |
dependabot[bot] | 7a8d1acdd5 | |
dependabot[bot] | f0d8014000 | |
dependabot[bot] | 3db280cf97 | |
dependabot[bot] | f5bbb477c8 | |
dependabot[bot] | cfeeda2b94 | |
dependabot[bot] | 91ae2a2c55 | |
dependabot[bot] | 168c8f9977 | |
dependabot[bot] | ddbe9b9b7f | |
dependabot[bot] | 1c7ee9b798 | |
dependabot[bot] | 8ca03e5289 | |
Matthias Kretschmann | b6d51f76cc | |
dependabot[bot] | 2cae886661 | |
dependabot[bot] | 8a101974a4 | |
dependabot[bot] | 051f6388a2 | |
dependabot[bot] | 03ad73ce0c | |
dependabot[bot] | 5b887a0574 | |
dependabot[bot] | 1c36ee694b | |
Matthias Kretschmann | 628dfb21ac | |
Matthias Kretschmann | b9f0d3d1db | |
Matthias Kretschmann | 1d07e0f769 | |
Matthias Kretschmann | 842c343343 | |
Matthias Kretschmann | 75cfaf49ec | |
dependabot[bot] | 3bc12645a5 | |
dependabot[bot] | 78737ef3ca | |
dependabot[bot] | 7873e83c06 | |
Matthias Kretschmann | af31666e8e | |
Sam Richards | ae2e8e7a61 | |
Matthias Kretschmann | 4858debe66 | |
Jarne | fd6f427fb4 | |
Matthias Kretschmann | 07b850fe84 | |
Matthias Kretschmann | dd7ee885e6 | |
Lennart | 7cc96853bb | |
Matthias Kretschmann | b99a9a6c16 | |
Matthias Kretschmann | 3fe1fcf0f9 | |
dependabot[bot] | 3806f37015 | |
dependabot[bot] | 99dde2534a | |
Matthias Kretschmann | d5ce77f446 | |
Matthias Kretschmann | 1fbe6317b8 | |
Matthias Kretschmann | 385933685c | |
Matthias Kretschmann | d04f484fd9 | |
Matthias Kretschmann | 9a3b1cc270 | |
dependabot[bot] | 7837fe2e1e | |
dependabot[bot] | 3026d9619c | |
dependabot[bot] | bb4af8f9b9 | |
dependabot[bot] | 453eafc63e | |
dependabot[bot] | 4dee26a250 | |
Matthias Kretschmann | b8fbb35241 | |
Matthias Kretschmann | 11e908a2e9 | |
Matthias Kretschmann | 0df7ae9ac0 | |
Matthias Kretschmann | b3a67005d0 | |
Matthias Kretschmann | 8e620750dc | |
Revath S Kumar | 95c4730168 | |
Matthias Kretschmann | 403092eff7 | |
Matthias Kretschmann | 2de44d4ca9 | |
Matthias Kretschmann | 1ba67e70f5 | |
Matthias Kretschmann | 6178a6a474 | |
Matthias Kretschmann | 3c169dbb34 | |
Matthias Kretschmann | 5f1a2d38a4 | |
Matthias Kretschmann | 152e9ef3ce | |
Matthias Kretschmann | a05f961eef | |
Matthias Kretschmann | 3d8bfef5c6 | |
Matthias Kretschmann | c1ab1c76cc | |
dependabot[bot] | ac7b6049df | |
dependabot[bot] | 232ef9ae6f | |
dependabot[bot] | 9163e3914c | |
dependabot[bot] | 636e693bc4 | |
dependabot[bot] | 559b441af9 | |
dependabot[bot] | da2558c28b | |
dependabot[bot] | 3671cfb0bd | |
dependabot[bot] | 9f5386ccd8 | |
dependabot[bot] | 3d17be4bd6 | |
dependabot[bot] | 99bf143076 | |
Matthias Kretschmann | eb7965ca38 | |
dependabot[bot] | f2c60b4565 | |
Matthias Kretschmann | e1b514748c | |
Matthias Kretschmann | b5d2444298 | |
Matthias Kretschmann | 1c24e5cc5e | |
Matthias Kretschmann | 9ca5fe6afe | |
Matthias Kretschmann | a57860580c | |
Matthias Kretschmann | 30997c86a2 | |
dependabot[bot] | 441e7e1255 | |
dependabot[bot] | 03065f8c79 | |
dependabot[bot] | a40daee7f2 | |
dependabot[bot] | 91a54a641d | |
dependabot[bot] | c63d769bc6 | |
dependabot[bot] | 55a6714356 | |
Matthias Kretschmann | 4b1ac2ed19 | |
Matthias Kretschmann | 07320bf86b | |
dependabot[bot] | e0d7275054 | |
dependabot[bot] | f4203a9405 | |
Matthias Kretschmann | 12093c349c | |
Matthias Kretschmann | d68376354e | |
dependabot[bot] | becbd0c15e | |
Matthias Kretschmann | 825d98744c | |
dependabot-preview[bot] | 587c211e4d | |
Matthias Kretschmann | 1f828b141c | |
Matthias Kretschmann | 492d18c232 | |
dependabot-preview[bot] | 57922d889c | |
Matthias Kretschmann | 46c1062b89 | |
dependabot-preview[bot] | 0ace794389 | |
Matthias Kretschmann | 3f666b5c18 | |
Matthias Kretschmann | e4c486da1c | |
dependabot-preview[bot] | 54920adc1d | |
dependabot-preview[bot] | 3446931abe | |
Matthias Kretschmann | 3d72ad2e85 | |
Matthias Kretschmann | 86258f8d79 | |
Matthias Kretschmann | 5871f667b9 | |
Matthias Kretschmann | d64e7ffbbc | |
Arne Zeising | 5f610910b9 | |
Matthias Kretschmann | 7d0e1d8094 | |
Matthias Kretschmann | aeeffda980 | |
Matthias Kretschmann | 30a58365bf | |
Matthias Kretschmann | 777be77f73 | |
Arne Zeising | 4a0beaeb6d | |
Arne Zeising | e9d1569c78 | |
Arne Zeising | 12a4ebed8d | |
Matthias Kretschmann | e899e371d3 | |
Matthias Kretschmann | 79193d45ad | |
Matthias Kretschmann | c561f89670 | |
Matthias Kretschmann | 97036887d1 | |
Matthias Kretschmann | 82b7606c6a | |
Matthias Kretschmann | 0867187bec | |
Matthias Kretschmann | 86141a1f10 | |
Matthias Kretschmann | 467a13b29a | |
Matthias Kretschmann | f5a0180b98 | |
Matthias Kretschmann | 8103a64138 | |
Matthias Kretschmann | c0269c71e2 | |
Matthias Kretschmann | 4ee4c92524 | |
Jedidiah Broadbent | 1c3c458bb4 | |
Matthias Kretschmann | 92f37498ff | |
Matthias Kretschmann | 31cabd60af | |
Matthias Kretschmann | d5338b206f | |
Julien Blatecky | 12a34647b9 | |
Matthias Kretschmann | 57092e5b0f | |
Matthias Kretschmann | 14d3b69605 | |
Matthias Kretschmann | e3479f6955 | |
Matthias Kretschmann | 7a2b3962d0 | |
Matthias Kretschmann | 9b1833060c | |
Matthias Kretschmann | 89da8bdc05 | |
Matthias Kretschmann | 858fc2eb8a | |
Matthias Kretschmann | bbb5f19f94 | |
Matthias Kretschmann | a535e359c1 | |
Matthias Kretschmann | 4c36d9c7c6 | |
Matthias Kretschmann | b9cf5d3984 | |
Matthias Kretschmann | aedb80684f | |
Matthias Kretschmann | 7b7f4783a6 | |
Matthias Kretschmann | 04b8ba1903 | |
Matthias Kretschmann | 24f57da352 |
5
.babelrc
5
.babelrc
|
@ -1,6 +1,3 @@
|
|||
{
|
||||
"presets": [
|
||||
["@babel/env"],
|
||||
["@babel/react"]
|
||||
]
|
||||
"presets": [["babel-preset-gatsby-package", { "browser": true }]]
|
||||
}
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
version: "2"
|
||||
checks:
|
||||
method-lines:
|
||||
config:
|
||||
threshold: 40
|
|
@ -1,10 +0,0 @@
|
|||
|
||||
# EditorConfig is awesome: http://EditorConfig.org
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
16
.eslintrc
16
.eslintrc
|
@ -1,16 +1,5 @@
|
|||
{
|
||||
"extends": ["eslint:recommended", "plugin:react/recommended"],
|
||||
"plugins": ["react"],
|
||||
"rules": {
|
||||
"quotes": [
|
||||
"error",
|
||||
"single"
|
||||
],
|
||||
"semi": [
|
||||
"error",
|
||||
"never"
|
||||
]
|
||||
},
|
||||
"extends": ["eslint:recommended", "prettier"],
|
||||
"parserOptions": {
|
||||
"sourceType": "module",
|
||||
"ecmaFeatures": {
|
||||
|
@ -21,6 +10,7 @@
|
|||
"env": {
|
||||
"browser": true,
|
||||
"node": true,
|
||||
"es6": true
|
||||
"es2020": true,
|
||||
"jest": true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: npm
|
||||
directory: '/'
|
||||
schedule:
|
||||
interval: weekly
|
||||
time: '04:00'
|
|
@ -0,0 +1,65 @@
|
|||
name: 'CI/CD Pipeline'
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- '**'
|
||||
pull_request:
|
||||
branches:
|
||||
- '**'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
node: ['18', '20']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
- run: npm run build
|
||||
|
||||
coverage:
|
||||
if: ${{ github.actor != 'dependabot[bot]' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- run: npm ci
|
||||
- uses: paambaati/codeclimate-action@v5.0.0
|
||||
env:
|
||||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||
with:
|
||||
coverageCommand: npm test
|
||||
|
||||
publish:
|
||||
needs: test
|
||||
if: success() && startsWith(github.ref, 'refs/tags')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- run: npm ci
|
||||
- run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
# - uses: actions/setup-node@v1
|
||||
# with:
|
||||
# registry-url: 'https://npm.pkg.github.com'
|
||||
# - run: npm publish
|
||||
# env:
|
||||
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@ -0,0 +1,70 @@
|
|||
# For most projects, this workflow file will not need changing; you simply need
|
||||
# to commit it to your repository.
|
||||
#
|
||||
# You may wish to alter this file to override the set of languages analyzed,
|
||||
# or to provide custom queries or build logic.
|
||||
#
|
||||
# ******** NOTE ********
|
||||
# We have attempted to detect the languages in your repository. Please check
|
||||
# the `language` matrix defined below to confirm you have the correct set of
|
||||
# supported CodeQL languages.
|
||||
#
|
||||
name: "CodeQL"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [ main ]
|
||||
schedule:
|
||||
- cron: '24 18 * * 2'
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: [ 'javascript' ]
|
||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
||||
# Learn more about CodeQL language support at https://git.io/codeql-language-support
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v1
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
|
||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
# and modify them (or add more) to build your code if your project
|
||||
# uses a compiled language
|
||||
|
||||
#- run: |
|
||||
# make bootstrap
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
|
@ -1,3 +1,3 @@
|
|||
/*.js
|
||||
node_modules
|
||||
package-lock.json
|
||||
coverage
|
|
@ -4,3 +4,5 @@ src
|
|||
.editorconfig
|
||||
.eslintrc
|
||||
.travis.yml
|
||||
coverage
|
||||
__tests__
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "none",
|
||||
"tabWidth": 2,
|
||||
"endOfLine": "auto"
|
||||
}
|
|
@ -1,5 +1,15 @@
|
|||
{
|
||||
"beforeChangelogCommand": "./node_modules/.bin/conventional-changelog -i CHANGELOG.md -s",
|
||||
"changelogCommand": "./node_modules/.bin/conventional-changelog | tail -n +3",
|
||||
"safeBump": false
|
||||
"hooks": {
|
||||
"before:init": "npm test",
|
||||
"after:bump": "npm run changelog"
|
||||
},
|
||||
"git": {
|
||||
"tagName": "v${version}"
|
||||
},
|
||||
"github": {
|
||||
"release": true
|
||||
},
|
||||
"npm": {
|
||||
"publish": false
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
language: node_js
|
||||
node_js: node
|
||||
|
||||
notifications:
|
||||
email: false
|
457
CHANGELOG.md
457
CHANGELOG.md
|
@ -1,111 +1,450 @@
|
|||
## 0.6.0 (2018-12-05)
|
||||
### Changelog
|
||||
|
||||
* add changelog ([2b268a1](https://github.com/kremalicious/gatsby-plugin-matomo/commit/2b268a1))
|
||||
* allow exclusion of paths ([9464d47](https://github.com/kremalicious/gatsby-plugin-matomo/commit/9464d47))
|
||||
* docs update ([12cdf0e](https://github.com/kremalicious/gatsby-plugin-matomo/commit/12cdf0e))
|
||||
* make release-it work with conventional-changelog ([2dcd5a7](https://github.com/kremalicious/gatsby-plugin-matomo/commit/2dcd5a7))
|
||||
* package updates ([0a5cc27](https://github.com/kremalicious/gatsby-plugin-matomo/commit/0a5cc27))
|
||||
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
|
||||
|
||||
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
||||
|
||||
#### [v0.16.2](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.16.1...v0.16.2)
|
||||
|
||||
## <small>0.5.1 (2018-11-21)</small>
|
||||
- dependency updates, new package-lock [`fe41f55`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/fe41f551e64f9985f8f5e84104cbd396a576074e)
|
||||
- bump Node.js version in CI [`729c1ce`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/729c1ce9212732248cd76f5ea6f07d1f42530191)
|
||||
- test against Node.js v18 & v20 [`5df8121`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/5df812176742f5dce873c7c01bedf1680b728fe7)
|
||||
|
||||
* bump packages ([cb26a40](https://github.com/kremalicious/gatsby-plugin-matomo/commit/cb26a40))
|
||||
* new Matomo logo ([64dd425](https://github.com/kremalicious/gatsby-plugin-matomo/commit/64dd425))
|
||||
* Release 0.5.1 ([c442282](https://github.com/kremalicious/gatsby-plugin-matomo/commit/c442282))
|
||||
* Update .codeclimate.yml ([9e03089](https://github.com/kremalicious/gatsby-plugin-matomo/commit/9e03089))
|
||||
* chore(package): update release-it to version 8.0.0 ([295fd1c](https://github.com/kremalicious/gatsby-plugin-matomo/commit/295fd1c))
|
||||
#### [v0.16.1](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.16.0...v0.16.1)
|
||||
|
||||
> 17 August 2023
|
||||
|
||||
- dependency updates [`1848c2b`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/1848c2ba4ecb7aff5c9524cc6b5ab155610c86e4)
|
||||
- Release 0.16.1 [`a4b1c3b`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/a4b1c3be078ba753b68fe97e6f3bd5f74fcf7893)
|
||||
- update readme [`3102610`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/3102610efe82825fc81ef34921db400596f3c67f)
|
||||
|
||||
## 0.5.0 (2018-08-06)
|
||||
#### [v0.16.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.15.2...v0.16.0)
|
||||
|
||||
* add codeclimate config ([a96e8ea](https://github.com/kremalicious/gatsby-plugin-matomo/commit/a96e8ea))
|
||||
* Add consent mode ([6d2ae9e](https://github.com/kremalicious/gatsby-plugin-matomo/commit/6d2ae9e))
|
||||
* Add disableCookies option ([ff9a2c7](https://github.com/kremalicious/gatsby-plugin-matomo/commit/ff9a2c7))
|
||||
* bump packages ([b08b4a5](https://github.com/kremalicious/gatsby-plugin-matomo/commit/b08b4a5))
|
||||
* Release 0.5.0 ([a482fd8](https://github.com/kremalicious/gatsby-plugin-matomo/commit/a482fd8))
|
||||
* Scoping js variables to avoid polluting global scope ([c4b21bf](https://github.com/kremalicious/gatsby-plugin-matomo/commit/c4b21bf))
|
||||
> 8 July 2023
|
||||
|
||||
- Bump eslint from 8.38.0 to 8.44.0 [`#437`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/437)
|
||||
- switch default script names [`#233`](https://github.com/kremalicious/gatsby-plugin-matomo/issues/233)
|
||||
- package updates [`8e84c78`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/8e84c789ba18e215c37fe1c3c55423124fb18b00)
|
||||
- remove eslint-plugin-prettier [`98103c8`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/98103c87eabf6b80b421a66ad74b8a86c3c12cc2)
|
||||
- Release 0.16.0 [`28ad591`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/28ad5918c73290468551f573200185cdf4389b18)
|
||||
|
||||
#### [v0.15.2](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.15.1...v0.15.2)
|
||||
|
||||
## <small>0.4.1 (2018-06-28)</small>
|
||||
> 27 April 2023
|
||||
|
||||
* improvements for SPA tracking ([7d653d5](https://github.com/kremalicious/gatsby-plugin-matomo/commit/7d653d5))
|
||||
* package updates ([347f951](https://github.com/kremalicious/gatsby-plugin-matomo/commit/347f951))
|
||||
* Release 0.4.1 ([b254c13](https://github.com/kremalicious/gatsby-plugin-matomo/commit/b254c13))
|
||||
* chore(package): update eslint to version 5.0.0 ([bd2c161](https://github.com/kremalicious/gatsby-plugin-matomo/commit/bd2c161))
|
||||
- Bump babel-preset-gatsby-package from 3.8.0 to 3.9.0 [`#418`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/418)
|
||||
- Bump vm2 from 3.9.16 to 3.9.17 [`#417`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/417)
|
||||
- Bump vm2 from 3.9.15 to 3.9.16 [`#416`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/416)
|
||||
- Release 0.15.2 [`d6ad15c`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/d6ad15cc1886afd916ec6d1c4a84cf86d1aa34bc)
|
||||
- dependency security fix [`3974169`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/39741697066a04465e9156aa5336aae5c14ec589)
|
||||
|
||||
#### [v0.15.1](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.15.0...v0.15.1)
|
||||
|
||||
> 12 April 2023
|
||||
|
||||
## 0.4.0 (2018-06-19)
|
||||
- Bump prettier from 2.8.4 to 2.8.7 [`#407`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/407)
|
||||
- Bump jest-environment-jsdom from 29.4.3 to 29.5.0 [`#406`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/406)
|
||||
- Bump release-it from 15.9.0 to 15.10.0 [`#411`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/411)
|
||||
- Bump eslint-config-prettier from 8.6.0 to 8.8.0 [`#408`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/408)
|
||||
- Bump babel-preset-gatsby-package from 3.7.0 to 3.8.0 [`#409`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/409)
|
||||
- Bump vm2 from 3.9.11 to 3.9.15 [`#412`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/412)
|
||||
- dependency updates [`3d087e4`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/3d087e4e33ed0fc05d49a5889a12354a4083101d)
|
||||
- Release 0.15.1 [`42a3320`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/42a33207b303bb7f0442cab787f8d0d2b3f50d7a)
|
||||
|
||||
* package updates ([356e68f](https://github.com/kremalicious/gatsby-plugin-matomo/commit/356e68f))
|
||||
* Release 0.4.0 ([1173236](https://github.com/kremalicious/gatsby-plugin-matomo/commit/1173236))
|
||||
* updates for Gatsby v2 ([59e442a](https://github.com/kremalicious/gatsby-plugin-matomo/commit/59e442a))
|
||||
#### [v0.15.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.14.0...v0.15.0)
|
||||
|
||||
> 23 March 2023
|
||||
|
||||
- Bump prettier from 2.8.3 to 2.8.4 [`#391`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/391)
|
||||
- Bump eslint from 8.33.0 to 8.36.0 [`#401`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/401)
|
||||
- Bump release-it from 15.6.0 to 15.9.0 [`#405`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/405)
|
||||
- Bump webpack from 5.75.0 to 5.76.1 [`#404`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/404)
|
||||
- Bump @babel/cli from 7.20.7 to 7.21.0 [`#399`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/399)
|
||||
- Bump babel-preset-gatsby-package from 3.6.0 to 3.7.0 [`#397`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/397)
|
||||
- add additionalTrackers to set multiple trackers [`#403`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/403)
|
||||
- Bump babel-preset-gatsby-package from 3.5.0 to 3.6.0 [`#390`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/390)
|
||||
- Bump jest-environment-jsdom from 29.4.1 to 29.4.3 [`#395`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/395)
|
||||
- Bump jest from 29.4.1 to 29.4.3 [`#396`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/396)
|
||||
- Bump http-cache-semantics from 4.1.0 to 4.1.1 [`#389`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/389)
|
||||
- Bump eslint from 8.32.0 to 8.33.0 [`#387`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/387)
|
||||
- Bump babel-preset-gatsby-package from 3.4.0 to 3.5.0 [`#386`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/386)
|
||||
- Bump jest from 29.3.1 to 29.4.1 [`#385`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/385)
|
||||
- Bump jest-environment-jsdom from 29.3.1 to 29.4.1 [`#388`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/388)
|
||||
- Bump ua-parser-js from 0.7.32 to 0.7.33 [`#384`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/384)
|
||||
- Bump prettier from 2.8.2 to 2.8.3 [`#382`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/382)
|
||||
- Bump babel-preset-gatsby-package from 3.3.0 to 3.4.0 [`#383`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/383)
|
||||
- Bump engine.io and gatsby [`#381`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/381)
|
||||
- Bump jest from 29.3.0 to 29.3.1 [`#364`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/364)
|
||||
- Bump @babel/cli from 7.19.3 to 7.20.7 [`#380`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/380)
|
||||
- Bump eslint-config-prettier from 8.5.0 to 8.6.0 [`#379`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/379)
|
||||
- Bump release-it from 15.5.0 to 15.6.0 [`#377`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/377)
|
||||
- Bump eslint from 8.31.0 to 8.32.0 [`#378`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/378)
|
||||
- Bump jest-environment-jsdom from 29.3.0 to 29.3.1 [`#363`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/363)
|
||||
- Bump babel-preset-gatsby-package from 3.0.0 to 3.3.0 [`#372`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/372)
|
||||
- Bump prettier from 2.7.1 to 2.8.2 [`#376`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/376)
|
||||
- Bump eslint from 8.27.0 to 8.31.0 [`#374`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/374)
|
||||
- Bump json5 from 1.0.1 to 1.0.2 [`#375`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/375)
|
||||
- Bump decode-uri-component from 0.2.0 to 0.2.2 [`#370`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/370)
|
||||
- Bump loader-utils from 1.4.1 to 1.4.2 [`#365`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/365)
|
||||
- Release 0.15.0 [`6919fc6`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/6919fc6b1a8f9f91a8fc05a952d7ca7f318fca8d)
|
||||
|
||||
## <small>0.3.2 (2018-05-23)</small>
|
||||
#### [v0.14.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.13.0...v0.14.0)
|
||||
|
||||
* add codeclimate badge ([de45bec](https://github.com/kremalicious/gatsby-plugin-matomo/commit/de45bec))
|
||||
* change repository field ([260273e](https://github.com/kremalicious/gatsby-plugin-matomo/commit/260273e))
|
||||
* Release 0.3.2 ([c531e47](https://github.com/kremalicious/gatsby-plugin-matomo/commit/c531e47))
|
||||
* save some lines ([5034a3b](https://github.com/kremalicious/gatsby-plugin-matomo/commit/5034a3b))
|
||||
> 8 November 2022
|
||||
|
||||
- Bump loader-utils from 1.4.0 to 1.4.1 [`#362`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/362)
|
||||
- Bump release-it from 15.4.2 to 15.5.0 [`#361`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/361)
|
||||
- Bump eslint from 8.26.0 to 8.27.0 [`#360`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/360)
|
||||
- Bump ws from 7.4.5 to 7.4.6 [`#359`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/359)
|
||||
- Bump ansi-html and gatsby [`#358`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/358)
|
||||
- Bump node-forge and gatsby [`#357`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/357)
|
||||
- Bump parse-url and gatsby-telemetry [`#356`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/356)
|
||||
- Bump cross-fetch and graphql-config [`#355`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/355)
|
||||
- Bump vm2 from 3.9.9 to 3.9.11 [`#346`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/346)
|
||||
- Bump eslint from 8.23.1 to 8.26.0 [`#352`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/352)
|
||||
- Bump babel-preset-gatsby-package from 2.23.0 to 2.24.0 [`#348`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/348)
|
||||
- Bump @babel/cli from 7.18.10 to 7.19.3 [`#349`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/349)
|
||||
- Bump eslint from 8.23.0 to 8.23.1 [`#343`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/343)
|
||||
- Bump babel-preset-gatsby-package from 2.21.0 to 2.23.0 [`#344`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/344)
|
||||
- Bump release-it from 15.1.1 to 15.4.2 [`#342`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/342)
|
||||
- Bump @babel/cli from 7.18.6 to 7.18.10 [`#334`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/334)
|
||||
- Bump eslint from 8.22.0 to 8.23.0 [`#337`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/337)
|
||||
- Bump shell-quote from 1.7.2 to 1.7.3 [`#336`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/336)
|
||||
- Bump babel-preset-gatsby-package from 2.17.0 to 2.21.0 [`#333`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/333)
|
||||
- Bump eslint-plugin-prettier from 4.0.0 to 4.2.1 [`#323`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/323)
|
||||
- Bump prettier from 2.6.2 to 2.7.1 [`#321`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/321)
|
||||
- Bump file-type from 16.5.3 to 16.5.4 [`#328`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/328)
|
||||
- Bump eslint from 8.19.0 to 8.22.0 [`#332`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/332)
|
||||
- Bump terser from 5.12.1 to 5.14.2 [`#327`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/327)
|
||||
- Bump moment from 2.29.2 to 2.29.4 [`#320`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/320)
|
||||
- Bump eventsource from 1.1.0 to 1.1.1 [`#306`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/306)
|
||||
- Bump devcert from 1.2.0 to 1.2.1 [`#308`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/308)
|
||||
- Bump eslint from 8.15.0 to 8.19.0 [`#315`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/315)
|
||||
- Bump release-it from 14.14.1 to 15.1.1 [`#317`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/317)
|
||||
- Bump sharp from 0.30.3 to 0.30.6 [`#307`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/307)
|
||||
- Bump @babel/cli from 7.17.6 to 7.18.6 [`#316`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/316)
|
||||
- Bump parse-url from 6.0.0 to 6.0.2 [`#319`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/319)
|
||||
- Bump babel-preset-gatsby-package from 2.14.0 to 2.17.0 [`#314`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/314)
|
||||
- Bump eslint from 8.13.0 to 8.15.0 [`#303`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/303)
|
||||
- Bump babel-preset-gatsby-package from 2.11.0 to 2.14.0 [`#302`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/302)
|
||||
- Gatsby v5 support [`d02b3dd`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/d02b3dddbb11d6a05d2bf33495d022669f2d280d)
|
||||
- Release 0.14.0 [`469302a`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/469302ae6bb2f83095dfea192c2e7ac97190d1c3)
|
||||
|
||||
#### [v0.13.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.12.0...v0.13.0)
|
||||
|
||||
## <small>0.3.1 (2018-05-14)</small>
|
||||
> 10 April 2022
|
||||
|
||||
* fix environment check ([dc574ab](https://github.com/kremalicious/gatsby-plugin-matomo/commit/dc574ab))
|
||||
* package updates ([2acbd45](https://github.com/kremalicious/gatsby-plugin-matomo/commit/2acbd45))
|
||||
* Release 0.3.1 ([f9050ce](https://github.com/kremalicious/gatsby-plugin-matomo/commit/f9050ce))
|
||||
- Bump prettier from 2.6.1 to 2.6.2 [`#291`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/291)
|
||||
- Bump moment from 2.29.1 to 2.29.2 [`#293`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/293)
|
||||
- Bump release-it from 14.13.1 to 14.14.0 [`#292`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/292)
|
||||
- Bump babel-preset-gatsby-package from 2.10.0 to 2.11.0 [`#290`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/290)
|
||||
- Bump eslint from 8.11.0 to 8.12.0 [`#289`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/289)
|
||||
- Bump prettier from 2.6.0 to 2.6.1 [`#288`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/288)
|
||||
- Bump minimist from 1.2.5 to 1.2.6 [`#287`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/287)
|
||||
- Bump babel-preset-gatsby-package from 2.9.0 to 2.10.0 [`#286`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/286)
|
||||
- Bump prettier from 2.5.1 to 2.6.0 [`#285`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/285)
|
||||
- Bump release-it from 14.12.5 to 14.13.1 [`#284`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/284)
|
||||
- Bump eslint from 8.10.0 to 8.11.0 [`#283`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/283)
|
||||
- default to Gatsby v4 peer dependency [`ac8dd7d`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/ac8dd7df43dea4ab674ce524f68356dcc6f9c473)
|
||||
- package updates [`3565e9a`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/3565e9aa9cce23aef293ae2a386d25cb9ad061b6)
|
||||
- Release 0.13.0 [`5bda1a1`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/5bda1a1777970a15b1859f94e66a83a042109b0c)
|
||||
|
||||
#### [v0.12.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.11.1...v0.12.0)
|
||||
|
||||
> 10 April 2022
|
||||
|
||||
## 0.3.0 (2018-05-10)
|
||||
- default to Gatsby v4 peer dependency [`5bdc911`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/5bdc911576e006f49bc40fee72905902dcfdfe7e)
|
||||
- package updates [`455d381`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/455d38166535b7d0b89acad32310970d41eef739)
|
||||
- Release 0.12.0 [`f9ad56c`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/f9ad56c0dbc900f173b950d01cde6105b3784a94)
|
||||
|
||||
* allow local piwik.js path to be set ([a15146c](https://github.com/kremalicious/gatsby-plugin-matomo/commit/a15146c))
|
||||
* Release 0.3.0 ([2e36f13](https://github.com/kremalicious/gatsby-plugin-matomo/commit/2e36f13))
|
||||
#### [v0.11.1](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.11.0...v0.11.1)
|
||||
|
||||
> 11 March 2022
|
||||
|
||||
- Bump eslint-config-prettier from 8.4.0 to 8.5.0 [`#282`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/282)
|
||||
- Bump release-it from 14.12.4 to 14.12.5 [`#278`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/278)
|
||||
- Bump @babel/cli from 7.17.3 to 7.17.6 [`#277`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/277)
|
||||
- Bump eslint from 8.9.0 to 8.10.0 [`#279`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/279)
|
||||
- Bump url-parse from 1.5.7 to 1.5.10 [`#280`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/280)
|
||||
- Bump babel-preset-gatsby-package from 2.7.0 to 2.9.0 [`#281`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/281)
|
||||
- Bump eslint-config-prettier from 8.3.0 to 8.4.0 [`#274`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/274)
|
||||
- Bump @babel/cli from 7.17.0 to 7.17.3 [`#275`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/275)
|
||||
- Bump url-parse from 1.5.3 to 1.5.7 [`#273`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/273)
|
||||
- Bump follow-redirects from 1.14.1 to 1.14.8 [`#272`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/272)
|
||||
- Bump engine.io from 4.1.1 to 4.1.2 [`#271`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/271)
|
||||
- Bump babel-preset-gatsby-package from 2.6.0 to 2.7.0 [`#270`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/270)
|
||||
- Bump eslint from 8.8.0 to 8.9.0 [`#269`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/269)
|
||||
- Bump jest from 27.5.0 to 27.5.1 [`#268`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/268)
|
||||
- Bump @babel/cli from 7.16.8 to 7.17.0 [`#265`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/265)
|
||||
- Bump auto-changelog from 2.3.0 to 2.4.0 [`#266`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/266)
|
||||
- Bump jest from 27.4.7 to 27.5.0 [`#267`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/267)
|
||||
- Bump babel-preset-gatsby-package from 2.5.0 to 2.6.0 [`#263`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/263)
|
||||
- Bump nanoid from 3.1.30 to 3.2.0 [`#264`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/264)
|
||||
- Bump eslint from 8.7.0 to 8.8.0 [`#262`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/262)
|
||||
- Bump release-it from 14.12.3 to 14.12.4 [`#261`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/261)
|
||||
- Bump babel-preset-gatsby-package from 2.4.0 to 2.5.0 [`#257`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/257)
|
||||
- Bump release-it from 14.12.1 to 14.12.3 [`#258`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/258)
|
||||
- Bump eslint from 8.6.0 to 8.7.0 [`#259`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/259)
|
||||
- Bump @babel/cli from 7.16.7 to 7.16.8 [`#260`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/260)
|
||||
- Bump release-it from 14.11.8 to 14.12.1 [`#255`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/255)
|
||||
- Bump jest from 27.4.5 to 27.4.7 [`#256`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/256)
|
||||
- Bump @babel/cli from 7.16.0 to 7.16.7 [`#254`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/254)
|
||||
- Bump eslint from 8.5.0 to 8.6.0 [`#253`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/253)
|
||||
- Bump eslint from 8.4.1 to 8.5.0 [`#250`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/250)
|
||||
- Bump babel-preset-gatsby-package from 2.3.0 to 2.4.0 [`#252`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/252)
|
||||
- Bump eslint from 8.4.0 to 8.4.1 [`#248`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/248)
|
||||
- Bump eslint from 8.3.0 to 8.4.0 [`#247`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/247)
|
||||
- Bump babel-preset-gatsby-package from 2.2.0 to 2.3.0 [`#246`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/246)
|
||||
- Bump prettier from 2.5.0 to 2.5.1 [`#244`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/244)
|
||||
- package updates [`b6d51f7`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/b6d51f76cc6e54d9c002ddd44605fd191201d18b)
|
||||
- more package updates [`b4efe1d`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/b4efe1dfb0ee1793306316f8ed8da466957b19cc)
|
||||
- Create codeql-analysis.yml [`8bfa9d3`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/8bfa9d3b32fc0bc04ebc595b225cc3bbb3d7636a)
|
||||
|
||||
## 0.2.0 (2018-05-08)
|
||||
#### [v0.11.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.10.0...v0.11.0)
|
||||
|
||||
* add dev mode ([5c05efe](https://github.com/kremalicious/gatsby-plugin-matomo/commit/5c05efe))
|
||||
* Release 0.2.0 ([a3ef6d4](https://github.com/kremalicious/gatsby-plugin-matomo/commit/a3ef6d4))
|
||||
> 28 November 2021
|
||||
|
||||
- Bump release-it from 14.6.2 to 14.7.0 [`#192`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/192)
|
||||
- Bump babel-preset-gatsby-package from 1.5.0 to 1.6.0 [`#193`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/193)
|
||||
- Bump auto-changelog from 2.2.1 to 2.3.0 [`#191`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/191)
|
||||
- support for Gatsby v4 [`#234`](https://github.com/kremalicious/gatsby-plugin-matomo/issues/234)
|
||||
- package updates [`842c343`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/842c34334339a8e63b8a5a2b5c40738a78d0f7a0)
|
||||
- Release 0.11.0 [`628dfb2`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/628dfb21ac11e320e33758bad829be166058fb18)
|
||||
- readme update [`b9f0d3d`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/b9f0d3d1dbf80d1aa7af40bde3dd1062701c979d)
|
||||
|
||||
#### [v0.10.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.9.0...v0.10.0)
|
||||
|
||||
## <small>0.1.3 (2018-05-08)</small>
|
||||
> 23 May 2021
|
||||
|
||||
* readme updates ([49640f4](https://github.com/kremalicious/gatsby-plugin-matomo/commit/49640f4))
|
||||
* Release 0.1.3 ([0109e19](https://github.com/kremalicious/gatsby-plugin-matomo/commit/0109e19))
|
||||
- Add support for error tracking [Fixes #168] [`#169`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/169)
|
||||
- Add cookie consent option [`#102`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/102)
|
||||
- feat: add respectDnt option [`#129`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/129)
|
||||
- fix: Set correct gatsby peer dep [`#176`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/176)
|
||||
- Bump @babel/cli from 7.12.10 to 7.12.16 [`#151`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/151)
|
||||
- Bump eslint from 7.19.0 to 7.20.0 [`#150`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/150)
|
||||
- Bump release-it from 14.2.2 to 14.4.0 [`#149`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/149)
|
||||
- Bump @babel/eslint-parser from 7.12.1 to 7.12.16 [`#147`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/147)
|
||||
- Bump @babel/runtime from 7.12.5 to 7.12.13 [`#146`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/146)
|
||||
- Bump @babel/core from 7.12.10 to 7.12.16 [`#148`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/148)
|
||||
- Bump babel-preset-gatsby-package from 0.11.0 to 0.12.0 [`#142`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/142)
|
||||
- Add support for error tracking [Fixes #168] (#169) [`#168`](https://github.com/kremalicious/gatsby-plugin-matomo/issues/168) [`#168`](https://github.com/kremalicious/gatsby-plugin-matomo/issues/168)
|
||||
- package updates [`4858deb`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/4858debe6637d2aa95d6c4f95b4ca883d0e1817a)
|
||||
- Release 0.10.0 [`af31666`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/af31666e8ec0e416f359c206cc31430cf91d3dc8)
|
||||
|
||||
#### [v0.9.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.8.3...v0.9.0)
|
||||
|
||||
> 1 February 2021
|
||||
|
||||
## <small>0.1.2 (2018-05-08)</small>
|
||||
- CI tweaks & package updates [`#141`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/141)
|
||||
- Bump auto-changelog from 2.2.0 to 2.2.1 [`#79`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/79)
|
||||
- Bump jest from 26.1.0 to 26.5.3 [`#87`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/87)
|
||||
- Bump release-it from 13.6.5 to 14.2.0 [`#95`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/95)
|
||||
- Bump prettier from 2.0.5 to 2.1.2 [`#78`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/78)
|
||||
- Bump eslint-config-prettier from 6.11.0 to 6.13.0 [`#96`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/96)
|
||||
- Bump node-fetch from 2.6.0 to 2.6.1 [`#75`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/75)
|
||||
- Bump eslint from 7.5.0 to 7.11.0 [`#86`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/86)
|
||||
- Bump @babel/runtime from 7.10.5 to 7.12.1 [`#92`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/92)
|
||||
- Bump @babel/core from 7.10.5 to 7.12.3 [`#94`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/94)
|
||||
- Bump @babel/cli from 7.10.5 to 7.12.1 [`#91`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/91)
|
||||
- Bump lodash from 4.17.15 to 4.17.19 [`#44`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/44)
|
||||
- Bump release-it from 13.6.4 to 13.6.5 [`#38`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/38)
|
||||
- Bump babel-preset-gatsby-package from 0.5.1 to 0.5.2 [`#39`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/39)
|
||||
- Bump @babel/cli from 7.10.4 to 7.10.5 [`#42`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/42)
|
||||
- Bump @babel/core from 7.10.4 to 7.10.5 [`#41`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/41)
|
||||
- Bump @babel/runtime from 7.10.4 to 7.10.5 [`#40`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/40)
|
||||
- Bump eslint from 7.4.0 to 7.5.0 [`#43`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/43)
|
||||
- Bump auto-changelog from 2.1.0 to 2.2.0 [`#37`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/37)
|
||||
- Bump eslint from 7.3.1 to 7.4.0 [`#36`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/36)
|
||||
- Bump babel-preset-gatsby-package from 0.4.6 to 0.5.0 [`#33`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/33)
|
||||
- Create Dependabot config file [`#31`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/31)
|
||||
- Bump eslint from 6.8.0 to 7.0.0 [`#30`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/30)
|
||||
- Bump babel-preset-gatsby-package from 0.3.2 to 0.4.1 [`#29`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/29)
|
||||
- Bump jest from 25.5.4 to 26.0.1 [`#28`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/28)
|
||||
- Bump auto-changelog from 1.16.4 to 2.0.0 [`#27`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/27)
|
||||
- package updates [`12093c3`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/12093c349c1d52570f71ad252f8cf03a1b46a368)
|
||||
- package updates [`b3a6700`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/b3a67005d00c8b68bbf765b3f148e7ab874a8519)
|
||||
- CI tweaks [`8e62075`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/8e620750dc74b44d1953500644f7b802c1ac3fd8)
|
||||
|
||||
* do nothing on route updates when piwik isn't loaded and in development ([6c0a840](https://github.com/kremalicious/gatsby-plugin-matomo/commit/6c0a840))
|
||||
* move greenskeeper badge ([b361eef](https://github.com/kremalicious/gatsby-plugin-matomo/commit/b361eef))
|
||||
* Release 0.1.2 ([370025f](https://github.com/kremalicious/gatsby-plugin-matomo/commit/370025f))
|
||||
#### [v0.8.3](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.8.2...v0.8.3)
|
||||
|
||||
> 6 April 2020
|
||||
|
||||
- Make load tracking configurable [`#25`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/25)
|
||||
- onRouteUpdate test tweaks [`5871f66`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/5871f667b90a3d9ed80438462949c7f65c68be69)
|
||||
- Release 0.8.3 [`3d72ad2`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/3d72ad2e85fade10613daa7d7df49f36f2537d34)
|
||||
- package updates [`86258f8`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/86258f8d79e6a337180197f3a01afd69c38da130)
|
||||
|
||||
## <small>0.1.1 (2018-05-07)</small>
|
||||
#### [v0.8.2](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.8.1...v0.8.2)
|
||||
|
||||
* fix plugin entry ([4f1f6b3](https://github.com/kremalicious/gatsby-plugin-matomo/commit/4f1f6b3))
|
||||
* link up readme badges ([6793592](https://github.com/kremalicious/gatsby-plugin-matomo/commit/6793592))
|
||||
* Release 0.1.1 ([48c73ff](https://github.com/kremalicious/gatsby-plugin-matomo/commit/48c73ff))
|
||||
* docs(readme): add Greenkeeper badge ([ec73329](https://github.com/kremalicious/gatsby-plugin-matomo/commit/ec73329))
|
||||
> 22 March 2020
|
||||
|
||||
- Add support for custom JS and PHP script names [`#24`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/24)
|
||||
- package updates [`aeeffda`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/aeeffda980fcf90c41448f2567bb071253b87c25)
|
||||
- Make PHP and JS script names configurable [`12a4ebe`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/12a4ebed8d36a91024b28806e3a9f47b7d499cc0)
|
||||
- disable GitHub packsge registry publishing [`777be77`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/777be77f73de3d02ba792a03e04931850a6342e4)
|
||||
|
||||
#### [v0.8.1](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.8.0...v0.8.1)
|
||||
|
||||
## 0.1.0 (2018-05-07)
|
||||
> 24 February 2020
|
||||
|
||||
* add Travis, add badges, add semi-auto releases ([fe823b7](https://github.com/kremalicious/gatsby-plugin-matomo/commit/fe823b7))
|
||||
* initial commit 🍹 ([49bffd3](https://github.com/kremalicious/gatsby-plugin-matomo/commit/49bffd3))
|
||||
* Release 0.1.0 ([09739a7](https://github.com/kremalicious/gatsby-plugin-matomo/commit/09739a7))
|
||||
- switch test run to GitHub Actions [`#23`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/23)
|
||||
- add cookieDomain setting [`#22`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/22)
|
||||
- Release 0.8.1 [`e899e37`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/e899e371d34e1f0b98034bb50ae98b6a61368cfc)
|
||||
- package updates [`9703688`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/97036887d11fc5e18c1ae357f106d5ece8bea52c)
|
||||
|
||||
#### [v0.8.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.7.2...v0.8.0)
|
||||
|
||||
> 15 February 2020
|
||||
|
||||
- Updates, cleanup, and testing [`#21`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/21)
|
||||
- Add trackAllContentImpressions to record/enable content tracking [`#19`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/19)
|
||||
- setup testing [`8103a64`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/8103a641389941d1ef34d6486722901468297dfd)
|
||||
- switch to auto-changelog [`92f3749`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/92f37498ff9e0b09b32be0579d2f19c15466f294)
|
||||
- updates and cleanup [`c0269c7`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/c0269c71e223bf8ed4529de67ed1968ad9679de0)
|
||||
|
||||
#### [v0.7.2](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.7.1...v0.7.2)
|
||||
|
||||
> 13 June 2019
|
||||
|
||||
- Fix missing tracking code in rendered HTML [`#18`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/18)
|
||||
- update changelog [`57092e5`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/57092e5b0f755867885d4877ba539e2e684eba3c)
|
||||
- Release 0.7.2 [`31cabd6`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/31cabd60afbf9da39bce3cbd9187ba203c8f6e93)
|
||||
|
||||
#### [v0.7.1](https://github.com/kremalicious/gatsby-plugin-matomo/compare/0.7.0...v0.7.1)
|
||||
|
||||
> 10 June 2019
|
||||
|
||||
- preconnect to configured Matomo host url [`#17`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/17)
|
||||
- Add prettier [`#16`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/16)
|
||||
- add prettier [`858fc2e`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/858fc2eb8a58dc49cfe1fea77d2b71c7d2ac4888)
|
||||
- new release-it setup [`bbb5f19`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/bbb5f19f94b867b7f7f6959a201690c290ac0fe2)
|
||||
- bump packages [`e3479f6`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/e3479f6955f6324140e7243b0f680dd3771250f7)
|
||||
|
||||
#### [0.7.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/0.6.1...0.7.0)
|
||||
|
||||
> 30 March 2019
|
||||
|
||||
- Page tracking improvements [`#15`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/15)
|
||||
- capture and send custom page title [`#11`](https://github.com/kremalicious/gatsby-plugin-matomo/issues/11)
|
||||
- better page url & referrer url tracking [`04b8ba1`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/04b8ba19038f49571a0f19099f9af4575739a8fb)
|
||||
- update changelog [`24f57da`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/24f57da352ee95781ed2c4268f31adaaa5aa1d82)
|
||||
- Release 0.7.0 [`4c36d9c`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/4c36d9c7c6212542fc1b3ebba977ee9c1e9bc526)
|
||||
|
||||
#### [0.6.1](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.6.0...0.6.1)
|
||||
|
||||
> 30 March 2019
|
||||
|
||||
- package updates [`#14`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/14)
|
||||
- Update release-it to the latest version 🚀 [`#12`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/12)
|
||||
- Update release-it to the latest version 🚀 [`#10`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/10)
|
||||
- run changelog before release [`5da11a4`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/5da11a47609f48328d544bab07600576c6f060e0)
|
||||
- Release 0.6.1 [`f62c5bf`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/f62c5bf2926726bfc649d24b7fd555974c10482f)
|
||||
- chore(package): update release-it to version 10.0.0 [`d56c6c3`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/d56c6c3dba6607f5d67bf70a0953a8d922d84298)
|
||||
|
||||
#### [v0.6.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.5.1...v0.6.0)
|
||||
|
||||
> 5 December 2018
|
||||
|
||||
- Path exclusion [`#9`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/9)
|
||||
- add changelog [`2b268a1`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/2b268a1c6c0df2b4e344c1f965a665e7be8d9341)
|
||||
- allow exclusion of paths [`9464d47`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/9464d47ae1b191ef494148fab4af200e3ea9c85c)
|
||||
- make release-it work with conventional-changelog [`2dcd5a7`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/2dcd5a7d02a2c35b95ddbec44d2319b0b25dc682)
|
||||
|
||||
#### [v0.5.1](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.5.0...v0.5.1)
|
||||
|
||||
> 21 November 2018
|
||||
|
||||
- Update release-it to the latest version 🚀 [`#8`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/8)
|
||||
- bump packages [`cb26a40`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/cb26a40ece69e756862c5b6986eed60acca61bdd)
|
||||
- new Matomo logo [`64dd425`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/64dd4259ecda1fba49ac2bbfba7727bd5a544e3c)
|
||||
- Release 0.5.1 [`c442282`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/c44228275734a5edcf790a0bd8c91b9eec634891)
|
||||
|
||||
#### [v0.5.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.4.1...v0.5.0)
|
||||
|
||||
> 6 August 2018
|
||||
|
||||
- Add consent mode [`#7`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/7)
|
||||
- Scoping js variables to avoid polluting global scope [`#6`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/6)
|
||||
- bump packages [`b08b4a5`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/b08b4a5a45c477898b53831e48109bd672e3e11d)
|
||||
- add codeclimate config [`a96e8ea`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/a96e8ea5f89fdc07f84bdd49b927c5c757cf4665)
|
||||
- Add disableCookies option [`ff9a2c7`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/ff9a2c755867e60964953c109ab382915b662279)
|
||||
|
||||
#### [v0.4.1](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.4.0...v0.4.1)
|
||||
|
||||
> 28 June 2018
|
||||
|
||||
- Update eslint to the latest version 🚀 [`#5`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/5)
|
||||
- improvements for SPA tracking [`7d653d5`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/7d653d564cb0ca4ae05d6897d94185ea2198462e)
|
||||
- package updates [`347f951`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/347f951174ec6b9f31b91cbd7bce90178eb49a1a)
|
||||
- Release 0.4.1 [`b254c13`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/b254c130b9ee8c750e2dd3f69540537094eac235)
|
||||
|
||||
#### [v0.4.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.3.2...v0.4.0)
|
||||
|
||||
> 19 June 2018
|
||||
|
||||
- Updates for Gatsby v2 [`#4`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/4)
|
||||
- updates for Gatsby v2 [`59e442a`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/59e442a31d85af27f8cdf65a2d15ed8601995fad)
|
||||
- package updates [`356e68f`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/356e68faf500baf4c69461fa8323995f30400e24)
|
||||
- Release 0.4.0 [`1173236`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/117323688af1963ca5602b13ddd6131aba70376c)
|
||||
|
||||
#### [v0.3.2](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.3.1...v0.3.2)
|
||||
|
||||
> 23 May 2018
|
||||
|
||||
- save some lines [`5034a3b`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/5034a3b8e5201d976f7deb210b471caa50ea16cd)
|
||||
- Release 0.3.2 [`c531e47`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/c531e47cf5905acda149a637606ecfea9e2e40bc)
|
||||
- change repository field [`260273e`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/260273e0139db6d5bf76bc29c37d2f93fd254f05)
|
||||
|
||||
#### [v0.3.1](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.3.0...v0.3.1)
|
||||
|
||||
> 14 May 2018
|
||||
|
||||
- package updates [`2acbd45`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/2acbd450cb7dffe39c3cb57edbad5aeebe6d7799)
|
||||
- Release 0.3.1 [`f9050ce`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/f9050ceaa2b8d214d113ca78785bb7ba78f14d5a)
|
||||
- fix environment check [`dc574ab`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/dc574ab72c4ec01c4fa995ae9aa9a1469f04387a)
|
||||
|
||||
#### [v0.3.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.2.0...v0.3.0)
|
||||
|
||||
> 11 May 2018
|
||||
|
||||
- allow local piwik.js path to be set [`a15146c`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/a15146c3dc6b692070e09b38646ad925fc92fb28)
|
||||
- Release 0.3.0 [`2e36f13`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/2e36f1383d39703d10405b9e82782a6efa54d56f)
|
||||
|
||||
#### [v0.2.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.1.3...v0.2.0)
|
||||
|
||||
> 8 May 2018
|
||||
|
||||
- add dev mode [`5c05efe`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/5c05efe1815fb617e0153924696dc6350e2e753c)
|
||||
- Release 0.2.0 [`a3ef6d4`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/a3ef6d4c635a15d6cc64c7c3735f551737f3eff7)
|
||||
|
||||
#### [v0.1.3](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.1.2...v0.1.3)
|
||||
|
||||
> 8 May 2018
|
||||
|
||||
- readme updates [`49640f4`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/49640f4d37b54728c5a80ae9f2c63cb103318386)
|
||||
- Release 0.1.3 [`0109e19`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/0109e19e106f8620056db2775205101bf4cc1c3b)
|
||||
|
||||
#### [v0.1.2](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.1.1...v0.1.2)
|
||||
|
||||
> 8 May 2018
|
||||
|
||||
- Add Greenkeeper badge 🌴 [`#1`](https://github.com/kremalicious/gatsby-plugin-matomo/pull/1)
|
||||
- do nothing on route updates when piwik isn't loaded and in development [`6c0a840`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/6c0a840de21ce46f544b6ce9a7dd63e961e7ab6b)
|
||||
- move greenskeeper badge [`b361eef`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/b361eef43bc85c7acf8be73f3067686912ac49b3)
|
||||
- Release 0.1.2 [`370025f`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/370025f1ee733d8f87a70def3bf213e52a1125fa)
|
||||
|
||||
#### [v0.1.1](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.1.0...v0.1.1)
|
||||
|
||||
> 7 May 2018
|
||||
|
||||
- link up readme badges [`6793592`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/6793592ed28e23177ad0450874ebba055d912dc2)
|
||||
- Release 0.1.1 [`48c73ff`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/48c73ff2415dd25ce85924cdd53056b8f561face)
|
||||
- fix plugin entry [`4f1f6b3`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/4f1f6b30338eceeb160a8bd467e198a9e72f5b29)
|
||||
|
||||
#### v0.1.0
|
||||
|
||||
> 7 May 2018
|
||||
|
||||
- initial commit 🍹 [`49bffd3`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/49bffd3cf18f1ba9e099048f9a5591f9200f3296)
|
||||
- add Travis, add badges, add semi-auto releases [`fe823b7`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/fe823b76a18a5310e3cd19965b9f61e02774f7e0)
|
||||
- Release 0.1.0 [`09739a7`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/09739a72c5c2e08b0a74faba8bc4cfb03fdac220)
|
||||
|
|
2
LICENSE
2
LICENSE
|
@ -1,4 +1,4 @@
|
|||
Copyright (c) 2018 Matthias Kretschmann m@kretschmann.io
|
||||
Copyright (c) 2020 Matthias Kretschmann m@kretschmann.io
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
|
|
95
README.md
95
README.md
|
@ -1,11 +1,11 @@
|
|||
[![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
|
||||
|
||||
[![npm package](https://img.shields.io/npm/v/gatsby-plugin-matomo.svg)](https://www.npmjs.com/package/gatsby-plugin-matomo)
|
||||
[![Build Status](https://travis-ci.com/kremalicious/gatsby-plugin-matomo.svg?branch=master)](https://travis-ci.com/kremalicious/gatsby-plugin-matomo)
|
||||
[![Build Status](https://github.com/kremalicious/gatsby-plugin-matomo/workflows/CI%2FCD%20Pipeline/badge.svg)](https://github.com/kremalicious/gatsby-plugin-matomo/actions)
|
||||
[![Maintainability](https://api.codeclimate.com/v1/badges/067339a02f2058f5ba01/maintainability)](https://codeclimate.com/github/kremalicious/gatsby-plugin-matomo/maintainability)
|
||||
[![Greenkeeper badge](https://badges.greenkeeper.io/kremalicious/gatsby-plugin-matomo.svg)](https://greenkeeper.io/)
|
||||
[![Test Coverage](https://api.codeclimate.com/v1/badges/067339a02f2058f5ba01/test_coverage)](https://codeclimate.com/github/kremalicious/gatsby-plugin-matomo/test_coverage)
|
||||
|
||||
> 🥂 Gatsby plugin to add Matomo (formerly Piwik) onto a site. https://kremalicious.com/gatsby-plugin-matomo/
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
|||
|
||||
## Features
|
||||
|
||||
Plugin uses sensible defaults prioritizing user experience & privacy:
|
||||
Plugin uses sensible defaults prioritizing user experience, performance & privacy:
|
||||
|
||||
- include tracking code in all server-side rendered routes
|
||||
- track all route views as custom events
|
||||
|
@ -31,31 +31,32 @@ Plugin uses sensible defaults prioritizing user experience & privacy:
|
|||
- consent mode for privacy
|
||||
- allow loading tracking script locally
|
||||
- define paths to be excluded from tracking
|
||||
- `preconnect` to configured Matomo host url
|
||||
- dev mode for local development
|
||||
|
||||
## Usage
|
||||
|
||||
1. First, install the plugin from your project's root:
|
||||
|
||||
```bash
|
||||
cd yourproject/
|
||||
npm i gatsby-plugin-matomo
|
||||
```
|
||||
```bash
|
||||
cd yourproject/
|
||||
npm i gatsby-plugin-matomo
|
||||
```
|
||||
|
||||
2. Then load the plugin from your `gatsby-config.js` and set the required variables:
|
||||
|
||||
```js
|
||||
plugins: [
|
||||
{
|
||||
resolve: 'gatsby-plugin-matomo',
|
||||
options: {
|
||||
siteId: 'YOUR_SITE_ID',
|
||||
matomoUrl: 'https://YOUR_MATOMO_URL.COM',
|
||||
siteUrl: 'https://YOUR_LIVE_SITE_URL.COM'
|
||||
}
|
||||
}
|
||||
]
|
||||
```
|
||||
```js
|
||||
plugins: [
|
||||
{
|
||||
resolve: 'gatsby-plugin-matomo',
|
||||
options: {
|
||||
siteId: 'YOUR_SITE_ID',
|
||||
matomoUrl: 'https://YOUR_MATOMO_URL.COM',
|
||||
siteUrl: 'https://YOUR_LIVE_SITE_URL.COM'
|
||||
}
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
3. That's it!
|
||||
|
||||
|
@ -63,17 +64,24 @@ _NOTE: By default, this plugin only generates output when run in production mode
|
|||
|
||||
### Options
|
||||
|
||||
Option | Explanation
|
||||
-----------------|---------
|
||||
`siteId` | Your Matomo site ID configured in 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.
|
||||
`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']);`.
|
||||
`disableCookies` | (optional) If true, no cookie will be used by Matomo.
|
||||
`localScript` | (optional) If set, load local `piwik.js` script from the given path, instead of loading it from your `matomoUrl`.
|
||||
`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.
|
||||
|
||||
| Option | Explanation |
|
||||
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `siteId` | Your Matomo site ID configured in 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. |
|
||||
| `matomoPhpScript` | (optional) The name of your Matomo PHP script. Defaults to `matomo.php` |
|
||||
| `matomoJsScript` | (optional) The name of your Matomo JS script. Defaults to `matomo.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. |
|
||||
| `requireConsent` | (optional) If true, tracking will be disabled until you call `window._paq.push(['setConsentGiven']);`. |
|
||||
| `requireCookieConsent` | (optional) If true, no cookies will be stored or used until you call `window._paq.push(['setCookieConsentGiven']);`. |
|
||||
| `disableCookies` | (optional) If true, no cookie will be used by Matomo. |
|
||||
| `cookieDomain` | (optional) Specify cookie domain. |
|
||||
| `localScript` | (optional) If set, load local `matomo.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`. |
|
||||
| `respectDnt` | (optional) If false, will load all scripts without respecting user preference to `Do Not Track` on browsers. 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. |
|
||||
| `enableJSErrorTracking` | (optional) Enable basic JavaScript error tracking and reporting in Matomo by setting to `true`. |
|
||||
| `additionalTrackers` | (optional) An array of additional trackers to track on different Matomo servers. Additional trackers are objects with the keys `siteId` and `trackerUrl` containing the full URL to the Matomo PHP script. Defaults to `[]`. |
|
||||
```js
|
||||
plugins: [
|
||||
{
|
||||
|
@ -81,13 +89,24 @@ plugins: [
|
|||
options: {
|
||||
siteId: 'YOUR_SITE_ID',
|
||||
matomoUrl: 'https://YOUR_MATOMO_URL.COM',
|
||||
siteUrl: 'https://YOUR_LIVE_SITE_URL.COM'
|
||||
siteUrl: 'https://YOUR_LIVE_SITE_URL.COM',
|
||||
// All the optional settings
|
||||
matomoPhpScript: 'matomo.php',
|
||||
matomoJsScript: 'matomo.js',
|
||||
exclude: ['/offline-plugin-app-shell-fallback/'],
|
||||
requireConsent: false,
|
||||
requireCookieConsent: false,
|
||||
disableCookies: false,
|
||||
localScript: '/piwik.js',
|
||||
dev: false
|
||||
cookieDomain: '*.example.org',
|
||||
localScript: '/matomo.js',
|
||||
dev: false,
|
||||
enableJSErrorTracking: true,
|
||||
additionalTrackers: [
|
||||
{
|
||||
siteId: 'ADDITIONAL_SITE_ID',
|
||||
trackerUrl: 'https://ADDITIONAL_MATOMO_URL.COM/matomo.php'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
|
@ -105,8 +124,8 @@ npm run build
|
|||
# publishing to npm & GitHub releases
|
||||
# uses https://github.com/webpro/release-it
|
||||
npm run release
|
||||
npm run release-minor
|
||||
npm run release-major
|
||||
npm run release minor
|
||||
npm run release major
|
||||
```
|
||||
|
||||
## Changelog
|
||||
|
@ -117,7 +136,7 @@ See [CHANGELOG.md](CHANGELOG.md).
|
|||
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2018 Matthias Kretschmann
|
||||
Copyright (c) 2020 Matthias Kretschmann
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
|
@ -133,4 +152,4 @@ Say thanks with BTC:
|
|||
`35UUssHexVK48jbiSgTxa4QihEoCqrwCTG`
|
||||
|
||||
Say thanks with ETH:
|
||||
`0x04354F554536DA108726829207958d3E277f0210`
|
||||
`krema.eth`
|
||||
|
|
File diff suppressed because it is too large
Load Diff
55
package.json
55
package.json
|
@ -1,48 +1,53 @@
|
|||
{
|
||||
"name": "gatsby-plugin-matomo",
|
||||
"description": "Gatsby plugin to add Matomo (formerly Piwik) onto a site.",
|
||||
"version": "0.6.1",
|
||||
"version": "0.16.2",
|
||||
"author": "Matthias Kretschmann <m@kretschmann.io>",
|
||||
"scripts": {
|
||||
"build": "babel src --out-dir . --ignore __tests__",
|
||||
"start": "babel -w src --out-dir . --ignore __tests__",
|
||||
"test": "eslint ./src/**/*.js",
|
||||
"release": "./node_modules/release-it/bin/release-it.js --src.tagName='v%s' --github.release --npm.publish --non-interactive",
|
||||
"release-minor": "./node_modules/release-it/bin/release-it.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive",
|
||||
"release-major": "./node_modules/release-it/bin/release-it.js major --src.tagName='v%s' --github.release --npm.publish --non-interactive",
|
||||
"prepublishOnly": "cross-env NODE_ENV=production npm run build",
|
||||
"changelog": "./node_modules/.bin/conventional-changelog -i CHANGELOG.md -s -r 0",
|
||||
"beforeStage": "npm run changelog"
|
||||
"build": "cross-env NODE_ENV=production babel src --out-dir . --ignore **/__tests__",
|
||||
"start": "babel -w src --out-dir . --ignore **/__tests__",
|
||||
"test": "npm run lint && jest --coverage",
|
||||
"lint": "eslint ./src/**/*.js",
|
||||
"format": "prettier --write 'src/**/*.js'",
|
||||
"release": "release-it --non-interactive",
|
||||
"changelog": "auto-changelog -p",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.2.3",
|
||||
"@babel/core": "^7.4.0",
|
||||
"@babel/preset-env": "^7.4.2",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"conventional-changelog-cli": "^2.0.12",
|
||||
"cross-env": "^5.2.0",
|
||||
"eslint": "^5.16.0",
|
||||
"eslint-plugin-react": "^7.12.4",
|
||||
"react": "^16.8.6",
|
||||
"react-dom": "^16.8.6",
|
||||
"react-hot-loader": "^4.8.1",
|
||||
"release-it": "^10.0.0"
|
||||
"@babel/cli": "^7.23.0",
|
||||
"@babel/core": "^7.23.0",
|
||||
"auto-changelog": "^2.4.0",
|
||||
"babel-preset-gatsby-package": "^3.12.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^8.50.0",
|
||||
"eslint-config-prettier": "^9.0.0",
|
||||
"jest": "^29.7.0",
|
||||
"jest-environment-jsdom": "^29.7.0",
|
||||
"prettier": "^3.0.3",
|
||||
"react": "^18.2.0",
|
||||
"release-it": "^16.2.1"
|
||||
},
|
||||
"homepage": "https://github.com/kremalicious/gatsby-plugin-matomo",
|
||||
"homepage": "https://kremalicious.com/gatsby-plugin-matomo",
|
||||
"keywords": [
|
||||
"gatsby",
|
||||
"gatsby-plugin",
|
||||
"analytics",
|
||||
"tracking",
|
||||
"matomo",
|
||||
"piwik"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"peerDependencies": {
|
||||
"gatsby": ">=1.9.0"
|
||||
"gatsby": "^4.0.0 || ^5.0.0",
|
||||
"react": ">=17.0.0",
|
||||
"react-dom": ">=17.0.0"
|
||||
},
|
||||
"repository": "github:kremalicious/gatsby-plugin-matomo",
|
||||
"bugs": {
|
||||
"url": "https://github.com/kremalicious/gatsby-plugin-matomo/issues"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,72 @@
|
|||
/**
|
||||
* @jest-environment jsdom
|
||||
*/
|
||||
|
||||
import { onRouteUpdate } from '../gatsby-browser'
|
||||
|
||||
jest.useFakeTimers()
|
||||
|
||||
describe('gatsby-plugin-matomo', () => {
|
||||
describe('gatsby-browser', () => {
|
||||
beforeEach(() => {
|
||||
jest.spyOn(global, 'setTimeout')
|
||||
window._paq = { push: jest.fn() }
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
jest.clearAllTimers()
|
||||
})
|
||||
|
||||
describe('onRouteUpdate', () => {
|
||||
describe('in non-production env', () => {
|
||||
beforeAll(() => {
|
||||
window._paq = { push: jest.fn() }
|
||||
})
|
||||
|
||||
it('does not send page view', () => {
|
||||
onRouteUpdate({}, {})
|
||||
expect(window._paq.push).not.toHaveBeenCalled()
|
||||
})
|
||||
|
||||
it('sends page view in dev mode', () => {
|
||||
window.dev = true
|
||||
onRouteUpdate({}, {})
|
||||
expect(window._paq.push).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
})
|
||||
|
||||
describe('in production env', () => {
|
||||
let env
|
||||
|
||||
beforeAll(() => {
|
||||
env = process.env.NODE_ENV
|
||||
process.env.NODE_ENV = 'production'
|
||||
})
|
||||
|
||||
afterAll(() => {
|
||||
process.env.NODE_ENV = env
|
||||
})
|
||||
|
||||
// it('does not send page view when _paq is undefined', () => {
|
||||
// delete window._paq
|
||||
// onRouteUpdate({}, {})
|
||||
// // jest.runOnlyPendingTimers()
|
||||
// expect(setTimeout).not.toHaveBeenCalled()
|
||||
// })
|
||||
|
||||
it('sends page view', () => {
|
||||
onRouteUpdate({}, {})
|
||||
jest.runAllTimers()
|
||||
expect(window._paq.push).toHaveBeenCalledTimes(5)
|
||||
})
|
||||
|
||||
it('uses setTimeout with a minimum delay of 32ms', () => {
|
||||
onRouteUpdate({}, {})
|
||||
jest.runOnlyPendingTimers()
|
||||
expect(setTimeout).toHaveBeenCalledWith(expect.any(Function), 32)
|
||||
expect(window._paq.push).toHaveBeenCalledTimes(5)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
|
@ -0,0 +1,140 @@
|
|||
/**
|
||||
* @jest-environment jsdom
|
||||
*/
|
||||
|
||||
import { onRenderBody } from '../gatsby-ssr'
|
||||
|
||||
describe('gatsby-plugin-matomo', () => {
|
||||
describe('gatsby-ssr', () => {
|
||||
describe('onRenderBody', () => {
|
||||
describe('in non-production env', () => {
|
||||
it('does not set tracking script', () => {
|
||||
const setHeadComponents = jest.fn()
|
||||
onRenderBody({ setHeadComponents })
|
||||
expect(setHeadComponents).not.toHaveBeenCalled()
|
||||
})
|
||||
})
|
||||
|
||||
describe('in production env', () => {
|
||||
let env
|
||||
|
||||
beforeAll(() => {
|
||||
env = process.env.NODE_ENV
|
||||
process.env.NODE_ENV = 'production'
|
||||
})
|
||||
|
||||
afterAll(() => {
|
||||
process.env.NODE_ENV = env
|
||||
})
|
||||
|
||||
const setup = (options) => {
|
||||
const setHeadComponents = jest.fn()
|
||||
const setPostBodyComponents = jest.fn()
|
||||
|
||||
options = Object.assign(
|
||||
{
|
||||
siteId: 'TEST_SITE_ID',
|
||||
matomoUrl: 'TEST_MATOMO_URL',
|
||||
siteUrl: 'TEST_SITE_URL'
|
||||
},
|
||||
options
|
||||
)
|
||||
|
||||
onRenderBody({ setHeadComponents, setPostBodyComponents }, options)
|
||||
|
||||
return {
|
||||
setHeadComponents,
|
||||
setPostBodyComponents
|
||||
}
|
||||
}
|
||||
|
||||
it('sets tracking script', () => {
|
||||
const { setHeadComponents, setPostBodyComponents } = setup()
|
||||
|
||||
expect(setHeadComponents).toHaveBeenCalledTimes(1)
|
||||
expect(setPostBodyComponents).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
|
||||
it('sets siteId', () => {
|
||||
const { setPostBodyComponents } = setup()
|
||||
const result = JSON.stringify(setPostBodyComponents.mock.calls[0][0])
|
||||
expect(result).toMatch(/TEST_SITE_ID/)
|
||||
})
|
||||
|
||||
it('sets matomoUrl', () => {
|
||||
const { setPostBodyComponents } = setup()
|
||||
const result = JSON.stringify(setPostBodyComponents.mock.calls[0][0])
|
||||
expect(result).toMatch(/TEST_MATOMO_URL/)
|
||||
})
|
||||
|
||||
it('sets siteUrl', () => {
|
||||
const { setPostBodyComponents } = setup()
|
||||
const result = JSON.stringify(setPostBodyComponents.mock.calls[0][0])
|
||||
expect(result).toMatch(/TEST_SITE_URL/)
|
||||
})
|
||||
|
||||
it('sets requireConsent', () => {
|
||||
const { setPostBodyComponents } = setup({
|
||||
requireConsent: true
|
||||
})
|
||||
const result = JSON.stringify(setPostBodyComponents.mock.calls[0][0])
|
||||
expect(result).toMatch(/requireConsent/)
|
||||
})
|
||||
|
||||
it('sets requireCookieConsent', () => {
|
||||
const { setPostBodyComponents } = setup({
|
||||
requireCookieConsent: true
|
||||
})
|
||||
const result = JSON.stringify(setPostBodyComponents.mock.calls[0][0])
|
||||
expect(result).toMatch(/requireCookieConsent/)
|
||||
})
|
||||
|
||||
it('sets disableCookies', () => {
|
||||
const { setPostBodyComponents } = setup({
|
||||
disableCookies: true
|
||||
})
|
||||
const result = JSON.stringify(setPostBodyComponents.mock.calls[0][0])
|
||||
expect(result).toMatch(/disableCookies/)
|
||||
})
|
||||
|
||||
it('sets enableJSErrorTracking', () => {
|
||||
const { setPostBodyComponents } = setup({
|
||||
enableJSErrorTracking: true
|
||||
})
|
||||
const result = JSON.stringify(setPostBodyComponents.mock.calls[0][0])
|
||||
expect(result).toMatch(/enableJSErrorTracking/)
|
||||
})
|
||||
|
||||
it('sets localScript', () => {
|
||||
const { setPostBodyComponents } = setup({
|
||||
localScript: 'TEST_LOCAL_SCRIPT'
|
||||
})
|
||||
const result = JSON.stringify(setPostBodyComponents.mock.calls[0][0])
|
||||
expect(result).toMatch(/TEST_LOCAL_SCRIPT/)
|
||||
})
|
||||
|
||||
it('sets respectDnt to false', () => {
|
||||
const { setPostBodyComponents } = setup({
|
||||
respectDnt: false
|
||||
})
|
||||
const result = JSON.stringify(setPostBodyComponents.mock.calls[0][0])
|
||||
expect(result).not.toMatch(/navigator.doNotTrack/)
|
||||
})
|
||||
|
||||
it('sets additionalTrackers', () => {
|
||||
const { setPostBodyComponents } = setup({
|
||||
additionalTrackers: [
|
||||
{
|
||||
siteId: 'TEST_ADDITIONAL_SITE_ID',
|
||||
trackerUrl: 'TEST_ADDITIONAL_TRACKER_URL'
|
||||
}
|
||||
]
|
||||
})
|
||||
const result = JSON.stringify(setPostBodyComponents.mock.calls[0][0])
|
||||
expect(result).toMatch(/TEST_ADDITIONAL_SITE_ID/)
|
||||
expect(result).toMatch(/TEST_ADDITIONAL_TRACKER_URL/)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable no-console */
|
||||
|
||||
let first = true
|
||||
|
||||
function getDuration() {
|
||||
|
@ -14,37 +12,57 @@ function getDuration() {
|
|||
return difference
|
||||
}
|
||||
|
||||
exports.onRouteUpdate = ({ location }) => {
|
||||
if (process.env.NODE_ENV === 'production' && typeof _paq !== 'undefined') {
|
||||
window._paq = window._paq || []
|
||||
window.dev = window.dev || null
|
||||
export const onRouteUpdate = ({ location, prevLocation }, pluginOptions) => {
|
||||
if (process.env.NODE_ENV === 'production' || window.dev === true) {
|
||||
if (!window._paq) return
|
||||
|
||||
const pathname = location.pathname
|
||||
const { _paq, dev } = window
|
||||
const url = location && location.pathname + location.search + location.hash
|
||||
const prevUrl =
|
||||
prevLocation &&
|
||||
prevLocation.pathname + prevLocation.search + prevLocation.hash
|
||||
|
||||
const { trackLoad = true } = pluginOptions
|
||||
|
||||
// document.title workaround stolen from:
|
||||
// https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-google-analytics/src/gatsby-browser.js
|
||||
const sendPageView = () => {
|
||||
const { title } = document
|
||||
|
||||
prevUrl && _paq.push(['setReferrerUrl', prevUrl])
|
||||
_paq.push(['setCustomUrl', url])
|
||||
_paq.push(['setDocumentTitle', title])
|
||||
_paq.push(['trackPageView'])
|
||||
_paq.push(['enableLinkTracking'])
|
||||
_paq.push(['trackAllContentImpressions'])
|
||||
|
||||
if (dev) {
|
||||
console.debug(`[Matomo] Page view for: ${url} - ${title}`)
|
||||
}
|
||||
}
|
||||
|
||||
// Minimum delay for reactHelmet's requestAnimationFrame
|
||||
const delay = Math.max(32, 0)
|
||||
setTimeout(sendPageView, delay)
|
||||
|
||||
if (first) {
|
||||
first = false
|
||||
window._paq.push([
|
||||
'trackEvent',
|
||||
'javascript',
|
||||
'load',
|
||||
'duration',
|
||||
getDuration()
|
||||
])
|
||||
|
||||
if (window.dev) {
|
||||
console.log(`[Matomo] Page view for: ${pathname}`)
|
||||
if (trackLoad) {
|
||||
_paq.push([
|
||||
'trackEvent',
|
||||
'javascript',
|
||||
'load',
|
||||
'duration',
|
||||
getDuration()
|
||||
])
|
||||
}
|
||||
} else {
|
||||
window._paq.push(['setReferrerUrl', pathname])
|
||||
window._paq.push(['setCustomUrl', pathname])
|
||||
window._paq.push(['setDocumentTitle', pathname])
|
||||
window._paq.push(['trackPageView'])
|
||||
window._paq.push(['enableLinkTracking'])
|
||||
|
||||
if (window.dev) {
|
||||
console.log(`[Matomo] Page view for: ${pathname}`)
|
||||
if (dev) {
|
||||
console.debug(`[Matomo] Tracking duration for: ${url}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return null
|
||||
}
|
||||
|
|
|
@ -1,21 +1,60 @@
|
|||
// eslint-disable-next-line no-unused-vars
|
||||
import React from 'react'
|
||||
|
||||
function buildTrackingCode(pluginOptions) {
|
||||
const script = pluginOptions.localScript
|
||||
? pluginOptions.localScript
|
||||
: `${pluginOptions.matomoUrl}/piwik.js`
|
||||
const {
|
||||
matomoUrl,
|
||||
matomoPhpScript = 'matomo.php',
|
||||
matomoJsScript = 'matomo.js',
|
||||
siteId,
|
||||
dev,
|
||||
localScript,
|
||||
requireConsent,
|
||||
requireCookieConsent,
|
||||
disableCookies,
|
||||
cookieDomain,
|
||||
enableJSErrorTracking,
|
||||
respectDnt = true,
|
||||
additionalTrackers = []
|
||||
} = pluginOptions
|
||||
|
||||
const script = localScript ? localScript : `${matomoUrl}/${matomoJsScript}`
|
||||
|
||||
const dntCondition = respectDnt
|
||||
? `!(navigator.doNotTrack === '1' || window.doNotTrack === '1')`
|
||||
: `true`
|
||||
|
||||
const html = `
|
||||
window.dev = ${pluginOptions.dev}
|
||||
if (window.dev === true || !(navigator.doNotTrack === '1' || window.doNotTrack === '1')) {
|
||||
window.dev = ${dev}
|
||||
if (window.dev === true || ${dntCondition}) {
|
||||
window._paq = window._paq || [];
|
||||
${pluginOptions.requireConsent ? 'window._paq.push([\'requireConsent\']);' : ''}
|
||||
${pluginOptions.disableCookies ? 'window._paq.push([\'disableCookies\']);' : ''}
|
||||
window._paq.push(['setTrackerUrl', '${pluginOptions.matomoUrl}/piwik.php']);
|
||||
window._paq.push(['setSiteId', '${pluginOptions.siteId}']);
|
||||
window._paq.push(['trackPageView']);
|
||||
window._paq.push(['enableLinkTracking']);
|
||||
${requireConsent ? "window._paq.push(['requireConsent']);" : ''}
|
||||
${
|
||||
requireCookieConsent
|
||||
? "window._paq.push(['requireCookieConsent']);"
|
||||
: ''
|
||||
}
|
||||
${disableCookies ? "window._paq.push(['disableCookies']);" : ''}
|
||||
${
|
||||
enableJSErrorTracking
|
||||
? "window._paq.push(['enableJSErrorTracking']);"
|
||||
: ''
|
||||
}
|
||||
${
|
||||
cookieDomain
|
||||
? `window._paq.push(['setCookieDomain', '${cookieDomain}']);`
|
||||
: ''
|
||||
}
|
||||
window._paq.push(['setTrackerUrl', '${matomoUrl}/${matomoPhpScript}']);
|
||||
window._paq.push(['setSiteId', '${siteId}']);
|
||||
window._paq.push(['enableHeartBeatTimer']);
|
||||
${additionalTrackers
|
||||
.map(
|
||||
(t) =>
|
||||
`window._paq.push(['addTracker', '${t.trackerUrl}', '${t.siteId}']);`
|
||||
)
|
||||
.join('\n')}
|
||||
|
||||
window.start = new Date();
|
||||
|
||||
(function() {
|
||||
|
@ -24,50 +63,72 @@ function buildTrackingCode(pluginOptions) {
|
|||
})();
|
||||
|
||||
if (window.dev === true) {
|
||||
console.log('[Matomo] Tracking initialized')
|
||||
console.log('[Matomo] matomoUrl: ${pluginOptions.matomoUrl}, siteId: ${pluginOptions.siteId}')
|
||||
console.debug('[Matomo] Tracking initialized')
|
||||
console.debug('[Matomo] matomoUrl: ${matomoUrl}, siteId: ${siteId}')
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
return (
|
||||
<script
|
||||
key={'gatsby-plugin-matomo'}
|
||||
key="script-gatsby-plugin-matomo"
|
||||
dangerouslySetInnerHTML={{ __html: html }}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
function buildTrackingCodeNoJs(pluginOptions, pathname) {
|
||||
const html = `<img src="${pluginOptions.matomoUrl}/piwik.php?idsite=${pluginOptions.siteId}&rec=1&url=${pluginOptions.siteUrl + pathname}" style="border:0" alt="tracker" />`
|
||||
const {
|
||||
matomoUrl,
|
||||
matomoPhpScript = 'piwik.php',
|
||||
siteId,
|
||||
siteUrl
|
||||
} = pluginOptions
|
||||
const html = `<img src="${matomoUrl}/${matomoPhpScript}?idsite=${siteId}&rec=1&url=${
|
||||
siteUrl + pathname
|
||||
}" style="border:0" alt="tracker" />`
|
||||
|
||||
return (
|
||||
<noscript
|
||||
key={'gatsby-plugin-matomo'}
|
||||
key="noscript-gatsby-plugin-matomo"
|
||||
dangerouslySetInnerHTML={{ __html: html }}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
exports.onRenderBody = ({ setPostBodyComponents, pathname }, pluginOptions) => {
|
||||
function buildHead(pluginOptions) {
|
||||
return (
|
||||
<link
|
||||
rel="preconnect"
|
||||
href={pluginOptions.matomoUrl}
|
||||
key="preconnect-gatsby-plugin-matomo"
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export const onRenderBody = (
|
||||
{ setHeadComponents, setPostBodyComponents, pathname },
|
||||
pluginOptions
|
||||
) => {
|
||||
const isProduction = process.env.NODE_ENV === 'production'
|
||||
let excludePaths = ['/offline-plugin-app-shell-fallback/']
|
||||
|
||||
if (typeof pluginOptions.exclude !== 'undefined') {
|
||||
pluginOptions.exclude.map(exclude => {
|
||||
if (pluginOptions && typeof pluginOptions.exclude !== 'undefined') {
|
||||
pluginOptions.exclude.map((exclude) => {
|
||||
excludePaths.push(exclude)
|
||||
})
|
||||
}
|
||||
|
||||
const isPathExcluded = excludePaths.some(path => pathname === path)
|
||||
const isPathExcluded = excludePaths.some((path) => pathname === path)
|
||||
|
||||
if (
|
||||
(process.env.NODE_ENV === 'production' || pluginOptions.dev === true) &&
|
||||
(isProduction || (pluginOptions && pluginOptions.dev === true)) &&
|
||||
!isPathExcluded
|
||||
) {
|
||||
return setPostBodyComponents([
|
||||
buildTrackingCode(pluginOptions),
|
||||
buildTrackingCodeNoJs(pluginOptions, pathname)
|
||||
])
|
||||
setHeadComponents([buildHead(pluginOptions)])
|
||||
setPostBodyComponents([
|
||||
buildTrackingCode(pluginOptions),
|
||||
buildTrackingCodeNoJs(pluginOptions, pathname)
|
||||
])
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue