Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document new component <OutboundLink> #4787

Merged
merged 6 commits into from
Apr 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion packages/gatsby-plugin-google-analytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,29 @@ module.exports = {
},
},
],
};
}
```

## `<OutboundLink>` 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 `<a>` element e.g.

```jsx
import React
import { Outboundink } from 'gatsby-plugin-google-analytics'

export default () => {
<div>
<Outboundink
href="https://www.gatsbyjs.org/packages/gatsby-plugin-google-analytics/"
>
Visit the Google Analytics plugin page!
</Outboundink>
</div>
}
```

## The "anonymize" option
Expand Down