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.
- 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.
- In the initial menu, click on New tag.

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

- 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>
- 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.

- 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
paymentto 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 theequalsoption, and complete the third field with the wordpayment.

- 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.
- In this menu, click the Submit button located in the upper right corner.

- 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.

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.