{"section":"tutorials","requestedLocale":"en","requestedSlug":"how-to-configure-konduto","locale":"en","slug":"how-to-configure-konduto","path":"docs/en/tutorials/payments/payment-settings/how-to-configure-konduto.md","branch":"main","content":"Konduto is an anti-fraud, external system that analyzes the purchases performed, in order to prevent frauds.\n\nThis anti-fraud depends on different configurations of the [other anti-frauds that can be configured on your platform](/en/docs/tutorials/how-to-configure-the-anti-fraud/). Therefore, this article aims to document the Konduto configuration.\n\n## Configure your GTM\n\nGTM is the Google Tag Manager, a Google tool that makes tags management on the site. This GTM is then associated to your account, and enters all tags configured on it to your website. [See more details on how to configure the GTM in your store.](/en/docs/tutorials/integration-with-google-tag-manager/)\n\n### Create the variable\n\nThe first step is the variable configuration. The variable name must be `kondutoId`, since it is the value indicated in the script below. The variable must be of **permanent** type. On the value of the variable, enter the _public_key_ informed by Konduto &#8211; each store has a unique id.\n\n### Configure the tag\n\nOn your GTM account, create a tag (customized html type) with the script below.\n\n```\n<script>var __kdt = __kdt || [];__kdt.push({\"public_key\":\"kondutoId\"});__kdt.push({\"post_on_load\": false});(function() { var kdt = document.createElement('script');kdt.id = 'kdtjs';kdt.type = 'text/javascript';kdt.async = true;kdt.src = 'https://i.k-analytix.com/k.js';var s = document.getElementsByTagName('body')[0]; s.parentNode.insertBefore(kdt, s); })();$(function() {var period = 300;var limit = 20 * 1e3;var nTry = 0;var intervalID = setInterval(function() {var clear = limit/period <= ++nTry;if (typeof(Konduto.sendEvent) !== \"undefined\") {setKondutoFingerPrint();clear = true;}if (clear) { clearInterval(intervalID); }}, period);}); var setKondutoFingerPrint = function(){ var kdtFP = Konduto.getVisitorID(); window.vtex.deviceFingerprint = kdtFP; Konduto.sendEvent('page','checkout'); }</script>\n```\n\n## Configure the Gateway Affiliation\n\n1. In the VTEX Admin, go to **Store Settings** > **Payment** > **Settings**, or type **Settings** in the search bar at the top of the page.\n2. Access **Gateways Affiliations** and click **+**.\n3. Search for Anti-Fraud **Konduto.**\n4. Complete the form with the data indicated by the anti-fraud.\n5. \n## Configure the payment mehods\n\nTo link the **Konduto** to a form of payment:\n\n1. Access the tab **Payment terms**.\n2. Click on the desired condition or [Configuring payment conditions](/en/docs/tutorials/how-to-configure-payment-conditions) \n3. Select the option **Use anti-fraud**.\n4. Select the **Konduto**."}