Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandromav committed Sep 6, 2022
1 parent 2e80cd3 commit 62d0dc2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [1.2.0] - 2022-09-06
### Changed
- [Dashboard] Optmize bundle size and Core Web Vitals
- [Script] Use `XMLHttpRequest` instead of `sendBeacon`

## [1.1.0] - 2022-09-05
### Changed
- [Script] Improve script listeners, now can be imported as `defer`

### Added
- [Dashboard] Add trackign script to dashboard
- [Dashboard] Add tracking script to dashboard

### Fixed
- [Dashboard] Use Tailwind theme colors
Expand All @@ -23,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Script] Add tracking script
- [Dashboard] Add dashboard

[Unreleased]: https://github.com/tinybirdco/web-analytics-starter-kit/compare/1.1.0...HEAD
[Unreleased]: https://github.com/tinybirdco/web-analytics-starter-kit/compare/1.2.0...HEAD
[1.2.0]: https://github.com/tinybirdco/web-analytics-starter-kit/compare/1.1.0...1.2.0
[1.1.0]: https://github.com/tinybirdco/web-analytics-starter-kit/compare/1.1.0...1.0.0
[1.0.0]: https://github.com/tinybirdco/web-analytics-starter-kit/tree/1.0.0
2 changes: 1 addition & 1 deletion dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tinybirdco/analytics-dashboard",
"version": "1.2.0-SNAPSHOT",
"version": "1.2.0",
"description": "Tinybird web analytics dashboard",
"homepage": "https://github.com/tinybirdco/web-analytics-starter-kit/tree/main/dashboard#README",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion middleware/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tinybirdco/flock.js",
"version": "1.2.0-SNAPSHOT",
"version": "1.2.0",
"main": "dist/index.js",
"description": "Tinybird web analytics tracking script",
"author": "Tinybird team",
Expand Down
5 changes: 4 additions & 1 deletion middleware/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@

payload = _maskSuspiciousAttributes(payload);

return navigator.sendBeacon(url, JSON.stringify({
const request = new XMLHttpRequest();
request.open('POST', url, true);
request.setRequestHeader('Content-Type', 'text/plain');
request.send(JSON.stringify({
timestamp: new Date().toISOString(),
action: name,
version: '1',
Expand Down

1 comment on commit 62d0dc2

@vercel
Copy link

@vercel vercel bot commented on 62d0dc2 Sep 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.