-
Notifications
You must be signed in to change notification settings - Fork 1k
Analytics backend #1318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
oscartbeaumont
wants to merge
24
commits into
main
Choose a base branch
from
analytics2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Analytics backend #1318
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
07fff59
analytics views
oscartbeaumont 25b54cb
tracking page views
oscartbeaumont 2bcb9a6
query for analytics data
oscartbeaumont 6b95e22
Merge branch 'main' into analytics2
oscartbeaumont e6fa9df
format
oscartbeaumont 8298b83
fix Tinybird CI?
oscartbeaumont 09a20ec
maybe?
oscartbeaumont 1dcafb4
no shot?
oscartbeaumont aea85f2
add permissions
oscartbeaumont ca8187a
bruh
oscartbeaumont 0bb5da0
debug
oscartbeaumont 7121503
bruh
oscartbeaumont f970f27
bruh
oscartbeaumont 4cf0b7a
fix
oscartbeaumont 266febf
Effect properly
oscartbeaumont ac0210a
format
oscartbeaumont 89ca956
fix workflow
oscartbeaumont 48ed4f2
fix
oscartbeaumont e54cf4e
Merge branch 'main' into analytics2
richiemcilroy 1176bd3
Add share watch time analytics and improve seek bar
richiemcilroy 70f610f
Implement client-side video analytics tracking
richiemcilroy 9f08ba4
Enhance Tinybird CLI install security in workflow
richiemcilroy eb58693
Add health check wait step for Tinybird Local
richiemcilroy cad1309
Enhance Tinybird CLI installation security in CI
richiemcilroy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: Tinybird | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - master | ||
| types: [opened, reopened, labeled, unlabeled, synchronize] | ||
|
|
||
| concurrency: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
|
|
||
| env: | ||
| TINYBIRD_HOST: ${{ secrets.TINYBIRD_HOST }} | ||
| TINYBIRD_TOKEN: ${{ secrets.TINYBIRD_TOKEN }} | ||
|
|
||
| jobs: | ||
| ci: | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: '.' | ||
| services: | ||
| tinybird: | ||
| image: tinybirdco/tinybird-local:latest | ||
| ports: | ||
| - 7181:7181 | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
|
|
||
| - name: Install Tinybird CLI | ||
| run: curl https://tinybird.co | sh | ||
|
|
||
| - name: Build project | ||
| run: tb build | ||
|
|
||
| - name: Test project | ||
| run: tb test run | ||
|
|
||
| - name: Deployment check | ||
| run: tb --cloud --host ${{ env.TINYBIRD_HOST }} --token ${{ env.TINYBIRD_TOKEN }} deploy --check | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,3 +47,6 @@ tauri.windows.conf.json | |
| # Cursor | ||
| .cursor | ||
| .env*.local | ||
|
|
||
| # Tinybird | ||
| .tinyb | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| DESCRIPTION > | ||
| Analytics events for when the share page is opened. | ||
|
|
||
| TOKEN "tracker" APPEND | ||
|
|
||
| SCHEMA > | ||
| `timestamp` DateTime `json:$.timestamp`, | ||
| `version` LowCardinality(String) `json:$.version`, | ||
|
|
||
| `session_id` Nullable(String) `json:$.session_id`, | ||
| `video_id` String `json:$.video_id`, | ||
|
|
||
| `payload` String `json:$.payload` | ||
|
|
||
| ENGINE MergeTree | ||
| ENGINE_PARTITION_KEY toYYYYMM(timestamp) | ||
| ENGINE_SORTING_KEY video_id, timestamp |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.