Data Sync and Data Dump allow you to export your Project's analytics data directly to an external database that you manage.
This enables you to work with Gametize data outside the Admin Console, including:
- Building custom analytics dashboards.
- Integrating with existing reporting and business intelligence tools.
- Conducting more detailed data analysis.
- Maintaining historical records of Project performance.
- Comparing Player engagement across different reporting periods.
The feature currently supports Supabase as an external database destination.
BETA: Data Sync and Data Dump are being introduced progressively on supported platforms. The feature must be enabled by a Super Administrator before it becomes available within a Project.
Understanding Data Sync and Data Dump
There are two export modes available, depending on how you intend to use your data.
| Data Sync | Data Dump | |
|---|---|---|
| Purpose | Maintain the latest exported version of your report. | Retain historical versions of your report. |
| Export behaviour | Replaces the previous snapshot with the latest report data. | Adds a new copy of the report without replacing previous exports. |
| Historical data | Previous snapshots are replaced. | Previous versions are retained. |
| Recommended for | Dashboards and current-state reporting. | Historical analysis, periodic reporting and comparisons. |
For example, if you export your Players Report every week:
- Data Sync maintains the latest version of the Players Report.
- Data Dump retains a separate version for each weekly export, allowing you to compare changes over time.
Both export modes can be used within the same Project and Supabase destination.
Supported reports
Data Sync and Data Dump currently support:
- Completions Report: Individual Challenge completions, including completion details, timestamps and points.
- Players Report: Individual Players and their Project-level statistics.
Each report is exported independently.
Accessing Data Sync and Data Dump
- Sign in to the Admin Console.
- Open the relevant Project.
- Go to Analytics.
- Select the Data Sync tab.
Project Owners, Project Administrators and Moderators can configure the destination and perform exports.
If the Data Sync tab is not available, the feature may not have been enabled on your platform.
Setting up your Supabase destination
Before exporting data, you will need a Supabase project that you own or manage.
You will need the following:
- Supabase Project Reference: The unique reference of your Supabase project, available in your Supabase project settings.
- Supabase Secret API Key: A secret API key beginning with
sb_secret_.
1. Prepare your Supabase database
- From the Data Sync tab, expand Set up Supabase.
- Copy or download the provided setup SQL.
- Sign in to your Supabase dashboard and open the relevant Supabase project.
- Open SQL Editor and create a new query.
- Paste and run the setup SQL.
This creates the database tables required by Gametize for Data Sync and Data Dump.
NOTE: Always use the setup SQL provided in the Admin Console rather than manually creating the required tables. The script can safely be run again when necessary.
2. Configure your destination
Return to the Data Sync tab in the Gametize Admin Console.
- Enter your Supabase Project Reference.
- Enter your Supabase Secret API Key.
- Select Save Destination.
Gametize will automatically check whether the destination is accessible and the required database tables have been configured correctly.
Your secret API key is stored securely in encrypted form and will not be displayed again after saving.
3. Verify your destination
Select Check destination to verify your Supabase connection at any time.
This checks:
- Whether the destination is accessible.
- Whether the saved secret API key is valid.
- Whether the required database tables are available and correctly configured.
Checking the destination does not export or modify any data in Supabase.
Once your destination has been successfully verified, you can start exporting your Project data.
Running a Data Sync
Data Sync replaces the previous exported snapshot of a selected report with its latest available data.
- Open the Data Sync tab.
- Under Start an Export, select Data Sync as the export mode.
- Select the report you wish to export.
- Select Start Export.
Your export will be queued and processed in the background. You can monitor its progress under Sync History.
Each successful Data Sync replaces the previous snapshot of the selected report. For example, syncing the Completions Report does not affect the previously synced Players Report.
Accessing synced data in Supabase
Your exported data can be accessed through the following tables:
| Report | Supabase table |
|---|---|
| Completions Report | gametize_completions |
| Players Report | gametize_players |
These tables contain the latest successfully synced version of each report.
Running a Data Dump
Data Dump creates a new historical version of a selected report without replacing previous exports.
- Open the Data Sync tab.
- Under Start an Export, select Data Dump as the export mode.
- Select the report you wish to export.
- Select Start Export.
Your export will be queued and processed in the background.
Unlike Data Sync, each Data Dump adds a complete new version of the report to your destination.
Accessing historical data in Supabase
Your exported data can be accessed through the following tables:
| Data | Supabase table |
|---|---|
| Completions Report | gametize_dump_completions |
| Players Report | gametize_dump_players |
| Export version history | gametize_dump_meta |
Each Data Dump is identified by:
- Dump ID: A unique reference identifying a particular export.
- Dumped at: The date and time when the export started, recorded in UTC.
You can use the Dump ID to retrieve data from a specific export or compare multiple versions of a report.
NOTE: Only use Data Dump versions marked as completed in the export version history table. Failed or interrupted exports may contain incomplete data.
Already using Data Sync?
If you previously configured your Supabase destination before Data Dump became available, you may need to update its database setup.
- Open Set up Supabase in the Data Sync tab.
- Copy or download the latest setup SQL.
- Run it again in your Supabase project.
- Select Check destination in the Admin Console.
This adds the required Data Dump tables without affecting your existing Data Sync data.
Configuring Identity Export Settings
By default, Player display names and email addresses are excluded from exported data.
Project Owners and Project Administrators can manage these options under Identity Export Settings.
You can choose whether to include:
- Player display names.
- Player email addresses.
Changes will apply to subsequent successful exports.
IMPORTANT: Before enabling the export of personal information, ensure that your organisation has appropriate data protection, access control and retention measures in place for the external database.
Previously exported historical Data Dump versions may still contain personal information that was included at the time of export. These records must be managed separately within your external database.
Monitoring your exports
The Sync History section allows you to review previous and ongoing Data Sync and Data Dump exports.
Information available includes:
- Export mode.
- Selected report.
- Export status.
- Administrator who initiated the export.
- Requested, started and completed timestamps.
- Number of rows processed.
- Dump ID, where applicable.
An export may have one of the following statuses:
| Status | Description |
|---|---|
| Queued | The export is waiting to be processed. |
| Running | The export is currently being processed. |
| Succeeded | The export has completed successfully. |
| Failed | The export could not be completed. |
| Cancelled | The export was cancelled before completion. |
You can refresh the page to check the latest progress.
An export containing no report data may still complete successfully with zero rows.
Updating or disconnecting your Supabase destination
You can update your saved Supabase destination details from the Data Sync tab.
If you need to replace your secret API key, enter the new key and save your destination again.
To remove the connection entirely, select Disconnect Supabase.
Disconnecting your destination does not delete any data previously exported to your Supabase project.
Troubleshooting
| Issue | Recommended action |
|---|---|
| The destination has not been configured correctly. | Run the latest setup SQL in Supabase and select Check destination. |
| The secret API key is rejected. | Check or replace your Supabase secret API key. |
| Data Dump tables are unavailable. | Run the latest setup SQL again to create the required tables. |
| Another export is already running. | Wait for the existing export to finish before starting another. |
| The export request limit has been reached. | Try again later, based on the limit displayed in the Admin Console. |
| The destination cannot be reached. | Check your Supabase project's availability and try again. |
If you encounter a destination-related issue, we recommend using Check destination as your first troubleshooting step.
Important considerations
- Each Project can be connected to one Supabase destination at a time.
- Only one Data Sync or Data Dump export can be queued or running per Project at any time.
- Export requests are subject to a per-Project hourly limit.
- Exports are processed in the background and may take longer for Projects containing large amounts of data.
- Data Sync is not a continuous, real-time connection. Data is refreshed when an export is successfully completed.
- Data Dump exports a complete copy of the selected report each time, rather than only newly added or changed records.
- Data is processed in batches. An export may reflect changes made to the source data while it is running.
- Historical Data Dump exports are not automatically updated when source data is modified or deleted in Gametize.
- You are responsible for managing the security, storage, retention and associated costs of your external database.
We recommend reviewing your reporting requirements before deciding which export mode to use, particularly when retaining large volumes of historical data.
Comments
0 comments
Please sign in to leave a comment.