Skip to content

Commit

Permalink
feat: add Google Analytics (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlengstorf authored Jan 9, 2019
1 parent a0a802e commit 6f935b0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ module.exports = {
icon: 'static/android-chrome-512x512.png'
}
},
'gatsby-plugin-offline'
'gatsby-plugin-offline',
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: 'UA-93349937-6',
respectDNT: true
}
}
]
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"gatsby": "^2.0.18",
"gatsby-image": "^2.0.13",
"gatsby-plugin-emotion": "^2.0.5",
"gatsby-plugin-google-analytics": "^2.0.9",
"gatsby-plugin-layout": "^1.0.10",
"gatsby-plugin-manifest": "^2.0.7",
"gatsby-plugin-offline": "^2.0.20",
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5116,6 +5116,13 @@ gatsby-plugin-emotion@^2.0.5:
dependencies:
"@babel/runtime" "^7.0.0"

gatsby-plugin-google-analytics@^2.0.9:
version "2.0.9"
resolved "https://registry.yarnpkg.com/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-2.0.9.tgz#c273b5660a304feced097a724ce71e8a26695b31"
integrity sha512-lnPVXnQXHBFyPSPj+TlxiWBEE8bOFFDkKBx30nvOKvo+9XMd1Totkm/KN9leJQbAdeba6AtDRjYQ6CI1gDDGJQ==
dependencies:
"@babel/runtime" "^7.0.0"

gatsby-plugin-layout@^1.0.10:
version "1.0.11"
resolved "https://registry.yarnpkg.com/gatsby-plugin-layout/-/gatsby-plugin-layout-1.0.11.tgz#02f9a0103cbd17bdf66fd9a5ca5434d5c089ce88"
Expand Down

0 comments on commit 6f935b0

Please sign in to comment.