Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Nov 1, 2022
1 parent c4dbf05 commit c1dbc13
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,11 @@ if (userConsentsToBeingTracked) {
This strategy also comes in handy if you have some settings that are fetched asynchronously.
```ts
const analytics = new AnalyticsBrowser()

fetchSettings().then(writeKey => analytics.load({ writeKey }))

analytics.identify("hello world")
document.body?.addEventListener('click', () => {
analytics.track('document body clicked!')
})

```

## Usage in Common Frameworks
### using `React` (Simple)

Expand Down

0 comments on commit c1dbc13

Please sign in to comment.