Revenue attribution guide

Attribute revenue with Podia

Make sure you've added DataFast tracking to your Podia site and connected your Stripe account first.

1. Access Podia's Third Party Code settings

  1. Log in to your Podia dashboard
  2. Go to Settings > Third Party Code
  3. Scroll down to the Conversion tracking code section

2. Add the DataFast conversion tracking code

Paste the following code in the Conversion tracking code field:

<script>
  (function () {
    function trackGoal() {
      try {
        if (
          typeof Podia !== "undefined" &&
          Podia.Conversion &&
          Podia.Conversion.customer
        ) {
          var email = Podia.Conversion.customer.email;
          if (typeof window.datafast === "function") {
            window.datafast("payment", { email: email });
          } else {
            setTimeout(trackGoal, 100);
          }
        }
      } catch (e) {
        console.error("DataFast tracking error:", e);
      }
    }

    if (document.readyState === "loading") {
      document.addEventListener("DOMContentLoaded", trackGoal);
    } else {
      trackGoal();
    }
  })();
</script>

3. Save the settings

Click Save to apply the conversion tracking code.

Important notes

  • The conversion tracking code only runs on successful purchase completion

After a successful purchase, you should see revenue data in your DataFast dashboard. If you don't see attribution data, contact us at marc@datafa.st.

Something missing? Suggest features ✍️