-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add anonymizeIp option to saber-plugin-google-analytics (#363)
* Add anonymizeIp to saber-plugin-google-analytics * refactor we already called `send` in `afterEach` hook * add readme * typo
- Loading branch information
Showing
3 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# saber-plugin-google-analytics | ||
|
||
Add Google Analytics to your Saber sites. | ||
|
||
## Install | ||
|
||
```bash | ||
yarn add saber-plugin-google-analytics | ||
``` | ||
|
||
## Usage | ||
|
||
In your `saber-config.yml`: | ||
|
||
```yml | ||
plugins: | ||
- resolve: saber-plugin-google-analytics | ||
options: | ||
trackId: UA-XXX-XX # Google Analytics Track ID | ||
``` | ||
## Plugin Options | ||
### trackId | ||
- Type: `string` | ||
- Required: `true` | ||
|
||
Google Analytics Track ID. | ||
|
||
### anonymizeIp | ||
|
||
- Type: `boolean` | ||
- Default: `false` | ||
|
||
To anonymize the IP address for all hits sent from a single tracker, set the `anonymizeIp` option to `true`. | ||
|
||
## License | ||
|
||
MIT. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters