Skip to content

Commit

Permalink
Add major changeset for analytics package
Browse files Browse the repository at this point in the history
  • Loading branch information
DAreRodz committed Jun 10, 2020
1 parent 49194d8 commit 2fb73fc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .changeset/strange-colts-act.md
@@ -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`.

0 comments on commit 2fb73fc

Please sign in to comment.