LogoLogo
ENGLISH
ENGLISH
  • Hey, you're here! Welcome to Heyday's Help Centre
  • ⬇️ Download the Heyday App!
  • πŸ‘₯TEAMMATES
    • πŸ‘©β€πŸ’»My Profile
      • ✏️My Preferences
      • πŸ””My Notifications
    • πŸ”My Password
    • πŸ“šUnderstanding the Inbox
      • Primary & Other
        • New Requests
        • Open Conversations
        • Assigned to Me
        • ⭐Starred
        • πŸ€–Chatbot Conversations
        • πŸšͺClosed Conversations
      • Filters
        • Status
        • Channel
        • Assignee
        • Department
      • Greyed Out Conversations
    • πŸ’¬In Chat
      • πŸšͺClose Conversation
      • ⭐Priority
      • ↔️Reassign to Another Teammate
      • 🏬Assign to Another Department
      • πŸ—’οΈInternal Notes
      • β›”Conversation Blocking
      • πŸ“œTemplates
      • πŸ”ŽProducts
      • πŸ“²Start a call/Video chat
      • 😁Emojis
      • πŸ“ŽAttach Files & Images
      • πŸ«‚Customer Insights
  • πŸ‘€ADMINISTRATORS
    • πŸ“ŠAnalytics
      • Overview
        • Customer Overview
        • Conversation Overview
        • Chatbot Performance
      • Conversations
      • Team Performance
      • Advanced Reports
        • Conversations Report
          • Conversation Score
        • Department Report
        • Team's Report
        • Dialog Performance Report
        • Product Analytics Report
      • Flow Definitions
        • Campaign
        • Transfer
        • Sales
        • Support
        • Other
    • βš™οΈSettings
      • General
        • Chat Display
        • Business Hours
      • Chatbot & Automation
        • FAQ Builder
        • Enterprise FAQ Editor
          • How to use CSV files
      • Team
      • Channels
      • Account
        • Notifications
      • Advanced
        • Secret Sharing
    • ✨Best practices
    • Assigning a conversation
    • How to Make a Teammate become an Administrator
    • Email - Teammate Performance Export
  • πŸŽ›οΈ CHAT SETUP
    • Overview
    • Heyday Chat
    • The Code Snippet
      • Integration in the HTML code
      • Integration through a Google Tag
    • Customizing your Chat
      • Configurable Attributes
        • Client ID
        • Country
        • Flow Referral
        • Automatic Department Assigning
        • Widget State
        • Greeting Message
        • Delay Close
        • Minimizable
        • Set Cookie Rules
          • Cookie Expiry
          • Cookie Consent
        • Passing Client Data Post-initialization
        • Adapted script format for Google Tag Manager
      • Widget Position
      • Widget Appearance
    • Event Tracking
    • How to Integrate Heyday Webchat into a Native App
    • How to Integrate Facebook Chat if you Already Call the SDK
  • πŸ”—CHANNELS & FEATURES
    • Channels
      • Heyday Chat
      • Facebook Messenger
        • Creating a Facebook Pre-Production Business Page
        • Facebook Guest Mode
        • Flashing Messenger Chat Window
        • Facebook Self Onboarding
      • Google Business Messages
        • Non-Local Entry Points
        • Connecting your Google Account
      • Instagram
        • Creating an Instagram Business Account
        • How to Grant Access to Your Instagram Account
        • Instagram Self Onboarding
      • WhatsApp
        • Security Prerequisite
        • WhatsApp Channel Setup
      • Email
        • Automatic Forwarding
        • Testing the Email Channel
        • Email Signature
      • Video Chat
        • Technical Requirements
    • Features
      • E-comms
        • Shopify
          • How to Create and Configure a Custom App
          • How to configure needed permissions
          • Locate the information Heyday needs
        • Magento
          • Integration requirements
        • PrestaShop
        • Salesforce Commerce Cloud
          • SalesForce Service Cloud
      • FAQ Automation
      • Product Search
      • Sales Attribution
        • Activating your Sales Attribution
        • Sale Attribution Report
        • Limitations
      • Store Locator
        • Store Locator - Self Onboarding
      • Continuous Conversation
      • Marketing Campaigns
      • Email Marketing & Newsletter
      • Order/Shipment tracking
        • Keep Your Customer Informed
        • How To Set Up a Notification Link
      • CSAT Survey
        • Chatbot CSAT
        • Teammate CSAT
      • Wait Time Management
      • Appointment Booking
      • Loyalty Program
      • Back in Stock Notifications
      • Price Drop Notifications
      • Product Recommendation Quiz
Powered by GitBook
On this page
  • Track ID
  • Track Customer

Was this helpful?

  1. πŸŽ›οΈ CHAT SETUP
  2. Customizing your Chat
  3. Configurable Attributes

Passing Client Data Post-initialization

Some configurable attributes, where the attribute needs to be passed as an identifier (i.e. ID) associated with the customer, it’s possible that the information required is only known once the customer has logged to the brand website, which can happen after the chat is initialized.

In order to pass these attributes, a callback script should be run instead of the div function to collect this information after the Heyday chat has initialized.

There are two script options that allow for this to happen:

Track ID

The Track ID function should be used specifically to collect the Customer or Client ID of the user interacting with the chat.

<script>
window.hdAsyncInit = function() {
_hdt.heyday_track_id('ClientIdAfterInit');
}
</script>
<script src='https://api.heyday.ai/v130/<organization>/<Channel>/fr/setupchat.js'></script>

ClientIdAfterInit: A Customer or Client ID usually in the form of an alpha-numeric value defined by the brand.

Track Customer

The Track Customer function allows for the chat to collect more information about the user interacting with the chat than just the Client ID. The other identifiable elements that can be collected are the client email address, as well as their first and last name.

<script>
window.hdAsyncInit = function() {
 _hdt.heyday_track_customer({
  id: "01234-abcdef-56789-ghijklm",
  email: "email@email.com",
  firstName: "John",
  lastName: "Smith"
 });
}
</script>
<script src='
https://api.heyday.ai/v130/<organization>/<Channel>/fr/setupchat.js'></script.

Important: if a ClientID was set with <div id="hdAttributes" external_id="ClientId"></div>, it will be overwritten by either of the two above scripts.

PreviousCookie ConsentNextAdapted script format for Google Tag Manager

Last updated 2 years ago

Was this helpful?

The elements collected using these scripts are displayed in the in the inbox. If collecting the Client ID, then the search function in the Heyday Inbox will return results for matching Client IDs

customer insights panel