diff --git a/package.json b/package.json
index b1bcb2b..2d2f599 100644
--- a/package.json
+++ b/package.json
@@ -16,18 +16,18 @@
"dependencies": {},
"devDependencies": {
"@babel/cli": "^7.8.4",
- "@babel/core": "^7.8.4",
- "@babel/runtime": "^7.8.4",
+ "@babel/core": "^7.9.0",
+ "@babel/runtime": "^7.9.2",
"auto-changelog": "^1.16.2",
- "babel-preset-gatsby-package": "^0.2.16",
- "cross-env": "^7.0.0",
+ "babel-preset-gatsby-package": "^0.2.18",
+ "cross-env": "^7.0.2",
"eslint": "^6.8.0",
- "eslint-config-prettier": "^6.10.0",
+ "eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.2",
"jest": "^25.1.0",
- "prettier": "^1.19.1",
- "react": "^16.12.0",
- "release-it": "^12.6.1"
+ "prettier": "^2.0.1",
+ "react": "^16.13.1",
+ "release-it": "^13.1.2"
},
"homepage": "https://kremalicious.com/gatsby-plugin-matomo",
"keywords": [
diff --git a/src/__tests__/gatsby-ssr.js b/src/__tests__/gatsby-ssr.js
index 9953ef1..fc55bec 100644
--- a/src/__tests__/gatsby-ssr.js
+++ b/src/__tests__/gatsby-ssr.js
@@ -23,7 +23,7 @@ describe('gatsby-plugin-google-analytics', () => {
process.env.NODE_ENV = env
})
- const setup = options => {
+ const setup = (options) => {
const setHeadComponents = jest.fn()
const setPostBodyComponents = jest.fn()
diff --git a/src/gatsby-ssr.js b/src/gatsby-ssr.js
index b7d5e68..8f4e059 100644
--- a/src/gatsby-ssr.js
+++ b/src/gatsby-ssr.js
@@ -23,10 +23,10 @@ function buildTrackingCode(pluginOptions) {
${requireConsent ? "window._paq.push(['requireConsent']);" : ''}
${disableCookies ? "window._paq.push(['disableCookies']);" : ''}
${
- cookieDomain
- ? `window._paq.push(['setCookieDomain', '${cookieDomain}']);`
- : ''
- }
+ cookieDomain
+ ? `window._paq.push(['setCookieDomain', '${cookieDomain}']);`
+ : ''
+ }
window._paq.push(['setTrackerUrl', '${matomoUrl}/${matomoPhpScript}']);
window._paq.push(['setSiteId', '${siteId}']);
window._paq.push(['enableHeartBeatTimer']);
@@ -53,9 +53,15 @@ function buildTrackingCode(pluginOptions) {
}
function buildTrackingCodeNoJs(pluginOptions, pathname) {
- const { matomoUrl, matomoPhpScript = 'piwik.php', siteId, siteUrl } = pluginOptions
- const html = ``
+ const {
+ matomoUrl,
+ matomoPhpScript = 'piwik.php',
+ siteId,
+ siteUrl
+ } = pluginOptions
+ const html = ``
return (