fraud0 provides two different javascript tags:

  • fraud0 Main Tag
    This is the main code and responsible for providing you a detailed traffic analysis including invalid traffic. We also include here our pixel tracking script, this loads a small 1x1 pixel above the top of the page so we can catch bots that leave before our main tag is able to execute.

  • fraud0 Conversion Tag
    This code enables us to fine-tune our detection algorithms, by tagging sessions that lead to a conversion we can detect false-positives, i.e. when a session marked as a bot performs an action only a real user would do.

This page shows you how to implement the fraud0 Main Tag directly on your website. If you want to implement the fraud0 Conversion Tag on your website, please read:

Implement fraud0 Conversion Tag directly on your website →

Implement fraud0 Conversion Tag via Google Tag Manager →


Implement fraud0 Main Tag code

  • Login to your fraud0 Dashboard

  • Navigate to Implementation

  • You can find your fraud0 code in the Main Tag section

  • Copy and paste the JavaScript code into the <body> tag on every page of your website



The code should look something like this:

1<!-- FRAUD0.com fraud detection BODY TAG --> 2<script async src="https://api.fraud0.com/api/v2/fz.js?cid=XXX"></script> 3<script>(function(){var i=document.createElement('img');i.src='https://api.fraud0.com/api/v2/pixel?cid=XXX&cb='+Math.random()+'.'+(new Date()).getTime(); 4i.width=i.height=1;i.style='width:1px;height:1px;display:inline;position:absolute;margin-top:-1px;';document.body.append(i);})();</script> 5<!-- End of FRAUD0 BODY TAG -->


Need support?

Do you still have questions or require further details? Contact our support team for assistance!

Send us an email →