Skip to content

Step 4 — Implement the Conversion Tag

The Conversion Tag is optional but highly recommended. It tells fraud0 which sessions led to real conversions — and that signal is what allows the detection model to identify false positives (a session initially flagged as a bot that closed a sale was almost certainly not a bot).

Place the Conversion Tag only on confirmation pages (post-checkout, post-form-submit, post-signup) — not on every page.


Use this if you only need to know that a conversion happened, not what kind.

Basic conversion
<script type="text/javascript">
fraud0 = window.fraud0 || [];
fraud0.push([1]);
</script>

Push the form name as the second argument to report on conversions per form.

Lead conversion
<script type="text/javascript">
fraud0 = window.fraud0 || [];
fraud0.push(['lead', '{{form name}}']);
</script>

In GTM, replace {{form name}} with a Data Layer Variable holding the form identifier (e.g. contact_form, newsletter_signup, whitepaper_download).


Push purchase plus the order ID. The order ID appears in fraud0 reports and lets you reconcile conversions against your backend.

Purchase conversion
<script type="text/javascript">
fraud0 = window.fraud0 || [];
fraud0.push(['purchase', '{{order id}}']);
</script>

Signup conversion
<script type="text/javascript">
fraud0 = window.fraud0 || [];
fraud0.push(['signup', '{{signup id}}']);
</script>

For anything that is neither a lead nor a purchase — e.g. “free trial activated”, “account upgraded”, “waitlist confirmed”.

Custom conversion
<script type="text/javascript">
fraud0 = window.fraud0 || [];
fraud0.push(['{{conversion type}}', '{{conversion id}}']);
</script>

Common conversion types: trial_started, subscription_renewed, whitepaper_download, quote_requested, appointment_booked.


Multiple conversion types on the same page

Section titled “Multiple conversion types on the same page”

If a single confirmation page can represent more than one conversion type, push them as separate entries:

Multiple conversions on one page
<script type="text/javascript">
fraud0 = window.fraud0 || [];
fraud0.push(['purchase', '{{order id}}']);
fraud0.push(['newsletter_signup', '{{email hash}}']);
</script>

The same three-variant logic from Step 3 applies to the Conversion Tag.

  1. In GTM, create a new tag → Custom HTML. Name it F0 Conversion Tag.

  2. Paste the appropriate snippet from above.

  3. Open Advanced Settings → set Tag firing priority to 800.

  4. Set Triggering to the confirmation page trigger (URL-based or a custom event such as purchase from your e-commerce data layer).

  5. Publish your container.


Variant B — Via standard (client-side) GTM

Section titled “Variant B — Via standard (client-side) GTM”
  1. Go to your Google Tag Manager WorkspaceTagsNew.

    Step 2 Conversion Tag

  2. Name the tag F0 Conversion TagTag ConfigurationCustom HTML.

    Tag configuration

  3. Paste the appropriate snippet. Check Support document.write. Set Tag firing priority to 800. Set Triggering to the confirmation page trigger.

    Trigger setup

  4. Click Save and publish.


  1. Log in to your fraud0 DashboardImplementation → copy the code from the Conversion Tag section.

    Conversion Tag code

  2. Paste the snippet just before the closing </body> tag of your confirmation page template.

  3. Deploy as part of your next release.




Imprint Privacy Policy Terms & Conditions DPA