Documentation

Migrate from DataFast

Replace the DataFast script with the deferred AnalyticFast snippet from your site's installation settings. Use your AnalyticFast Site ID and tracking origin. Remove the old script to avoid recording twice.

Existing data-fast-goal="signup" HTML attributes keep working. data-fast-goal-plan-type="pro" becomes the plan_type property, following DataFast's documented attribute convention. AnalyticFast keeps its existing limits: 8 properties per event, 40-character keys beginning with a letter, 64-character values and a 1000-character serialized payload. data-af-goal and data-ml-goal take precedence when present. Arbitrary form values and unrelated data attributes are never collected.

Payment metadata named datafast_visitor_id and datafast_session_id is accepted by all built-in payment adapters. Native ml_*, visitor_id/session_id, analyticfast_* and minilytics_* keys take precedence. Point each payment provider's webhook at the AnalyticFast URL and save its signing secret there. Payment history is not imported by this change.

For new checkout integrations use window.analyticfast.attribution() to obtain ml_visitor_id and ml_session_id. Retained DataFast metadata must carry IDs that match the visitor recorded by AnalyticFast: aliases do not import DataFast cookies or historical visitors. Update any backend code that still reads DataFast-only cookies. DataFast API endpoints, API keys, JavaScript queue calls and SDKs are not interchangeable; replace them with the AnalyticFast equivalents.

Stripe Payment Links on buy.stripe.com are tagged automatically, without checkout-code changes. Existing application client_reference_id values remain intact. Subscribe to payment_intent.succeeded, checkout.session.completed and checkout.session.async_payment_succeeded alongside refund and invoice events. Stripe setup.

Test one attributed purchase and refund in your provider's test mode, then confirm the source and net revenue in AnalyticFast. Recreate sale notifications under Settings ? Alerts; Slack, Discord and Telegram credentials are stored encrypted.