Skip to content

Releases: tinybirdco/web-analytics-starter-kit

Multi-tenancy and multi-domain

13 Aug 13:41
82b7cc9
Compare
Choose a tag to compare

Multi-tenancy and multi-domain

The analytics_events table has support to gather data from multiple tenants and domains. Add data-domain and data-tenant-id to your script:

<script
  src="https://unpkg.com/@tinybirdco/flock.js"
  data-token="YOUR_TRACKER_TOKEN"
  data-domain="project_domain"
  data-tenant-id="project_tenant_id"
></script>

All project endpoints can be filtered by tenant_id and domain or you can use JWT tokens including the required scopes and fixed_params.

To filter endpoints for a tenant, use this as fixed params in the JWT token:

"fixed_params": {
    "tenant_id": "your-tenant-id"
}

Learn how to create JWT tokens

1.6.7: feat: add user agent validation to middleware (#172)

30 Jul 10:20
17171cc
Compare
Choose a tag to compare

limit the size of the payload to 10k chars and the user agent attribute to 500 chars

1.6.6

15 Jul 16:45
607e118
Compare
Choose a tag to compare

Support data-web-vitals and load web-vitals optionally using require

1.6.5

15 Jul 16:34
4413910
Compare
Choose a tag to compare

Support data-web-vitals

1.6.4

15 Jul 16:22
5995d07
Compare
Choose a tag to compare

embed web-vitals script

1.6.3

15 Jul 16:10
d430f21
Compare
Choose a tag to compare

Change the way the web-vitals library is loaded

1.6.2

15 Jul 10:57
84a9d80
Compare
Choose a tag to compare

Minor changes

1.6.1

10 Jul 11:27
0ea725d
Compare
Choose a tag to compare

Next.js <Script /> component only allows valid HTML attributes and data-* attributes to be passed as props.

<script
  src="https://unpkg.com/@tinybirdco/flock.js"
  data-token="TOKEN-ID"
  data-tb-customer-id="CUSTOMER_ID"
></script>

Would append "customer_id":"<CUSTOMER_ID>" to the rest of variables saved in payload column.

This change is backwards compatible.

1.6.0

09 Jul 18:50
a3b7b8c
Compare
Choose a tag to compare

Web vitals

Track web vitals like this:

<script
  src="https://unpkg.com/@tinybirdco/flock.js"
  data-token="TOKEN-ID"
  web-vitals="true"
></script>

You'll start receiving events with web_vital action, the payload looks like this:

{"name":"LCP","value":68,"delta":68,"id":"v3-1752067824029-4726354841567","pathname":"/","href":"http://localhost:8081/"}
{"name":"TTFB","value":41.10000002384186,"delta":41.10000002384186,"id":"v3-1752067821037-7353415626830","pathname":"/","href":"http://localhost:8081/"}
{"name":"FCP","value":120,"delta":120,"id":"v3-1752067821037-7485331818919","pathname":"/","href":"http://localhost:8081/"}
{"name":"INP","value":0,"delta":0,"id":"v3-1752067821037-7066346355405","pathname":"/","href":"http://localhost:8081/"}
{"name":"CLS","value":0,"delta":0,"id":"v3-1752067821037-6535975895510","pathname":"/","href":"http://localhost:8081/"}

These are the different metrics tracked and their meaning:

Metric What it Measures Your Value Good Value Status
LCP Load performance 68 ms < 2500 ms Excellent
TTFB Server responsiveness 41.1 ms < 500 ms Excellent
FCP First contentful paint 120 ms < 1800 ms Excellent
INP Interaction responsiveness 0 ms < 200 ms No data
CLS Visual stability 0 < 0.1 Perfect

1.5.0

03 Jul 07:48
0089738
Compare
Choose a tag to compare

Support data-proxy-url