Theme

Start for free
DocsSwitching from DataFast

02 · Install

Switch from DataFast by swapping one tag

Tally reads what DataFast's tag reads, so the code on your pages stays as it is.

01Swap the tag

Remove DataFast's tag and add yours, from the site's Setup page. Nothing else on your pages changes.

Remove
<script defer data-website-id="dfid_…" data-domain="yoursite.com" src="https://datafa.st/js/script.js"></script>
Add
<script defer data-site="k3xq2mfa7twp" src="https://t.tallybyoutpost.com/script.js"></script>

02What keeps working

  • data-website-id on the tag, read as data-site, and data-allow-localhost="true".
  • window.datafast(name, props) calls, and DataFast's queue snippet for calls made before the script loads.
  • data-fast-goal="name" attributes with their data-fast-goal-<key> properties (kebab-case becomes snake_case, as DataFast reads them).
  • The datafast_visitor_id cookie: a returning visitor keeps it as their visitor id, and it stays renewed, so checkout code that reads it keeps linking sales.
  • datafast_visitor_id in Stripe, Paddle, Lemon Squeezy or Polar metadata, read as it is.
  • localStorage.datafast_ignore = true, which excludes a browser.
  • DataFast's payment API calls: the same path and body (Payments API).

03What works differently

  • data-domain is ignored: the script finds the widest domain that holds its cookie by itself.
  • Cookieless mode, consent mode and hash routing are attributes of the one script (data-mode, data-hash), not separate files.
  • data-api-url isn't read: a proxy is set with data-api. A DataFast proxy forwards to DataFast, so it changes in the swap anyway (Serving it from your domain).
  • Goal properties: past 10, or with a bad key, the first 10 valid ones are kept, where DataFast drops the goal.
  • datafast_session_id isn't written: sessions are worked out on the server, and sales are linked by the visitor id.
  • datafast('identify', …) and datafast('payment', …) become an identify when they carry an email, which matches buyers by it. Names, images and custom keys aren't sent.
  • Stripe Payment Links are tagged with the visitor's id (client_reference_id) on their own.
  • A click on a link to any other host name counts as outbound, app.yoursite.com from www.yoursite.com included.

04What doesn't come with it

05Check it worked

Something missing, or not what you see? Write to support@tallybyoutpost.com and say which page.