{"section":"tutorials","requestedLocale":"en","requestedSlug":"how-to-set-up-the-device-fingerprint-for-braspag","locale":"en","slug":"how-to-set-up-the-device-fingerprint-for-braspag","path":"docs/en/tutorials/payments/payment-settings/how-to-set-up-the-device-fingerprint-for-braspag.md","branch":"main","content":"__Device Fingerprint__ is an identifier that acts in payment processing to improve fraud risk analysis. \n\nBy collecting non-sensitive data, Device Fingerprint identifies and analyzes the security level of the device used to perform a given transaction. It also analyzes transactions previously performed with that device.\n\n> ℹ️ Each store must have only one Device Fingerprint registered. Check if you have already registered the Device Fingerprint in another connector, before proceeding with the steps below.\n\nThis article will explain how to associate the Device Fingerprint feature with the Braspag affiliation.\n\n> ℹ️ The settings documented in this article take place in an environment that is external to VTEX, therefore they may be outdated.\n\nTo enter the device fingerprint scripts required by Braspag/CyberSource, you will need to use Google Tag Manager. To do so, go to [http://www.google.com/tagmanager](http://www.google.com/tagmanager/) and access your account.\n\n## Creation of variables (macros) and driver\n\n- Create a variable named `trasactionPaymentId`, ype **Variável da camada de dados**, by reading the detalayer `transactionPayment.id` variable.[]![](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/payments/payment-settings/how-to-set-up-the-device-fingerprint-for-braspag_1.png)\n- Create a variable named `cs_sessionId`, of type **JavaScript personalizado** and the following code:\n\n```\nfunction() {  \n  var transactionPaymentId = {{transactionPaymentId}}  \n  return transactionPaymentId.toLowerCase();\n  }\n```\n\n- Create the variables `cs_orgId` and `cs_merchantId` of type **Permanente.** The values of these two variables should be filled out with the contents informed by Braspag.\n\n![gtm-cybersource-variavel3-permanente](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/payments/payment-settings/how-to-set-up-the-device-fingerprint-for-braspag_2.png)\n\n- Create or edit a driver for the orderPlaced screen (screen that shows purchases successfully closed) for it to be compatible with the **Evento personalizado** type and the **orderPlaced** value.\n\n![gtm-cybersource-acionador-orderplaced](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/payments/payment-settings/how-to-set-up-the-device-fingerprint-for-braspag_3.png)\n\n## Creation of a Braspag tag\n\n- Create a new tag of type **HTML personalizado**;\n- Name it according to your preference.\n\nFill it out with the HTML below:\n\n```\n<p>\n<img src=\"https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/payments/payment-settings/how-to-set-up-the-device-fingerprint-for-braspag_1.png\" alt=\"\">\n\n<object type=\"application/x-shockwave-flash\" data=\"https://h.online-metrix.net/fp/fp.swf?org_id={{cs_orgId}}&amp;session_id={{cs_merchantId}}{{cs_sessionId}}\" width=\"1\" height=\"1\"id=\"thm_fp\">\n<param name=\"movie\" value=\"https://h.online-metrix.net/fp/fp.swf?org_id={{cs_orgId}}&amp;session_id={{cs_merchantId}}{{cs_sessionId}}\" /><div></div></object>\n\n<script src=\"https://h.online-metrix.net/fp/check.js?org_id={{cs_orgId}}&amp;session_id={{cs_merchantId}}{{cs_sessionId}}\" type=\"text/javascript\"></script>\n```\n\n![braspag fingerprint](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/payments/payment-settings/how-to-set-up-the-device-fingerprint-for-braspag_4.png)\n\nAt last, post the changes."}