Help Page
AnyMind Help Page
AnyMind Help Page
  • Welcome to the AnyX Help Center
  • 1️⃣Getting Started
    • Before you get started
    • 🔰First time setup guide
  • 🏠Home
    • Home Dashboard
  • 🔢Analytics
    • Intro to Analytics
    • Report Types
    • Metrics Explained
    • Campaign name settings
    • Event Calendar
    • Explaining minor discrepancies
      • Important note about discrepancies for Shopify
      • Important note about discrepancies for Amazon
      • Important note about discrepancies for Lazada
      • Important note about discrepancies for Shopee
      • Important note about discrepancies for TikTok Shop
  • 🚚Orders
    • Orders
      • Order List
      • Order Statuses
        • Order Status Mapping: Amazon
        • Order Status Mapping: Rakuten
        • Order Status Mapping: Shopify
        • Order Status Mapping: Shopee
        • Order Status Mapping: Lazada
        • Order Status Mapping: TikTok Shop
        • Order Status Mapping: Yahoo / Paypay Mall
      • Order Detail
      • Order Bulk Import
      • Bulk CSV Operations
  • 🌏cross border shipping
    • Shipping Setting (Box Size)
    • Shipping Setting (Category)
    • Shipper Address
    • UPS
    • DHL
    • FedEx
    • Japan Post
    • Shipping Labels and Commercial Invoices
    • Ready for Shipment
    • Address Translation
    • Shipping and Duty Charges
    • Pickup
  • ✏️Products
    • Products Master
      • Product List
        • Create
        • Bulk Import
      • How to change Stock and Price
      • Merge products
      • Bulk updates via CSV data Export / Import
    • Inputting Product / Commodity Unit Costs
    • Listings
      • Listing List
      • Sync Listing Function
      • Listing Edit
      • [Amazon]Mapping
      • [Shopify]Mapping
      • [Rakuten]Mapping
      • [Lazada]Mapping
      • [Shopee]Mapping
  • 🫂CRM / CUSTOMER MANAGEMENT
    • Chat functions
    • Quick response template
    • Customers
    • LINE - Broadcasts
    • LINE - Broadcast Tracking
    • LINE - Rich menus
    • Instagram - Direct Message Auto Reply
    • FB Messenger - Integration
    • FB Messenger - Broadcast
    • WhatsApp - Integration
  • 💻Data Linkages
    • Integrations & data linkages
      • Integrations - connecting with your e-commerce store / marketplace
        • Amazon
          • [Amazon] Channel Cost Indexes
          • [Amazon] - Integrating CSV Data from Advertising and Sales & Traffic Reports
        • Facebook Shop
        • Shopify
          • [Shopify] Channel Cost Indexes
          • How to Update AnyMind Apps on Shopify
        • Rakuten
          • [Rakuten] Channel Cost Indexes
        • Shopee
          • [Shopee] Channel Cost Indexes
          • [Shopee] - Integrating CSV Data from All Ads and Traffic Reports
        • Lazada
          • [Lazada] Channel Cost Indexes
          • [Lazada] - Integrating CSV Data from Sponsored Discovery Ads and Traffic Reports
        • TikTok Shop
          • [TikTok Shop] Channel Cost Indexes
          • [TikTok Shop] - Integrating Traffic Reports
        • Tokopedia
          • [Tokopedia] Channel Cost Indexes
          • [Tokopedia] - Integrating CSV Data from Ads and Traffic Reports
        • Yahoo! Shopping
          • [Yahoo! Shopping] Channel Cost Indexes
        • Qoo10
          • [Qoo10] Channel Cost Indexes
        • MOMO
          • Table of Payment Methods
        • Other Cost Input
        • Create Ad Mapping
      • Data linkages - connecting with site analytics data sources
        • Google Analytics
      • Data linkages - connecting with advertisement data sources
        • Integrating Google Ads
        • Integrating Facebook Ads
        • Integrating TikTok Ads
        • Mapping Ad Groups / Ad Sets to Sales Channels & Products
      • Integrations - connecting with your messaging apps
        • Troubleshooting
  • 👨‍🔧Account
    • Accounts
      • Account List
      • Add & Edit Account
    • Store
      • Stores List
      • Add Store Screen
    • Users
      • User List
      • Add & Edit User
  • ❓FAQ
    • ❓Frequently Asked Questions
Powered by GitBook
On this page
  • If you use Shopify
  • If you don't use Shopify
  • ① General Tag
  • ② Conversion tracking tag
  1. CRM / CUSTOMER MANAGEMENT

LINE - Broadcast Tracking

Click & Conversion Tracking

Last updated 8 months ago

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

  1. Open Shopify admin page

  2. Go to “Settings”

  3. Go to "Customer events"

  1. Click "Add custom pixel"

  2. Set the pixel name. For example, “Conversion tracking”

  1. Select the data you want to track

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

① General Tag

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.

<script>
    tdl.convert({ 'amount': 'PLEASE_INSERT_NUMBERS_HERE' });
</script>

🫂
How to use Google Tag Manager?