m-chat
Status
  • 👋Welcome!
  • 🏁 Getting Started
    • Building a chatbot
    • Testing a chatbot
    • Publishing your bot
      • Web
        • Embed chatbots on website
      • WhatsApp
        • Meta
        • 360Dialog
        • GupShup
        • Twillo
        • TechAlpha
      • Instagram
      • Facebook Messenger
      • SMS
      • Mobile App
    • Utility Tools
    • Contacts
      • Scheduling a Contact Report
      • Exporting a Contact List
    • Chatbot Appearance
      • Custom CSS
      • Image dimensions
      • Pop-up messages
  • BOT BUILDER
    • Action blocks
      • Trigger
      • Send message
      • Collect input
      • Buttons
      • Reply buttons
      • Carousel
      • Answer AI
      • Set AI
      • List
      • Send an email
      • Condition
      • Dynamic data
      • Talk to human
      • Javascript
      • Webhook
      • Jump
      • Flow
      • Options
      • Collect file
      • Form
      • Calendar
      • Delay
      • Codeblock
      • Slider
      • Image gallery
      • Send WhatsApp
      • Send SMS
      • Send Email
      • Send Status
      • WhatsApp flow
      • Catalogue
    • Outbound bots
      • Building Ongoing Campaign
      • Building One Off Campaign
    • Variables
    • Cloning bots
    • Connecting action blocks
    • Creating a loop
  • ✨ AI STUDIO
    • Building a GPT chatbot
    • Knowledge base
    • Custom Answers
    • Functional call
    • Prompts
    • Tokens
    • Refresh frequency
  • 💬 LIVE CHAT
    • Overview
    • Building a bot with live chat
    • Creating views
    • Adding Labels
    • Saved replies
    • Settings
  • 🔗 Integrations
    • HTTP request
    • Events
  • 💬 WhatsApp Business API
    • Getting a WhatsApp API
      • Getting WhatsApp API (Old approach)
      • Sandbox WhatsApp API
    • Facebook Business Manager (FBM) Verification
    • Creating a WhatsApp Template
    • Cost
    • Messaging Limits, Quality Rating
    • Official Business Account (Green tick verification)
  • 📊 Reporting
    • Chatbot Analytics
    • Agent Analytics
    • Outbound analytics
    • Link analytics
    • Weekly email report
  • 🛠️ Troubleshooting
    • Getting notification for leads
    • JS functions to trigger chat widget
    • Setting up link tracking
    • How do I hard refresh my browser?
    • Notifications
    • Tracking Facebook Pixel
    • Inviting teammates
    • Teams
  • 🧑‍💻 Support
    • Creating a ticket
    • Book a demo
    • Purchase a subscription
    • Cancelling a subscription
    • Refund policy
    • Reset Password
    • Deleting account
Powered by GitBook
On this page
  • How it works
  • How does the URL look like?
  1. 🛠️ Troubleshooting

Setting up link tracking

Converts all URLs in your chatbot flow into trackeable URLs.

Since it is important to track the link clicks when running a campaign to have insights about webpage visits and to identify the success of your campaign.

m-chat uses the third-party tool Short.io to shorten all the URLs in the conversational flow for tracking.

How it works

The process that m-chat follows to track the links is the 3 step process.

  1. On click of 'Deploy' button, our API is called and it checks for all the action blocks where the 'Link Tracking' is enabled by you.

  2. Once all the URLs that are to be tracked are identified, the same are sent to Short.io for shortening.

  3. Short.io then reverts it back with the short URLs that will be visible to the visitors and on click of which the original URL will open up.

In case of the inbound bot, the short URL generated will be generic however unique for each visitor

In the case of the outbound bot, we generate separate requests for each recipient of the campaign.

For instance, if there are 5 URLs that need to be sent to 100 recipients, a total of 500 URLs will be generated.

How does the URL look like?

Here is the snippet of how URLs will look like;

// Original URL
help.m-chat.ai

// Shortened URL
http://test.m-chatapp.link/vFYjNi”

When a short URL is clicked, this is how the URL is expanded:

http://help.m-chat.ai/?__mchatid=9433&__mchatid=1&__mchatid=1933158&__mchatkey=9aa7b077115048039301b6d1fca07f16&__mchatid=9aa7b077115048039301b6d1fca07f16

The following parameters are appended to the URL;

  • m-chatid: Identifies the bot ID of the bot from which the dialogue or URL is executed

  • m-chatid: Identifies the channel from which the dialog or URL is sent

    • 'm-chatid = 1' Indicates Web channel

    • 'm-chatid = 3' Indicates WhatsApp channel

    • 'm-chatid = 4' Indicates Facebook channel

    • 'm-chatid = 5' Indicates SMS channel

  • m-chatid: Indicates visitor ID at m-chat level (Every visitor speaking with m-chat chatbot is given a unique ID)

  • m-chatkey: Indicates visitor key at m-chat level

  • m-chatid: Indicates recipient ID, this helps us identify who was the actual recipient that opened/clicked the link.

In case the channel is WhatsApp or SMS, the recipient ID will be the phone number of the recipient

In case the channel is Facebook, the recipient ID will be unique Facebook ID generated by the Facebook

Incase the channel is Web, the recipient ID will be same as the visitor key generated at m-chat level

If the channel is WhatsApp or SMS, the entire phone number along with country code will be visible in the URL when expanded from the Short URL

PreviousJS functions to trigger chat widgetNextHow do I hard refresh my browser?

Last updated 6 months ago