For conversion tracking, you need to put two types of Conversion Tracking tag on your website. Most of eCommerce website support conversion tracking. Please get in touch with your website administrator in case of issues.
If you use Shopify
Open Shopify admin page
Go to “Settings”
Go to "Customer events"
Click "Add custom pixel"
Set the pixel name. For example, “Conversion tracking”
Select the data you want to track
Remove the text written in the "Code" area, and place this code in the "Code" area
!function(){var o=window.tdl=window.tdl||[];if(o.invoked)window.console&&console.error&&console.error("Tune snippet has been included more than once.");else{o.invoked=!0,o.methods=["init","identify","convert"],o.factory=function(n){return function(){var e=Array.prototype.slice.call(arguments);return e.unshift(n),o.push(e),o}};for(var e=0;e<o.methods.length;e++){var n=o.methods[e];o[n]=o.factory(n)}o.init=function(e){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://js.go2sdk.com/v2/tune.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(n,t),o.domain=e}}}();
async function getRates(){try{let t=new Date,e=`${t.getFullYear()}-${(t.getMonth()+1+"").padStart(2,"0")}`,n=`https://currency.adasiaholdings.com/getCurrency?month=${e}`,r=await fetch(n);if(!r.ok)throw Error("Network response was not ok");let a=await r.json();return a||{}}catch(o){return{}}}async function getConversionAmount(t,e){try{let n=await getRates(),r=n[e];if(isNaN(r))throw Error("Invalid rate");return{amount:t/r}}catch(a){return{amount:t,promo_code:e}}}
tdl.init("https://anymindgroup.go2cloud.org");tdl.identify();analytics.subscribe('checkout_completed', async (event) => { const conversionData = await getConversionAmount( event.data.checkout.totalPrice.amount, event.data.checkout.currencyCode ); tdl.convert(conversionData);});
If you don't use Shopify
You need to put two types of tracking tags on your website.
You can use Google Tag Manager to set tracking tags.
This is a tag to store the conversion information. Please place this tag between <head> and <head/>.
<script> !function(){var o=window.tdl=window.tdl||[];if(o.invoked)window.console&&console.error&&console.error("Tune snippet has been included more than once.");else{o.invoked=!0,o.methods=["init","identify","convert"],o.factory=function(n){return function(){var e=Array.prototype.slice.call(arguments);return e.unshift(n),o.push(e),o}};for(var e=0;e<o.methods.length;e++){var n=o.methods[e];o[n]=o.factory(n)}o.init=function(e){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://js.go2sdk.com/v2/tune.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(n,t),o.domain=e}}}();
tdl.init("https://anymindgroup.go2cloud.org");tdl.identify();</script>
② Conversion tracking tag
This is a tag that kicks back the saved conversion information.
Please add both ① General Tag and the following tag between <head> and </head> of your conversion page. (Place the General Tag first)
a. If you don’t need to track the “sales amount” (you just want to track the number of conversions), please use this tag for the conversion page.
<script>tdl.convert();</script>
b. If you need to track the “sales amount” (you can also track the number of conversions), please use this tag for the conversion page. Also, the client needs to put original metrics instead of "PLEASE_INSERT_NUMBERS_HERE" hat are provided on their website.