Configure Device Fingerprint - Implementation stages - Mercado Pago Developers

Configure Device Fingerprint

Device Fingerprint is a security feature that helps improve fraud risk analysis in each transaction. Through the collection of non-sensitive information, it identifies the device used in a purchase and compares it with previous transactions to determine its security level.

The Device Fingerprint configuration in VTEX stores must be performed through Google Tag Manager, which allows inserting the necessary scripts. Follow the steps below to do it.

Each store must have only one active Device Fingerprint. Check if there is another connector that is already using it and, if so, remove it.
  1. Log in to Google Tag Manager with your username and password. If you don't have an account, you can create one by accessing the official site.
  2. In the initial menu, click on New tag.

Google Tag Manager start

  1. Then, click on the Tag configuration option.
  2. In Choose a tag type, in the "Custom" section choose the Custom HTML type.

tag creation

  1. In the HTML code block, insert the following script:

javascript

<script>
var script = document.createElement("script");
script.src = "https://www.mercadopago.com/v2/security.js";
script.setAttribute("output","vtex.deviceFingerprint");
script.setAttribute("view","checkout");
document.body.appendChild(script);
</script>
  1. Click on the Triggering section to open the "Choose a trigger" menu. Then, click on the + symbol in the upper right corner, which will allow you to configure a New trigger.

create trigger

  1. Then, click on Trigger configuration and complete the fields as appropriate:
  • In the "Others" section, select Custom event to configure when the script will be triggered.
  • Enter the name payment to identify it.
  • When asked when the event will be triggered, choose the Some custom events option.
  • Customize the conditions under which the event will be triggered. For the Select variable field define the value {{Event}}; in the second field, select the equals option, and complete the third field with the word payment.

configure trigger

  • Click the Save button.
  • Assign a name to the trigger and click the Save button as many times as requested. You will be redirected to the main menu.
  1. In this menu, click the Submit button located in the upper right corner.

configure trigger 2

  1. In the Submit changes menu, click the Publish button located in the upper right corner. Optionally you can add a descriptive name for the container version. Then, click Continue.

publish trigger

Wait for your version to be created and then you will get a summary of the configuration you just performed. With this, you will have configured the Device Fingerprint.