Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add major changeset for analytics package
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 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,15 @@ | ||
--- | ||
"@frontity/analytics": major | ||
--- | ||
|
||
Release the first stable version of @frontity/analytics library ([Feature Discussion](https://community.frontity.org/t/the-analytics-library/1103)). | ||
|
||
The main differences with the previous version are: | ||
|
||
- In `state.analytics`, the `namespace` array is replaced by two objects that will contain the namespaces with a boolean value: `pageviews` and `events`. This allow users to have more control over which analytics packages should send pageviews or events, and it can also be configured in `frontity.settings.js`. | ||
|
||
- In `actions.analytics`, the `sendPageview` and `sendEvent` actions are renamed to `pageview` and `event` respectively. | ||
|
||
- Pageview `page` property is now `link`. | ||
|
||
- Event `event` property is now `name`. |