Skip to main content

Data sharing

Burst Statistics v3.3.0 includes an anonymous usage data collection system (telemetry) that sends aggregated, non-personal statistics to the Burst Statistics team once per month. This data helps improve the plugin.

No personally identifiable information is collected. All data is anonymised at the point of collection using a one-way site hash.


Overview​

The data sharing system is made up of two main components:

ClassResponsibility
Burst\Admin\Data_Sharing\Data_SharingSchedules and triggers the monthly telemetry send
Burst\Admin\Data_Sharing\Data_AggregationCollects, aggregates, and dispatches the payload

Data is collected by individual data collectors (one per category) and combined into a single JSON payload sent via HTTP POST to:

https://api.burst-statistics.com/v2/telemetry
caution

Telemetry is never sent from staging environments. See Staging detection for the full list of detected patterns.


Scheduling​

The send is triggered by the burst_monthly WordPress cron action. When that fires, a single-event cron job (burst_telemetry_send) is scheduled.

The first time only, a random offset between 24 and 720 hours is used. This spreads the initial load across the month rather than all sites sending simultaneously. Every subsequent scheduling uses a small fixed delay of 30 minutes, just enough so the send does not run in the same request as all the other tasks hooked onto burst_monthly.

The first random offset is stored persistently in the burst_telemetry_offset option, which from then on also acts as the marker that the initial random scheduling has already happened.

Send window​

When burst_telemetry_send fires, Burst checks whether a send is due against a rolling 30-day window rather than a calendar month. A send runs when the previous send is at least MONTH_IN_SECONDS - DAY_IN_SECONDS old (29 days), which matches the 30-day interval burst_monthly itself runs on and leaves a day of slack for cron timing. A site that has never sent is always due.

The capture window starts one second after the previous send, but never reaches further back than MONTH_IN_SECONDS:

$capture_start = max( $last_send + 1, time() - MONTH_IN_SECONDS );

The cap matters because the API buckets sites by monthly visitor volume. Without it, a send that follows a missed cycle would report two months of traffic and place the site in a visitor range it does not belong to.

Relevant WordPress options:

OptionDescription
burst_telemetry_offsetRandom hour offset (24–720) used for the first send; afterwards marks that the initial random scheduling has run
burst_last_telemetry_sendUnix timestamp of the most recent successful send

Data collected​

Each category is collected by a dedicated Data_Collector subclass. The aggregated payload always includes:

FieldTypeDescription
site_hashstringSHA-256 hash of site_url + AUTH_KEY. Identifies the site without transmitting the URL.
is_testbooltrue only during test sends. Test payloads are validated but not stored by the API.
settingsobjectActive plugin settings
goalsobjectConfigured conversion goals
environmentobjectWordPress version, multisite flag, site language, PHP version, database version and engine, and similar environment metadata
email_reportsobjectEmail report configuration (not personal email addresses)
metricsobjectAggregated pageview and event counts for the reporting period
ai_chatobjectAnonymised AI chat assistant questions and their answered status

Environment metadata​

Environment data is collected by Burst\Admin\Data_Sharing\Data_Collectors\Environment_Data. The environment payload reports the WordPress core version, whether the install runs on multisite, the active site locale, the active PHP version, and the database version and engine (mysql, mariadb or sqlite).

The database engine is derived from the server info string: it reports mariadb when that string contains mariadb, sqlite when it contains sqlite, and mysql otherwise.

Returned fields:

FieldTypeDescription
wordpress.versionstringWordPress core version
wordpress.multisitebooltrue when the site runs in a WordPress multisite network
wordpress.languagestringActive site locale as returned by get_locale() (e.g. en_US, nl_NL)
php.versionstringActive PHP version
database.versionstringDatabase server version as returned by $wpdb->db_version()
database.enginestringDatabase engine derived from $wpdb->db_server_info(): mysql, mariadb or sqlite

Settings normalization​

Settings data is collected by Burst\Admin\Data_Sharing\Data_Collectors\Settings_Data. Boolean values in the settings payload are normalized to strict true/false before they are sent, regardless of how the underlying option is stored. Common encodings such as '1', 'true', 'yes', 'on', integers, and their negative counterparts are all coerced to a strict boolean. This keeps the telemetry schema consistent across sites that persist option values in different formats.

The geo_ip_database_type value in the settings payload is derived, not read from a stored option. The free plugin always tracks at country level, so it reports country; Burst Pro tracks at city level and reports city. The value is resolved from whether BURST_PRO_FILE is defined, so it always reflects the location detail the install can actually collect.

Visitor recognition is reported through the privacy_level setting, a string sent as-is from the privacy_level option (default cookie). The possible values are:

ValueMeaning
cookieVisitors are recognized with a cookie (most accurate returning-visitor data)
private_modeNo cookie and no fingerprint; returning visitors are not recognized across days
fingerprintNo cookie; visitors are recognized with a device fingerprint

The enable_cookieless_tracking value in the settings payload is derived from privacy_level, not read from a stored option. It is true whenever privacy_level is anything other than cookie (that is, private_mode or fingerprint) and false otherwise, so it always reflects whether the install tracks without cookies.

The burst_headless_domain value is a boolean that reports whether the BURST_HEADLESS_DOMAIN constant is defined, indicating a headless install.

The settings payload also reports the state of the feature toggles that control optional behaviour:

FieldTypeDescription
enable_beta_featuresboolWhether beta features are enabled (the beta setting)
enable_search_consoleboolWhether the Google Search Console integration is enabled
plugin_update_suggestionsboolWhether the recommended update time is shown on the plugins screen (defaults to true)
plugin_update_schedulingboolWhether auto-updates are rescheduled to the quietest traffic window (defaults to false)

Security Note: For Slack notifications only the aggregate slack_sends and slack_failed_sends counts under email_reports.logs are shared. The Slack webhook URL, channel name, and notification message contents never leave the site.

Installation sources​

The settings payload reports which plugin or flow installed Burst and the other Team Updraft plugins:

FieldTypeDescription
plugin_installed_bystringValue of the teamupdraft_installation_source_burst-statistics option, empty string when Burst was installed directly
udp_plugin_install_sourcesobjectMap of Team Updraft plugin slug to the source that installed it

The installer writes these values with update_site_option(), so on multisite they live in the network's sitemeta table instead of the blog's options table. The collector reads them with get_site_option() and queries $wpdb->sitemeta for the current network on multisite, falling back to $wpdb->options on a single site. Both paths return the same payload shape.

The settings payload reports two link counts, each measured from the source that reflects actual usage:

FieldTypeDescription
shared_linksintNumber of active (non-expired) dashboard share links, excluding report tokens
report_linksintNumber of enabled story reports, that is, reports emailed with a report link

shared_links counts the non-expired tokens of type link returned by Share\Tokens::get_share_links( 'link' ). The share service is not loaded on every request that can trigger a send, so the collector checks that burst_loader()->admin->share->tokens is available first and reports 0 when it is not.

report_links counts enabled reports with format story in {$wpdb->prefix}burst_reports, not the report share tokens themselves. Report tokens are created only when a story report is actually sent and expire seven days later, so counting non-expired tokens would measure cron timing rather than usage.

Interactive tour​

The settings payload reports how far the user got in the interactive dashboard tour:

FieldTypeDescription
burst_tour_completedboolWhether the tour has been completed (from the burst_tour_completed option)
burst_tour_last_sectionstringSlug of the last tour section reached (from the burst_tour_last_section option), empty string when the tour was never started

Traffic metrics​

Aggregated traffic metrics are collected by Burst\Admin\Data_Sharing\Data_Collectors\Metrics\Traffic_Metrics and reported under the metrics payload. The collector reads the compare data for the reporting period and derives per-session and device-share values from it. All values are aggregate figures for the reporting window; no per-visitor data is included.

Returned fields:

FieldTypeDescription
visitorsintNumber of visitors in the reporting period
pageviewsintNumber of pageviews in the reporting period
average_bounce_ratefloatAverage bounce rate
average_session_durationfloatLegacy average session duration value in milliseconds
average_time_on_pagefloatAverage time on page in milliseconds
new_visitors_percentagefloatPercentage of visitors who are new (capped at 100)
devicesobjectDevice share percentages for desktop, tablet, mobile and other
pageviews_per_sessionfloatAverage pageviews per session. Present only when the period has at least one session
time_per_sessionfloatAverage time per session in milliseconds. Present only when the period has at least one session
conversion_ratefloatAggregate goal conversions per pageview percentage. Present only when the site has at least one active goal
ai_referralsobjectSessions, pageviews and share of traffic that started from an AI assistant. Present only when the query succeeded

When the period has no data, the collector returns zeroed visitors, pageviews, average_bounce_rate, average_session_duration, new_visitors_percentage, average_time_on_page and devices values, plus a zeroed conversion_rate when active goals exist. The pageviews_per_session and time_per_session fields are omitted when there are no sessions, and conversion_rate is omitted when the site has no active goals.

AI referral metrics​

AI referral metrics are collected by Burst\Admin\Data_Sharing\Data_Collectors\Metrics\Ai_Referral_Metrics and reported under metrics.ai_referrals. The collector counts the sessions and pageviews in the reporting window that started from an AI assistant, and the share those sessions represent of all sessions in the same window.

Classification happens on the fly against Burst\Admin\Statistics\Ai_Referrer_Rules, the shared definition of what counts as AI traffic: the referrer hosts of AI assistants and answer engines, plus the utm_source and utm_medium values assistants append to outbound links. The Pro source classifier uses the same definition, so the dashboard channel and the reported share always agree on what counts as an assistant. Because the classification is done at collection time, the numbers do not depend on the Pro session classifier having run.

The host match covers a host and its subdomains. The UTM match looks across the whole session rather than only the landing hit, so every pageview of a UTM-tagged AI session counts. burst_campaigns is a Pro-only table; on the free plugin it does not exist, so the UTM-based match is skipped there and classification falls back to the referrer host alone. 404 hits are excluded throughout.

Returned fields:

FieldTypeDescription
sessionsintSessions in the window that started from an AI assistant
pageviewsintPageviews inside those sessions
sharefloatPercentage of all sessions in the window, rounded to two decimals and capped at 100

Expected values: the collector returns the three fields above on success. When the query fails or hits the execution-time limit it returns null, and metrics.ai_referrals is omitted from the payload entirely, so "not collected" stays distinguishable from a genuine zero. When the window has no sessions at all, share is 0.0 rather than a division by zero.

The query is capped with the background query timeout (burst_query_timeout_ms_background, falling back to burst_query_timeout_ms) and runs uncached: telemetry runs once per interval, so a cached result would have no second reader.

AI chat questions​

AI chat questions are collected by Burst\Admin\Data_Sharing\Data_Collectors\Ai_Chat_Data and reported under the ai_chat payload. The dashboard AI assistant records an anonymised, generalised version of each question (3–8 words, with names, exact metrics, dates, URLs and personal data stripped) together with whether the assistant answered it.

Recording only happens when the anonymous_usage_data setting is enabled. Each recorded entry is appended to the burst_ai_chat_questions option (a non-autoloaded option capped at the most recent 500 entries). The option is cleared after every successful telemetry send, and immediately when the anonymous_usage_data setting is turned off, so questions never accumulate beyond a single reporting window.

Returned fields:

FieldTypeDescription
question_countintNumber of recorded questions in the reporting window
questionsarrayList of recorded question objects

Each question object contains:

FieldTypeDescription
textstringAnonymised, generalised version of the question
timestampintUnix timestamp when the question was recorded
modelstring|nullAI model used for the response, or null when not recorded
answeredbool|nulltrue when the assistant answered the question, false when it was out of scope or unanswerable, null when not recorded

Database metrics​

Database table row counts are collected by Burst\Admin\Data_Sharing\Data_Collectors\Metrics\Database_Metrics. The collector uses the Database_Helper trait and validates each table suffix through validate_table_name() before issuing a COUNT(*) query. Suffixes that are not in the trait's allow-list are rejected before the query runs.

Query performance metrics​

Slow query telemetry is collected by Burst\Admin\Data_Sharing\Data_Collectors\Metrics\Query_Stats_Metrics. The collector returns up to the top 10 entries from {$wpdb->prefix}burst_query_stats, ordered by avg_execution_time DESC, including a per-row date_range_days value indicating the date span of the originating query.

Returned fields per query row:

FieldTypeDescription
sql_querystringThe recorded SQL query
avg_execution_timefloatAverage execution time in seconds
max_execution_timefloatSlowest recorded execution time in seconds
min_execution_timefloatFastest recorded execution time in seconds
execution_countintNumber of times the query has been executed
date_range_daysintDate span (in days) of the query that produced the entry. 0 when no date range is associated

Report logs​

Report send statistics are collected by Burst\Admin\Data_Sharing\Data_Collectors\Reports_Data and reported under the email_reports payload. The collector aggregates rows from {$wpdb->prefix}burst_report_logs by queue_id, resolves a single final status per queue, and counts each queue once. Each queue is classified by combining its parent row (batch_id IS NULL) with its child batch rows; the resolved final status determines whether it counts toward successful_sends, failed_sends, or neither.

Slack delivery is logged with its own statuses (slack_successful and slack_failed). Those rows are counted separately into slack_sends and slack_failed_sends and are excluded from the e-mail queue-state aggregation, so a Slack delivery never influences the resolved status of an e-mail queue.

Status resolution rules:

  • If a parent status exists and is not PROCESSING, that status wins.
  • Otherwise, if any child batch is PARTLY_SENT, the queue is PARTLY_SENT.
  • Otherwise, if all child batches share a single status, that status wins.
  • Otherwise, the queue is SENDING_FAILED.

Queues whose final status is PROCESSING (or unresolved) are skipped entirely. Queues with queue_id matching test-% are excluded from the aggregation.

A queue is counted as successful only when its final status is SENDING_SUCCESSFUL. The is_failed_status() helper counts a queue as failed when its final status is one of:

  • SENDING_FAILED
  • EMAIL_DOMAIN_ERROR
  • EMAIL_ADDRESS_ERROR
  • CRON_MISS
  • PARTLY_SENT

The returned payload shape:

FieldTypeDescription
reports_sent_last_monthintNumber of distinct queues resolved to a final non-processing status in the reporting window
successful_sendsintQueues whose final status is SENDING_SUCCESSFUL
failed_sendsintQueues whose final status is counted as failed by is_failed_status()
slack_sendsintTotal number of Slack report delivery attempts counted from Report_Logs
slack_failed_sendsintNumber of failed Slack report delivery attempts counted from Report_Logs

The whole email_reports.logs object is null when none of these five counters has a value, so a site that never sent a report reports no log data at all rather than a row of zeroes.

Each report item in email_reports.reports also includes channels, the delivery channel configured for that report: 'email' or 'both' (e-mail plus Slack). Reports without a stored channel report 'email'.

Pro - CreatorAvailable in the Creator tier

Slack delivery of story reports, anomaly alerts and tracking health notifications requires Burst Pro. See Automated reporting & exports.

Required sections and fallbacks​

The aggregator guarantees that the settings, goals, environment, email_reports, metrics and ai_chat sections always exist in the payload, even when an individual collector fails. If a collector throws, its section is replaced with a fallback shape and the failure is recorded under a separate errors key in the aggregated data. The API therefore always receives a payload with the expected top-level structure.

The email_reports.logs value is normalized to either null (when no report log data is available) or an object with non-negative reports_sent_last_month, successful_sends, failed_sends, slack_sends, and slack_failed_sends counts.


Community data​

The telemetry API responds with an optional community_data object: aggregated, non-personal benchmark data derived from all reporting sites. When the response of a successful send (or a test send) contains a community_data key, Burst stores it in the burst_community_data transient for one year and exposes it to the dashboard.

Both Data_Sharing::send_monthly_telemetry() and Data_Sharing::send_test_telemetry() parse the response body and cache the returned community_data value:

Show code
$body = wp_remote_retrieve_body( $response );
$parsed_body = json_decode( $body, true );
if ( is_array( $parsed_body ) && isset( $parsed_body['community_data'] ) ) {
set_transient( 'burst_community_data', $parsed_body['community_data'], YEAR_IN_SECONDS );
}

The cached value is added to the dashboard's localized settings by App::extend_localized_settings_for_dashboard() under the community_data key, or null when no community data has been received yet:

$community_data = get_transient( 'burst_community_data' );
$data['community_data'] = is_array( $community_data ) ? $community_data : null;

Because it is delivered by the API rather than collected on the site, community_data is only refreshed when a send completes successfully, so it can lag up to a month behind the API's current benchmark set.


Anonymisation​

The site identifier sent in every payload is a one-way SHA-256 hash:

hash( 'sha256', get_site_url() . AUTH_KEY );

The raw site URL is never transmitted. Two sites with the same URL but different AUTH_KEY values produce different hashes.


Kill switch​

Before each send, Burst fetches a plain-text control file from:

https://burst.ams3.cdn.digitaloceanspaces.com/feedback/switch.txt

The response body controls whether the send proceeds:

Response bodyBehaviour
enabledSend proceeds normally
disabledSend is skipped for all sites
0–100 (integer)Send proceeds for that percentage of sites (random per-site roll)
Any other value / unreachableSend proceeds (fail-open)

If the kill switch disables a send, burst_last_telemetry_send is still updated so the site does not retry on the next cron cycle.


Staging detection​

No data is sent when the site is identified as a non-production environment. The check uses wp_get_environment_type() first, then inspects the site URL for the following patterns:

Pattern typeExamples
Environment type not productionstaging, development, local (WP core values)
Localhostlocalhost, localhost/…
Local TLD*.local
Staging subdomain prefixstaging.*, stg.*, test.*, beta.*, acceptance.*
Staging subdomain infix*.dev.*, *.test.*, *.stg.*
Managed staging hosts*.instawp.co

Caching​

Aggregated data is cached in the burst_aggregated_data_v2 transient for one week. This reduces database load on repeated API calls. The cache is bypassed when wp_get_environment_type() is not production.

To clear the cache programmatically:

Show code
$aggregation = new \Burst\Admin\Data_Sharing\Data_Aggregation(
strtotime( '-1 month' ),
time()
);
$aggregation->clear_cache();

API request format​

Payloads are sent as JSON POST requests with these headers:

HeaderValue
Content-Typeapplication/json
Acceptapplication/json
HTTP_X_BURST_SIGNATUREValue of the BURST_PUBLIC_KEY constant

WordPress cron hooks​

burst_monthly​

Fires once per month via Burst's internal cron management. The data sharing system uses this action to schedule the deferred telemetry send via Data_Sharing::schedule_telemetry().

This action is not exclusive to data sharing — other subsystems also hook into it.

burst_telemetry_send​

Single-event cron hook that performs the actual data collection and API send. Scheduled by Data_Sharing::schedule_telemetry() with a random offset after burst_monthly fires.

Parameters: none.

Example — observing the send:

add_action( 'burst_telemetry_send', function() {
// Executes immediately before Burst sends telemetry data.
}, 1 );
caution

Removing burst_telemetry_send prevents the send only for the currently scheduled event. The next burst_monthly cycle will reschedule it.


Data collector filters​

burst_data_sharing_license_status​

Filters the license-status value included in the telemetry settings payload.

Default value: free.

burst_data_sharing_subscription_tier​

Filters the subscription-tier string included in the telemetry settings payload.

Default value: free.

burst_data_sharing_ecommerce_metrics​

Filters the ecommerce metrics payload before it is attached to telemetry.

This hook receives the Ecommerce_Metrics collector instance as the second parameter. Return null to omit ecommerce metrics entirely, or return an array payload to include custom ecommerce telemetry.

Example:

Show code
add_filter( 'burst_data_sharing_ecommerce_metrics', function( $metrics, $collector ) {
if ( ! my_plugin_should_share_ecommerce_metrics() ) {
return null;
}

return $collector->collect();
}, 10, 2 );

Disabling data sharing​

Data sharing is suppressed automatically on staging and local environments (see Staging detection).

To disable it unconditionally on a production site, prevent the cron hook from running before Burst's own callback:

Show code
// In a must-use plugin or your theme's functions.php.
add_action( 'burst_telemetry_send', function() {
remove_action(
'burst_telemetry_send',
[ burst()->data_sharing, 'send_monthly_telemetry' ]
);
}, 0 );

To prevent the event from ever being scheduled, intercept burst_monthly early:

Show code
add_action( 'burst_monthly', function() {
remove_action(
'burst_monthly',
[ burst()->data_sharing, 'schedule_telemetry' ]
);
}, 1 );

Test sends​

Data_Sharing::send_test_telemetry() dispatches a payload with is_test: true. The API validates the payload structure but does not persist the data. An optional custom endpoint can be passed for integration testing.

A test send always runs: it skips the 30-day due check and only resolves the capture window, so it can be triggered at any time without waiting for the next cycle.

Show code
$data_sharing = new \Burst\Admin\Data_Sharing\Data_Sharing();
$result = $data_sharing->send_test_telemetry();

if ( $result['success'] ) {
echo 'Accepted. HTTP ' . $result['status_code'];
} else {
echo 'Failed: ' . $result['message'];
}

Return value:

KeyTypeDescription
successbooltrue if the API returned a 2xx status code
status_codeintHTTP response code
messagestringHuman-readable status from the API response body
dataarray|nullFull parsed JSON response body
endpointstringURL the request was sent to

A successful test send also caches any community_data returned by the API (see Community data).


Debug and Site Health export​

Burst\Admin\Debug\Debug builds the debug export shown in Site Health and copied into support requests. Personal and secret values are stripped from the settings it includes:

SettingWhy it is removed
licenseSecret: the license key must not travel with a pasted export
slack_webhook_urlSecret: anyone with the webhook URL can post to the channel
alert_email_recipientsPersonal data: the alert email addresses stay out of a pasted export

The export is generated on the site and shown to the administrator; it is never sent to Burst Statistics servers.


Data export and import​

Burst has two separate mechanisms that move statistics data in and out of a site. Neither one is part of the telemetry system described above, and neither sends data to Burst Statistics servers — exports are written to the site's own uploads directory and imports read from local files or other analytics plugins' tables.

Export never includes options​

Burst\Admin\Export\Export_Manager dumps the Burst statistics tables only. The wp_options table is never part of an export:

  • The importer does not restore options
  • burst_* options hold share tokens, license data, API tokens and the export directory hash — all of which must never travel with a backup file

Tables are discovered with SHOW TABLE STATUS LIKE '{$wpdb->prefix}burst_%' in Export_Manager::discover_tables(), which also skips burst_imports (the import registry is site-specific state, not analytics data).

Export file format and location​

Exports are written to a per-site randomised directory under the uploads folder: uploads/burst/exports/{hash}/, where {hash} is stored in the non-autoloaded burst_export_dir_hash option. The directory is created and hardened with an index.php and a Deny from all .htaccess by the shared upload_dir() helper.

The dump is written as plain SQL (multi-row INSERT statements, keyset-paginated per table) and then compressed:

FormatExtensionRequirement
Gzip.sql.gzgzopen() available (default)
Zip.zipZipArchive class available
Plain SQL.sqlFallback when neither is available

Each file starts with a comment preamble that the importer and the history list parse:

Show code
-- -------------------------------------------------------------
-- Burst Statistics Complete Database Export
-- Generated: 2026-09-17 09:12:44 UTC
-- Tables: 14
-- Table-List: wp_burst_statistics, wp_burst_sessions, ...
-- Rows: 1842301
-- Estimated Rows: 1850000
-- Site URL: https://example.com
-- WordPress: 6.9
-- -------------------------------------------------------------

The -- Rows: field is written as a fixed-width value so the estimate can be patched in place with the real row count when the export completes. -- Estimated Rows: keeps the information_schema estimate the export started with; an exact COUNT(*) over every Burst table is a full index scan per table and is never run on the request that starts an export.

Chunked execution​

An export runs in chunks so no single request holds a worker for the full dump:

ConstantValueMeaning
CHUNK_ROW_LIMIT5000Rows fetched per query
MAX_ROWS_PER_CHUNK25000Rows processed per REST chunk before yielding
ROWS_PER_INSERT250Rows grouped per multi-row INSERT statement
SESSION_TTL7200Seconds an export session transient lives

Each chunk takes an atomic lock (add_option( 'burst_export_lock_{id}' ), reclaimed after 60 seconds if a worker died) and stops after two seconds of wall-clock work. Tables with an integer primary key are paginated by keyset (WHERE pk > %d ORDER BY pk); tables without one fall back to LIMIT offset, count.

Exports are blocked while a database upgrade is running. Export_Manager::handle_export_start() refuses to start when db_upgrades_complete() is false or the burst_upgrade_running transient is set, and rest_export_status reports this as upgrade_running.

Scheduling and retention​

Scheduled exports run from the burst_daily cron hook and are configured through the non-autoloaded burst_export_schedule option:

KeyTypeDescription
enabledboolWhether scheduled exports run
frequencystringdaily, weekly or monthly
retention_countintNumber of exports to keep (1–50, default 5)
last_runint|nullUnix timestamp the last scheduled export started
last_statusstring|nullrunning or completed

maybe_run_scheduled_export() starts a session when the interval has elapsed and no export is already active, then drives it from the burst_export_cron_iteration single-event hook. If the dashboard is driving the same export (the burst_ui_export_active_{id} transient is set), the cron iteration defers rather than competing for the lock.

cleanup_old_exports() runs daily and on export completion. It keeps the newest retention_count archives, then removes orphaned files: a .sql working file older than an hour, any other unreferenced file older than a day.

Download URL​

A finished export is downloaded through admin-post.php, not through the REST API:

$export_manager = new \Burst\Admin\Export\Export_Manager();
$url = $export_manager->get_download_url( $export_id );
// admin.php → admin-post.php?action=burst_export_download&export_id=…&_wpnonce=…

handle_admin_download() verifies user_can_manage() and an export-specific nonce (burst_export_download_{export_id}) before streaming the file with an exact Content-Length. The export ID is stripped of anything outside [a-zA-Z0-9_-] before it is used to build a path, so the handler can only ever resolve a file inside the export directory.

Pro - CreatorAvailable in the Creator tier

Data export and import are Burst Pro features. See Benefit from 100% data ownership.

Importing external analytics data​

Burst\Admin\Import\Import_Manager imports historical data from other analytics tools. Each source is an adapter implementing Burst\Admin\Import\Interfaces\Import_Adapter:

Adapter IDSourceType
burstBurst Statistics backup (.sql.gz, .sql, .zip)upload
ga4_csvGoogle Analytics 4 CSV/ZIP exportupload
plausiblePlausible Analytics CSV/ZIP exportupload
fathomFathom Analytics CSV exportupload
jetpackJetpack Stats CSV exportupload
wp_statisticsWP Statistics tablesdatabase
matomoMatomo for WordPress tablesdatabase
independent_analyticsIndependent Analytics tablesdatabase
kokoKoko Analytics tablesdatabase
statifyStatify tablesdatabase
slimstatSlimstat Analytics tablesdatabase

Uploads go through a chunked, sandboxed pipeline (Chunked_Uploader): burst/v1/import/upload/init creates a 32-hex sandbox under uploads/burst/import/{upload_id}/, .../chunk receives 4 MB parts, and .../finalize assembles them. Only the extensions in Chunked_Uploader::ALLOWED_EXTENSIONS (csv, sql, gz, sql.gz, zip, json, ndjson) are accepted, and the same file (matched on its SHA-256 hash) cannot be imported twice.

Like exports, imports are blocked while a database upgrade runs, and only one import or rollback is active at a time.

Import cut-off at the native tracking start​

An import never writes data for a period Burst already tracked itself. Import_Manager::get_burst_tracking_start() resolves the moment native tracking began and every adapter filters its source rows against it:

$cutoff = \Burst\Admin\Import\Import_Manager::get_burst_tracking_start();
// [ 'timestamp' => 1735689600, 'date' => '2025-01-01', 'formatted' => 'January 1, 2025' ]

The value is computed once from MIN(time) of the statistics rows that are not tagged as imported, falling back to burst_activation_time, and then stored in the non-autoloaded burst_original_activation_time option.

Data-start and bitmap watermarks​

Imported history moves the start of the dashboard's date range backwards. Two non-autoloaded options track this:

OptionDescription
burst_data_startUnix timestamp of the earliest available analytics data, including imported history
burst_visitor_bitmaps_rebuild_fromY-m-d date the visitor bitmap builder must rebuild from

Import_Manager::extend_data_start() only ever lowers both values; restore_data_start() re-evaluates them during a rollback against burst_original_activation_time and the earliest remaining statistics row. The dashboard's date picker reads burst_data_start, falling back to burst_activation_time:

'burst_date_picker_start_date' => (int) ( get_option( 'burst_data_start' ) ?: get_option( 'burst_activation_time', 1640995200 ) ),

Rollback​

Every row an import writes is tagged: its visitors are stored in burst_uids with an imp{import_id}- prefix, which makes a complete rollback possible without touching natively tracked data. Burst\Admin\Import\Helpers\Rollback_Service deletes those uids together with their sessions, hits and per-hit rows (campaigns, parameters, site searches, goal conversions), in bounded chunks driven by the same iteration loop as an import.

A rollback is only accepted for a finished import — completed, failed or cancelled. Goals the import created are removed as well; goals it matched to a pre-existing goal are kept.

Show code
add_filter( 'burst_import_rollback_chunk_size', function( $chunk_size ) {
// Fewer uids per deletion query on a constrained host.
return 1000;
} );

Import filters​

FilterDefaultDescription
burst_import_chunk_time_budget2.0Seconds of work a single import iteration may perform
burst_import_max_events_per_iteration20000Synthesized rows (sessions + hits) one iteration may insert
burst_import_rollback_chunk_size5000Uid dictionary rows one rollback deletion query removes
burst_classify_sourcereferral / searchSource category for an imported referrer string

The burst_classify_source filter receives the fallback category and the raw source string, and is how Burst Pro's Source_Classifier classifies imported traffic:

Show code
add_filter( 'burst_classify_source', function( $category, $source ) {
if ( str_contains( $source, 'my-partner-network' ) ) {
return 'referral';
}

return $category;
}, 10, 2 );

Detecting a previous analytics tool​

Import_Manager::has_known_statistics_tool() detects whether a supported analytics tool is in use — first through the plugin's own PHP constant, then by fetching the front page and looking for the tracking script marker. The result is cached for a week in the burst_known_statistics_tool transient and stored in the non-autoloaded burst_detected_statistics_tool option.

Detection runs on cron only. Request paths read the stored result through get_detected_statistics_tool_name(), which never triggers the detection itself. A failed front-page fetch is treated as unknown rather than as a negative, so a timeout never clears a previously detected tool.


When a visitor arrives via a share link, Burst assigns the burst_viewer role and grants the view_burst_statistics capability. This allows the visitor to access general statistics pages that were included in the shared link's shared_tabs array.

Allowed capabilities for shared-link visitors (v3.3.0+):

Show code
$allowed_caps = [
'view_burst_statistics',
'burst_viewer',
];

Pro - BusinessAvailable in the Business tier

Ecommerce tab sharing requires Burst Pro. See Revenue & Sales Tracking.

Access to the ecommerce (Sales) tab on a shared link is now controlled exclusively by the ecommerce_tab_is_shared() method on Burst\Admin\Share\Share. It inspects the shared_tabs array stored on the token and returns true only when 'sales' is present.

// Resolved automatically via burst_loader()->admin->share.
$share = burst_loader()->admin->share;
$can_view_sales = $share->ecommerce_tab_is_shared();

Internally, user_can_view_sales() (from the Admin_Helper trait) delegates to this method whenever is_shared_link_request() returns true:

Show code
// From trait-admin-helper.php — simplified illustration.
if ( $this->is_shared_link_request() ) {
return burst_loader()->admin->share->ecommerce_tab_is_shared();
}

A protected helper available to any class using the Admin_Helper trait. Returns true when the current request carries either of the two share-token identifiers.

Show code
protected function is_shared_link_request(): bool {
return isset( $_SERVER['HTTP_X_BURST_SHARE_TOKEN'] )
|| isset( $_GET['burst_share_token'] );
}

This helper is used as a guard inside user_can_view_sales() and can be called from any class that uses Admin_Helper to branch logic for anonymous shared-link visitors versus authenticated users.