diff --git a/.release-it.json b/.release-it.json
index 5e755c7..9d4a6da 100644
--- a/.release-it.json
+++ b/.release-it.json
@@ -1,11 +1,7 @@
{
- "beforeChangelogCommand": "./node_modules/.bin/conventional-changelog -i CHANGELOG.md -s",
- "changelogCommand": "./node_modules/.bin/conventional-changelog | tail -n +3",
- "safeBump": false,
- "scripts": {
- "beforeStart": "npm test",
- "beforeStage": "npm run changelog",
- "afterRelease": "echo Successfully released ${name} v${version} to ${repo.repository}."
+ "hooks": {
+ "before:init": "npm test",
+ "after:bump": "npm run changelog"
},
"git": {
"tagName": "v${version}"
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4682892..37309e1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,142 +1,152 @@
-## 0.7.1 (2019-06-10)
+### Changelog
-* add prettier ([858fc2e](https://github.com/kremalicious/gatsby-plugin-matomo/commit/858fc2e))
-* bump packages ([e3479f6](https://github.com/kremalicious/gatsby-plugin-matomo/commit/e3479f6))
-* new release-it setup ([bbb5f19](https://github.com/kremalicious/gatsby-plugin-matomo/commit/bbb5f19))
-* preconnect to configured Matomo host url ([9b18330](https://github.com/kremalicious/gatsby-plugin-matomo/commit/9b18330))
-* update changelog ([a535e35](https://github.com/kremalicious/gatsby-plugin-matomo/commit/a535e35))
+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.7.2](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.7.1...v0.7.2)
-## 0.7.0 (2019-03-30)
+> 13 June 2019
-* always fire route updates in dev mode ([7b7f478](https://github.com/kremalicious/gatsby-plugin-matomo/commit/7b7f478))
-* better page url & referrer url tracking ([04b8ba1](https://github.com/kremalicious/gatsby-plugin-matomo/commit/04b8ba1))
-* capture and send custom page title ([aedb806](https://github.com/kremalicious/gatsby-plugin-matomo/commit/aedb806)), closes [#11](https://github.com/kremalicious/gatsby-plugin-matomo/issues/11)
-* Release 0.7.0 ([4c36d9c](https://github.com/kremalicious/gatsby-plugin-matomo/commit/4c36d9c))
-* update changelog ([24f57da](https://github.com/kremalicious/gatsby-plugin-matomo/commit/24f57da))
+- 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
-## 0.6.1 (2019-03-30)
+- 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)
-* package updates ([fe6f67e](https://github.com/kremalicious/gatsby-plugin-matomo/commit/fe6f67e))
-* Release 0.6.1 ([f62c5bf](https://github.com/kremalicious/gatsby-plugin-matomo/commit/f62c5bf))
-* run changelog before release ([5da11a4](https://github.com/kremalicious/gatsby-plugin-matomo/commit/5da11a4))
-* chore(package): update release-it to version 10.0.0 ([d56c6c3](https://github.com/kremalicious/gatsby-plugin-matomo/commit/d56c6c3))
-* chore(package): update release-it to version 9.0.0 ([bc75531](https://github.com/kremalicious/gatsby-plugin-matomo/commit/bc75531))
+#### [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.0 (2018-12-05)
+#### [0.6.1](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.6.0...0.6.1)
-* 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))
-* Release 0.6.0 ([6c994ec](https://github.com/kremalicious/gatsby-plugin-matomo/commit/6c994ec))
+> 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)
-## 0.5.1 (2018-11-21)
+> 5 December 2018
-* 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))
+- 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
-## 0.5.0 (2018-08-06)
+- 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)
-* 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))
+#### [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)
-## 0.4.1 (2018-06-28)
+#### [v0.4.1](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.4.0...v0.4.1)
-* 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))
+> 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)
-## 0.4.0 (2018-06-19)
+> 19 June 2018
-* 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))
+- 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
-## 0.3.2 (2018-05-23)
+- 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)
-* 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))
+#### [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)
-## 0.3.1 (2018-05-14)
+#### [v0.3.0](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.2.0...v0.3.0)
-* 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))
+> 10 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)
-## 0.3.0 (2018-05-10)
+> 8 May 2018
-* 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))
+- 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
-## 0.2.0 (2018-05-08)
+- 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)
-* 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))
+#### [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)
-## 0.1.3 (2018-05-08)
+#### [v0.1.1](https://github.com/kremalicious/gatsby-plugin-matomo/compare/v0.1.0...v0.1.1)
-* 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))
+> 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)
+- docs(readme): add Greenkeeper badge [`ec73329`](https://github.com/kremalicious/gatsby-plugin-matomo/commit/ec73329dd2ad383aa380ed57667da7a7019824a1)
+#### v0.1.0
-## 0.1.2 (2018-05-08)
-
-* 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))
-
-
-
-## 0.1.1 (2018-05-07)
-
-* 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))
-
-
-
-## 0.1.0 (2018-05-07)
-
-* 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))
-
-
+> 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)
diff --git a/package.json b/package.json
index de73d5e..c0684d5 100644
--- a/package.json
+++ b/package.json
@@ -9,8 +9,8 @@
"test": "eslint ./src/**/*.js",
"format": "prettier --write 'src/**/*.{js,jsx}'",
"release": "release-it --non-interactive",
- "prepublishOnly": "cross-env NODE_ENV=production npm run build",
- "changelog": "./node_modules/.bin/conventional-changelog -i CHANGELOG.md -s -r 0"
+ "changelog": "auto-changelog -p",
+ "prepublishOnly": "cross-env NODE_ENV=production npm run build"
},
"dependencies": {},
"devDependencies": {
@@ -18,7 +18,7 @@
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
- "conventional-changelog-cli": "^2.0.21",
+ "auto-changelog": "^1.13.0",
"cross-env": "^5.2.0",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.3.0",