File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,9 +13,11 @@ After you've finished the basic setup, expand your analytics with custom events
1313To deploy this template on Tinybird:
1414
1515``` bash
16- curl -sSL https://tinybird.co | bash
17- tb login
18- tb --cloud deploy --template https://github.com/tinybirdco/web-analytics-starter-kit/tree/main/tinybird
16+ git clone https://github.com/tinybirdco/web-analytics-starter-kit
17+ cd web-analytics-starter-kit/tinybird
18+ pnpm install
19+ npx tinybird login
20+ npx tinybird deploy
1921```
2022
2123### Track web events
@@ -144,16 +146,18 @@ Get your `dashboard` token from https://cloud.tinybird.co/tokens.
144146
145147See the [ tinybird] ( ./tinybird/README.md ) and [ dashboard] ( ./dashboard/README.md ) READMEs.
146148
147- 1 . Install the Tinybird CLI using ` curl https://tinybird.co | bash `
148- 2 . Create a [ Tinybird] ( https://tinybird.co ) account and a workspace by running ` tb login `
149- 3 . Clone this repository:
149+ 1 . Create a [ Tinybird] ( https://tinybird.co ) account and a workspace.
150+ 2 . Clone this repository:
150151
151152``` bash
152153git clone https://github.com/tinybirdco/web-analytics-starter-kit
153154cd web-analytics-starter-kit/tinybird
155+ pnpm install
156+ npx tinybird login
154157```
155158
156- 4 . Make changes to the ` tinybird ` project and deploy using ` tb --cloud deploy ` .
159+ 3 . This will create a ` .env.local ` file with ` TINYBIRD_TOKEN ` and ` TINYBIRD_HOST ` values.
160+ 4 . Run ` pnpm dev ` to sync changes to a Tinybird branch, or ` pnpm deploy ` for production.
157161
158162### Hosting your own dashboard on Vercel
159163
Original file line number Diff line number Diff line change @@ -7,14 +7,11 @@ Built with privacy and speed as top priorities, this template lets you get real-
77Fork the GitHub repository and deploy the data project to Tinybird.
88
99``` bash
10- # select or create a new workspace
11- tb login
12-
13- # deploy the template
14- tb --cloud deploy --template https://github.com/tinybirdco/web-analytics-starter-kit/tree/main/tinybird
15-
16- # copy the dashboard token
17- tb --cloud token copy dashboard
10+ git clone https://github.com/tinybirdco/web-analytics-starter-kit
11+ cd web-analytics-starter-kit/tinybird
12+ pnpm install
13+ npx tinybird login
14+ npx tinybird deploy
1815```
1916
2017[ Deploy the dashboard] ( https://github.com/tinybirdco/web-analytics-starter-kit/blob/main/dashboard/README.md ) to Vercel or use the hosted dashboard at https://analytics.tinybird.live/ using the Workspace ` dashboard ` [ token] ( https://cloud.tinybird.co/tokens ) .
@@ -32,11 +29,7 @@ Copy the snippet and paste it within your site `<head>` section:
3229></script >
3330```
3431
35- Get your ` tracker ` token from the [ Tinybird dashboard] ( https://cloud.tinybird.co/tokens ) or using the CLI:
36-
37- ``` bash
38- tb --cloud token copy tracker && TRACKER_TOKEN=$( pbpaste)
39- ```
32+ Get your ` tracker ` token from the [ Tinybird dashboard] ( https://cloud.tinybird.co/tokens ) .
4033
4134Use the ` data-host ` attribute to set your Tinybird host URL. Defaults to ` https://api.tinybird.co/ ` .
4235
You can’t perform that action at this time.
0 commit comments