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
  • The state of the widget:
  • Transfers to the teammate
  • Uses

Was this helpful?

  1. πŸŽ›οΈ CHAT SETUP

Event Tracking

Heyday allows for the ability to track certain events that are not currently viewable in the Heyday Insights or advanced reports. Implementing these functions could help clients further analyze traffic gain related to heyday, which could then be tied to conversion rates.

The events that can currently be tracked are:

  • The state of the widget

  • Transfers to the agent

These events are tracked through a function called in the console section of the development tools (CTRL + Shift + I or Command + Option + I) while on the website that is loading the chat.

You can enter the appropriate function from below into the console to call back the event you’re tracking.

The state of the widget:

This function will pull back the status of the chat on a given page from the following three:

  • Welcome: The chat is closed and the welcome message bubble is displayed.

  • Closed: the chat is closed, without the welcome bubble

  • Opened: the chat is opened and visible.

From these statuses we can infer if the chat was opened or closed on a given page indicating a page that might have incited the need for the chat or from which the chat was no longer needed.

Function to be used:

window.hdOnWidgetStateChange = function(state) {
   // state will be one of the following: "welcome", "closed", "opened"
}

Here’s an example of the most basic way to obtain the widget state:

window.hdOnWidgetStateChange = function(state) {
   console.log(state)
}

Transfers to the teammate

This function will pull the time and channel in the event that the conversation was transferred to a teammate. It will only display one event per transfer meaning that if the webpage is reloaded or changed it continues to track the original event.

Function to be used:

window.hd_Conversation_Transferred = clientConversationTransferred

It should return the event in this format

{
  timestamp: number,
  channelId: string,
  organizationId: string
}

Uses

These functions can be used in a number of creative ways to dictate certain chat window behaviours or for tracking purposes.

As an example, many Heyday clients use these functions in conjunction with Google analytics to better understand their client’s behaviour regarding the use of the Heyday chat on specific web pages.

PreviousWidget AppearanceNextHow to Integrate Heyday Webchat into a Native App

Last updated 2 years ago

Was this helpful?