You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/gatsby-plugin-google-analytics/README.md
+15-7
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
Easily add Google Analytics to your Gatsby site.
4
4
5
+
## Upgrade note
6
+
7
+
This plugin uses Google's `analytics.js` file under the hood. Google has a [guide recommending users upgrade to `gtag.js` instead](https://developers.google.com/analytics/devguides/collection/upgrade/analyticsjs). There is another plugin [`gatsby-plugin-gtag`](https://gatsbyjs.com/plugins/gatsby-plugin-google-gtag/) which uses `gtag.js`.
8
+
5
9
## Install
6
10
7
11
`npm install gatsby-plugin-google-analytics`
@@ -60,13 +64,15 @@ To use it, simply import it and use it like you would the `<a>` element e.g.
0 commit comments