Your Tribal Guide stats in Oalo
Your app still runs on Tribal Guide? Connect its data (members, workouts, programs, app usage, orders) to your Base once; it stays current.
If your members' app still runs on Tribal Guide (TG), your TG data can live
in your Base too: members, workouts, programs, app usage, purchases and
community activity. Oalo reads it every 15 minutes into tables named tg_*.
From there you use it like any other data: browse it in Data, build
dashboards, ask your bots, or work with it from oalo and your coding agent.
Oalo can only read your own data: your connection is a read-only login that sees only your members and your content, and never message text.
Connect it (once)
Oalo sends you a database address for your login. Keep it like a password.
From a folder linked to your Base (oalo link), with the address in a
variable:
export TG_STATS_URL='postgresql://tgs_...'
Then one command per table. Each makes the table, checks the connection and reads it once:
oalo sources create tg_members --from-postgres "$TG_STATS_URL" --relation tg_stats.members --key member_id --cursor tg_seq --every 15 --now
oalo sources create tg_workout_completions --from-postgres "$TG_STATS_URL" --relation tg_stats.workout_completions --key completion_id --cursor tg_seq --every 15 --now
oalo sources create tg_program_progress --from-postgres "$TG_STATS_URL" --relation tg_stats.program_progress --key progression_id --cursor tg_seq --every 15 --now
oalo sources create tg_measurements --from-postgres "$TG_STATS_URL" --relation tg_stats.measurements --key measurement_id --cursor tg_seq --every 15 --now
oalo sources create tg_trophies_earned --from-postgres "$TG_STATS_URL" --relation tg_stats.trophies_earned --key earned_id --cursor tg_seq --every 15 --now
oalo sources create tg_orders --from-postgres "$TG_STATS_URL" --relation tg_stats.orders_v --key order_id --cursor tg_seq --every 15 --now
oalo sources create tg_app_usage --from-postgres "$TG_STATS_URL" --relation tg_stats.app_usage --key event_id --cursor occurred_at --every 15 --now
oalo sources create tg_tribe_events --from-postgres "$TG_STATS_URL" --relation tg_stats.tribe_events --key event_id --cursor tg_seq --every 15 --now
oalo sources create tg_community_posts --from-postgres "$TG_STATS_URL" --relation tg_stats.community_posts --key post_id --cursor tg_seq --every 15 --now
oalo sources create tg_community_replies --from-postgres "$TG_STATS_URL" --relation tg_stats.community_replies --key reply_id --cursor tg_seq --every 15 --now
oalo sources create tg_livestream_chat --from-postgres "$TG_STATS_URL" --relation tg_stats.livestream_chat --key message_id --cursor tg_seq --every 15 --now
oalo sources create tg_journal_entries --from-postgres "$TG_STATS_URL" --relation tg_stats.journal_entries_v --key entry_id --cursor tg_seq --every 15 --now
oalo sources create tg_exit_surveys --from-postgres "$TG_STATS_URL" --relation tg_stats.exit_surveys --key survey_id --cursor tg_seq --every 15 --now
oalo sources create tg_content --from-postgres "$TG_STATS_URL" --relation tg_stats.content --key content_key --cursor tg_seq --every 15 --now
oalo sources create tg_daily --from-postgres "$TG_STATS_URL" --relation tg_stats.daily --key day --every 15 --now
oalo sources lists them with when each last ran. Each run reads up to
50,000 new rows a table, and a Base reads up to 200,000 source rows a day in
all. A large tribe's first fill can pass that: the tables that hit the limit
keep their place and carry on the next day. For a big first import, ask Oalo
to raise your Base's daily limit before you connect.
The tables
Each row's id is the key named above. Rows deleted in TG stay, with
tg_deleted_at set (in tg_livestream_chat, deleted is true): leave those
out when you count. tg_app_usage and tg_daily have no deleted rows.
| Table | One row per | Useful fields |
|---|---|---|
tg_members | member | email, first_name, last_name, joined_at, in_tribe, subscriber, is_subscribed, current_day_streak, longest_day_streak, last_streak_at, online, current_program_id, enrolled_programs |
tg_workout_completions | workout (or exercise) a member finished | member_id, workout_id, workout_title, completed_at, seconds, calories, has_photo |
tg_program_progress | member in one of your programs | program_title, started_at, current_stage, current_week, stages_completed, weeks_completed, items_completed, complete, points_earned |
tg_measurements | value a member logged | metric_title, value, measured_at, object_type, object_id (habits, questionnaires, loggers, meal calories, and one per workout completed) |
tg_trophies_earned | trophy a member earned | trophy_title, claimed_at |
tg_orders | purchase or renewal | member_id, email, product_title, vendor (apple, stripe, paypal), type, valid, amount, created_at, expires_at, sandbox |
tg_app_usage | app event | member_id, session_id, event (screen_view, screen_time, session_end), screen, duration_ms, occurred_at |
tg_tribe_events | event behind the TG dashboard | event_type (signup, workout_complete, trophy_earned, enroll, cancelled, chat, reply, analytics), value_type (member_count, subscriber_count, mrr, daily_engagement), value, occurred_at |
tg_community_posts | post in your communities | community_id, member_id, post_type, likes, created_at |
tg_community_replies | reply to one of those posts | post_id, member_id, created_at |
tg_livestream_chat | message during a live stream | stream_id, member_id, sent_at (who joined in, not what they wrote) |
tg_journal_entries | journal entry | member_id, entry_type, workout_id, created_at (never the text) |
tg_exit_surveys | member who cancelled | reason, created_at |
tg_content | your program, stage, workout, video, trophy, product or meal | kind, content_id, title, tg_availability, created_at |
tg_daily | day, last 365 | on_date, workouts_completed, workout_minutes, members_who_worked_out, members_in_app, app_sessions, app_minutes, new_members, orders |
tg_daily is the quickest start for a dashboard: one row per day with the
numbers most trainers look at first.
Dashboards
Ask the Oalo assistant for the charts you want, in a sentence, and it adds them to a dashboard (Insights > Dashboards). Or build them yourself with Edit > Add widget.
One setting matters: when a row counts. Every tg_* row was copied into
Oalo on the day you connected, so count each one at its own date, never at
"created":
| Table | Count it at |
|---|---|
tg_workout_completions | completed_at |
tg_members | joined_at |
tg_orders | created_at |
tg_app_usage | occurred_at |
tg_program_progress | started_at |
tg_measurements | measured_at |
tg_daily | on_date (and sum its number fields) |
Things to ask for:
- "Workouts completed per week for the last 90 days, from tg_workout_completions by completed_at."
- "New members per month from tg_members by joined_at."
- "A line of members_in_app and members_who_worked_out from tg_daily by on_date."
- "Bars of the 10 most-used screens: tg_app_usage where event is screen_time, sum of duration_ms by screen."
- "Program completion: tg_program_progress grouped by program_title and complete."
Good to know
- More complete than the TG dashboard. Its "Wkts Completed" counts only
workouts some app templates reported;
tg_workout_completionshas every completion. Its "Engagement" counts the nightly job's own rows too. - Members of more than one trainer. Activity on another trainer's
workouts and programs isn't shown. The member totals ending in
_all_trainerscome from the member's profile and include everything. - Apple renewals can be one row each in
tg_orders: count members, not rows, for subscribers. - Chat: member messages show as
chatevents intg_tribe_events, with no text. - Nothing is written back to TG. Changing a row in your Base changes only
your copy. TG's version comes back the next time that row changes in TG
(
tg_daily, read whole, is put back on every read).
Common questions to ask your data
- Members who haven't finished a workout in 14 days:
tg_memberswithout a row intg_workout_completionssince then. - Program drop-off:
tg_program_progressbyprogram_title,completeandcurrent_week. - Most-used screens:
tg_app_usagewhereeventisscreen_time, summed byscreen. - Why people leave:
tg_exit_surveysbyreason.
Take rows or documents from another system: a source gives it an address to post JSON, NDJSON or CSV to, and keeps only the fields you choose.
Charts over your data models, events and contacts, saved as dashboards in the workspace or on an app, and the same query for an app's own charts.
How to define your own data tables in Oalo, import a CSV, stage and promote data, and push data in from another system through the Data API.
Your own Base, with every feature, from $99 a month.