Konduto is an anti-fraud, external system that analyzes the purchases performed, in order to prevent frauds.
This anti-fraud depends on different configurations of the other anti-frauds that can be configured on your platform. Therefore, this article aims to document the Konduto configuration.
Configure your GTM
GTM 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.
Create the variable
The 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 – each store has a unique id.
Configure the tag
On your GTM account, create a tag (customized html type) with the script below.
<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>
Configure the Gateway Affiliation
- In the VTEX Admin, go to Store Settings > Payment > Settings, or type Settings in the search bar at the top of the page.
- Access Gateways Affiliations and click +.
- Search for Anti-Fraud Konduto.
- Complete the form with the data indicated by the anti-fraud.
Configure the payment mehods
To link the Konduto to a form of payment:
- Access the tab Payment terms.
- Click on the desired condition or Configuring payment conditions
- Select the option Use anti-fraud.
- Select the Konduto.