diff --git a/packages/gatsby-plugin-google-analytics/README.md b/packages/gatsby-plugin-google-analytics/README.md index b06ee26ea1c55..3702a1c3d7e94 100644 --- a/packages/gatsby-plugin-google-analytics/README.md +++ b/packages/gatsby-plugin-google-analytics/README.md @@ -25,7 +25,29 @@ module.exports = { }, }, ], -}; +} +``` + +## `` component + +To make it easy to track clicks on outbound links in Google Analytics, +the plugin provides a component. + +To use it, simply import it and use it like you would the `` element e.g. + +```jsx +import React +import { Outboundink } from 'gatsby-plugin-google-analytics' + +export default () => { +
+ + Visit the Google Analytics plugin page! + +
+} ``` ## The "anonymize" option