Configurable Attributes

If you would like to modify some of the attributes, it is important to understand how the information is transferred to Heyday to ensure the modifications are present at all moments.

As you know, the Heyday chat optimizes the customer experience by leveraging useful data from a brand's website. This information can be transferred to the heyday chat before or afterarrow-up-right the chat is initialized, therefore, in modifying certain attributes, you must ensure the changes are applied to each scenario.

List of configurable attributes:

-> Client ID -> Country -> Flow Referral -> Automatic Department Assigningarrow-up-right -> Widget State -> Greeting Messagearrow-up-right -> Delay Close -> Minimizable -> Cookie Expiryarrow-up-right -> Cookie Consentarrow-up-right

circle-info

For information on how to use these in Google Tag Manager please see the section on the adapted scripts for GTMarrow-up-right

How Data is Transferred to Heyday

The initialization of the Heyday chat happens when the script with the code snippet is executed:

<script src='
https://api.heyday.ai/v130/<organization>/<channel>/<language>/setupchat.js
'></script>

When the information is passed to Heyday before the initialization of the Chat, the heyday attributes tag <div> is added before the script in the code, as the example below indicates:

<head>
...
 <div id="hdAttributes" country="CA"></div>
<script src='
https://api.heyday.ai/v130/<organization>/<channel>/<language>/setupchat.js
'></script>
...
</head>

For instance, the country of the webpage (ex: Canada vs. USA) is typically known before the Heyday chat is initialized.

circle-check

Last updated

Was this helpful?