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.

TableOne row perUseful fields
tg_membersmemberemail, 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_completionsworkout (or exercise) a member finishedmember_id, workout_id, workout_title, completed_at, seconds, calories, has_photo
tg_program_progressmember in one of your programsprogram_title, started_at, current_stage, current_week, stages_completed, weeks_completed, items_completed, complete, points_earned
tg_measurementsvalue a member loggedmetric_title, value, measured_at, object_type, object_id (habits, questionnaires, loggers, meal calories, and one per workout completed)
tg_trophies_earnedtrophy a member earnedtrophy_title, claimed_at
tg_orderspurchase or renewalmember_id, email, product_title, vendor (apple, stripe, paypal), type, valid, amount, created_at, expires_at, sandbox
tg_app_usageapp eventmember_id, session_id, event (screen_view, screen_time, session_end), screen, duration_ms, occurred_at
tg_tribe_eventsevent behind the TG dashboardevent_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_postspost in your communitiescommunity_id, member_id, post_type, likes, created_at
tg_community_repliesreply to one of those postspost_id, member_id, created_at
tg_livestream_chatmessage during a live streamstream_id, member_id, sent_at (who joined in, not what they wrote)
tg_journal_entriesjournal entrymember_id, entry_type, workout_id, created_at (never the text)
tg_exit_surveysmember who cancelledreason, created_at
tg_contentyour program, stage, workout, video, trophy, product or mealkind, content_id, title, tg_availability, created_at
tg_dailyday, last 365on_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":

TableCount it at
tg_workout_completionscompleted_at
tg_membersjoined_at
tg_orderscreated_at
tg_app_usageoccurred_at
tg_program_progressstarted_at
tg_measurementsmeasured_at
tg_dailyon_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_completions has 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_trainers come 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 chat events in tg_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_members without a row in tg_workout_completions since then.
  • Program drop-off: tg_program_progress by program_title, complete and current_week.
  • Most-used screens: tg_app_usage where event is screen_time, summed by screen.
  • Why people leave: tg_exit_surveys by reason.
Related
Start with Oalo

Your own Base, with every feature, from $99 a month.

get started