Site settings
Import from DataFast
Bring your DataFast history into AnalyticsX with a DataFast API key, what gets imported, how it shows on the dashboard, and its limits.
If you are moving from DataFast, you can bring your history with you. Open Site settings › Import (at
/settings/import), paste a DataFast website API key, and AnalyticsX fetches your past numbers in the background.
Owners and members can start and delete an import; viewers can watch it.
Before you start
- In DataFast, open your website's settings, then Developer (or API), and create a website API key.
It starts with
df_. An account token (dft_…) won't work here. - Install the AnalyticsX script first if you can (see Install the script). The import ends the day before AnalyticsX tracked its first visit, so installing first means the two never overlap and no day is counted twice. The dashboard itself appears once the script has recorded its first visit; until then it shows the install prompt, imported history or not.
Run the import
- Go to Site settings › Import. The Import from DataFast card shows the days it will import.
- Paste the key into DataFast website API key and click Start import. The key is checked with DataFast straight away; a wrong or revoked key is refused with a message.
- A progress bar shows how far it has got. You can leave the page: the import carries on in the background and finishes on its own. DataFast limits how fast its API can be called, so a large site can take a while. When the limit is reached the import waits and then continues.
- When it is done, the card shows the dates imported and the visitors, pageviews and revenue it brought in.
The key is stored encrypted while the import runs and erased as soon as it ends, whether it finished or failed. You can delete the key in DataFast afterwards.
What gets imported
DataFast's API gives totals, not single visits, so AnalyticsX imports totals:
- Every day: visitors, new visitors, pageviews, visits and revenue (with the number of payments).
- Breakdowns, every day: the top 50 sources, pages and countries, the top 25 UTM sources and campaigns, and devices (desktop, mobile, tablet). The Channel card works out each imported source's channel with the same rules as tracked visits.
Which days. From as far back as your plan keeps history (13 months on Starter, 25 on Growth, see Privacy and data) up to the day before your first tracked visit. If nothing has been tracked yet, it runs up to yesterday. Imported days are deleted on the same schedule as tracked data.
Sources. DataFast's referrers are matched to AnalyticsX's names, so "Google" from DataFast and Google from a tracked visit land on the same row. Sites AnalyticsX doesn't know by name show as their domain.
Revenue. Imported revenue is what DataFast attributed, by DataFast's rules, which are not AnalyticsX's attribution rule. It may include renewals. If DataFast's currency is not your website's currency, revenue is left out of the import (other currencies are never added up).
How imported data shows on the dashboard
Imported days are added to the dashboard's numbers: the visitors, pageviews, visits and revenue figures, the chart, and the Source, Channel, Page, Country, UTM source, Campaign and Device breakdowns. A note under the chart says when the period includes imported data.
Things to know:
- Filters. One filter with is or contains on an imported dimension (Source, Channel, Page, Country, UTM source, Campaign or Device) uses that dimension's imported values, so "Source is Google" or clicking a channel on the Sources card still includes imported days. Any other filter, or two filters at once, can't be applied to imported totals: the dashboard then shows tracked data only, and a note under the chart says so.
- Rates come from tracked visits only. Bounce rate, session time and conversion rate need single visits, which the import doesn't have.
- Visitors are added up per day. Someone who visited on two imported days counts on both, so imported visitor totals over long periods can be higher than DataFast showed.
- Only top values are in the breakdowns. Values below the top 50 (or 25) are not imported, so a breakdown's rows can add up to less than the total for imported days. Browsers and operating systems aren't imported, since DataFast's API has no list of them.
- People-level screens don't include it. Visitors, visitor profiles, journeys, funnels and Erase a person work on tracked visits only. Imported data holds no people.
- Goals aren't imported. Recreate your goals under Goals; DataFast-style goal calls keep working (below).
Keep your DataFast goal code
You don't have to rewrite your goal tracking. The AnalyticsX script answers DataFast's calls:
window.datafast('signup')is the same asanalyticsx('track', 'signup'), so it completes a goal of type JavaScript event namedsignup.window.datafast('identify', { user_id, email, name })is the same asanalyticsx('identify', { id, email, name }).
Calls made before the script loaded are kept and sent once it has. See Tracker JavaScript API.
Delete or redo an import
Delete imported data removes everything imported from your numbers. Tracked visits and payments are not touched. While an import is running, the same button reads Stop and delete.
To import again (for example with a different key), delete the current import first. If an import stops with an error, what it had imported stays until you delete it.