Skip to main content
Skip table of contents

Main-Tag-Implementation

Main-Tag-Implementation.png

Implement fraud0 Main Tag

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 provides two different options to implement the Main Tag:

  1. Implement fraud0 Main Tag via Google Tag Manager (GTM)

  2. Implement fraud0 Main Tag directly on your website


Option A

Implement fraud0 Main Tag via Google Tag Manager (GTM)

Step 1: Get your fraud0 Main Tag code

  • Login to your fraud0 Dashboard

  • Navigate to Implementation

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

  • Copy the code

The code should look something like this:

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

Step 2: Add a new tag in Google Tag Manager

fraud0 - GTM - new Tag-20221116-190809 (3).jpg
  • Name the new tag fraud0 Tag

  • Open Tag Configuration and select Custom HTML

fraud0 - GTM - Custom HTML Tag-20221116-190929 (2).jpg
  • Paste your code from Step 1 into the HTML field (1)

  • Check Support document.write (2) >>> Step 2 is not necessary, as a new module for rendering user-defined HTML tags is now available in Google Tag Manager. This new module also supports calls to “document.write()”.

  • Set Tag firing priority to 1000 (3) in Advanced Settings

  • Set Triggering to All Pages (4)

fraud0 - GTM - fraud0 Custom HTML Tag-20221116-191254 (2).jpg

Click on Save


Option B

Implement fraud0 Main Tag directly on your website

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:

CODE
<!-- FRAUD0.com fraud detection BODY TAG -->
<script async src="https://bt.fraud0.com/api/v2/fz.js?cid=XXXXXX"></script>
<!-- End of FRAUD0 BODY TAG -->
fraud0 traffic analytics platform - demo - 001209 (1).png

Next Steps


Need support?

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

Send us an email →

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.