Skip to content

Commit eda96e4

Browse files
committed
fix readme
1 parent f41138f commit eda96e4

2 files changed

Lines changed: 17 additions & 20 deletions

File tree

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ After you've finished the basic setup, expand your analytics with custom events
1313
To 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

145147
See 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
152153
git clone https://github.com/tinybirdco/web-analytics-starter-kit
153154
cd 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

TEMPLATE.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ Built with privacy and speed as top priorities, this template lets you get real-
77
Fork 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

4134
Use the `data-host` attribute to set your Tinybird host URL. Defaults to `https://api.tinybird.co/`.
4235

0 commit comments

Comments
 (0)