> ## Documentation Index
> Fetch the complete documentation index at: https://crossword.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Analytics event reference

> Reference for every chat widget event Crossword sends to Mixpanel and Google Analytics, including default selection, event properties, and data privacy controls.

This page lists every event Crossword can send to [Mixpanel](https://crossword.ai/docs/integrations/mixpanel.md) or [Google Analytics](https://crossword.ai/docs/integrations/google-analytics.md). Both tools offer the same events, on the same four tabs.

* Under each event's name is its key. In Google Analytics, the default name is `crossword_` plus the key, for example `crossword_widget_opened`. In Mixpanel, the default name is `Crossword: ` plus the event's name, for example **Crossword: Widget opened**.
* **Ticked** means the event is selected when you first turn the tool on.
* **Details** are the properties sent with the event. Chat, Widget, and Cards and suggestions events also carry `conversation_id`.

Only Crossword's built-in events are offered. Each event is sent once, even when the visitor has several tabs open.

## Data privacy

These points apply to both tools. Each tool's page lists its own extra points.

* Crossword never sends message text, names, email addresses, or phone numbers.
* Crossword never sends AI reply text, handoff reasons, or your team members' names.
* Nothing is sent for visitors who opted out of tracking, or who haven't given the consent your store asks for. Crossword follows your [cookie consent](https://crossword.ai/docs/identity/cookie-consent.md) settings.
* Nothing is sent when the visitor's browser sends Global Privacy Control, while **Respect Global Privacy Control** is on. It is on by default.
* Contact details your site puts in page addresses, campaign tags, or element ids are masked before sending.
* Page addresses are sent without their query string or the part after `#`.
* Events are stored in your Mixpanel project or Google Analytics property, under its own retention settings.
* Deleting a contact in Crossword doesn't delete their events in your tool. Delete them in Mixpanel or Google Analytics.

## Chat

Conversations from start to finish: messages, handoffs to teammates, ratings, verification codes, and contact details.

| Event | What it means | Ticked | Details |
| - | - | :-: | - |
| Session started `session_started` | The chat loaded for the visitor. | Yes | None |
| Conversation started `conversation_started` | The visitor sent their first message. | Yes | `message_id`, `sequence` |
| Conversation resumed `conversation_resumed` | A returning visitor reopened their chat. | Yes | None |
| Visitor message sent `visitor_message_sent` | The visitor sent a message. Its words aren't sent. | Yes | `message_id`, `sequence` |
| Agent message sent `agent_message_sent` | Your agent or a teammate replied. | Yes | `message_id`, `sequence`, `role`, `kind`, `agent_name`, `card_id` |
| Proactive message received `proactive_message_received` | A proactive message reached the visitor. | Yes | `proactive_id`, `kind` |
| Handed to a human `human_handoff` | Your agent passed the chat to a teammate. | Yes | `trigger`, `offered` |
| Asked to rate the help `csat_offered` | The visitor was shown your customer survey. | Yes | `message_id`, `sequence` |
| Rated the help `csat_submitted` | The visitor answered your customer survey. | Yes | `score`, `scale`, `has_comment` |
| Verification code sent `otp_sent` | A one-time code went to the visitor. | Yes | `channel`, `resend_index` |
| Verification passed `otp_verified` | The visitor entered the right code. | Yes | `channel`, `attempts` |
| Verification failed `otp_failed` | The code was wrong or couldn't be sent. | Yes | `channel`, `stage`, `reason` |
| Shared contact details `contact_identified` | The visitor saved their contact details. | Yes | `fields`, `changed`, `verified`. Never the values themselves. |
| Skipped sharing details `contact_capture_skipped` | The visitor skipped the details form. | Yes | `template`, `outcome`, `step` |

`agent_name` is sent only when your AI agent replied. A reply from a teammate says it came from a person, never who.

## Widget

How visitors use the chat window, its drawers, and the floating questions and cards by the launcher.

| Event | What it means | Ticked | Details |
| - | - | :-: | - |
| Widget opened `widget_opened` | The visitor opened the chat window. | Yes | None |
| Widget closed `widget_closed` | The visitor closed or minimized the chat. | Yes | `open_seconds` |
| Sheet opened `sheet_opened` | A drawer opened in the chat. | Yes | `template`, `version`, `opener`, `step_count` |
| Sheet closed `sheet_closed` | A drawer in the chat closed. | Yes | `template`, `version`, `outcome`, `last_step`, `seconds_open` |
| Suggestion asked with the chat closed `closed_ask` | The visitor asked a question by the launcher. | No | `source`, `position`, `set_id` |
| Closed-launcher card shown `closed_card_shown` | A card appeared by the closed launcher. | No | `kind`, `stack_depth` |
| Closed-launcher card tapped `closed_card_tapped` | The visitor opened the chat from a card. | No | `kind`, `fanned` |
| Closed-launcher card dismissed `closed_card_dismissed` | The visitor closed a card by the launcher. | No | `kind` |
| Closed-launcher card pushed out `closed_card_evicted` | A newer card replaced the oldest one. | No | `kind` |
| Closed-launcher cards restored `closed_card_restored` | A new page brought back the last cards. | No | `restored`, `absent`, `failed` |
| Closed-launcher answer ended without a card `closed_run_ended` | An answer failed before reaching a card. | No | `reason` |

## Cards and suggestions

Which cards and suggested questions visitors see in the chat, and which they click.

| Event | What it means | Ticked | Details |
| - | - | :-: | - |
| Card viewed `card_viewed` | A card in the chat came into view. | No | `message_id`, `card_id` |
| Card clicked `card_clicked` | The visitor clicked part of a card. | Yes | `message_id`, `card_id`, `element_id`, `element_kind`, `action_type` |
| Suggestion viewed `suggestion_viewed` | A suggested question appeared in the chat. | No | `source`, `position`, `set_id` |
| Suggestion clicked `suggestion_clicked` | The visitor clicked a suggested question. | Yes | `source`, `position`, `set_id` |

## Browsing

What visitors do on your website outside the chat: pages, searches, carts, and checkout. None are ticked by default. Your site likely sends these to Mixpanel or Google Analytics already, so adding them may count each one twice.

Browsing events are sent only while Crossword captures browsing on your site.

| Event | What it means | Ticked | Details |
| - | - | :-: | - |
| Page viewed `page_viewed` | A visitor viewed a page. | No | `path` |
| Visit started `visit_started` | A visitor arrived on your site. | No | `utm_source`, `utm_medium`, `utm_campaign`, `utm_content`, `utm_id`, `utm_source_platform`, `referrer_domain`, `landing_path`, `landing_url`, `referrer_url`, `click_id_network`, `traffic_type` (Mixpanel only), `is_visit_entry` |
| Scrolled the page `page_scrolled` | A visitor scrolled down a page. | No | `depth`, `units` |
| Clicked an element `element_clicked` | A click your Google Tag Manager reports. | No | `element_tag`, `element_selector`, `element_position`, `element_id`, `element_classes`, `element_url`. Never the text. |
| Submitted a form `form_submitted` | A form your Google Tag Manager reports. | No | `form_tag`, `form_selector`, `form_position`, `form_id`, `form_classes`, `form_url`. Never the text. |
| Logged in `login` | A visitor signed in to your site. | No | `method` |
| Signed up `sign_up` | A visitor created an account on your site. | No | `method` |
| Searched `search` | A visitor searched your catalog. | No | None. The search words are never sent. |
| Viewed item `view_item` | A visitor viewed a product. | No | `item_id`, `item_name`, `price`, `item_category` |
| Viewed a product list `view_item_list` | A visitor saw a list of products. | No | `item_list_name`, `item_count` |
| Selected an item from a list `select_item` | A visitor clicked a product in a list. | No | `item_id`, `item_list_name` |
| Saw a promotion `view_promotion` | A visitor saw a banner or offer. | No | `promotion_id`, `promotion_name`, `creative_slot` |
| Clicked a promotion `select_promotion` | A visitor clicked a banner or offer. | No | `promotion_id`, `promotion_name`, `creative_slot` |
| Added to wishlist `add_to_wishlist` | A visitor saved a product to their wishlist. | No | `item_id` |
| Added to cart `add_to_cart` | A visitor added a product to their cart. | No | `item_count`, `value` |
| Removed from cart `remove_from_cart` | A visitor removed a product from their cart. | No | `item_count`, `value` |
| Viewed cart `view_cart` | A visitor opened their cart. | No | `value`, `item_count` |
| Began checkout `begin_checkout` | A visitor started checkout on your own site. | No | `value`, `item_count` |
| Added shipping info `add_shipping_info` | A visitor entered shipping details. | No | `value` |
| Added payment info `add_payment_info` | A visitor entered payment details. | No | `value` |
| Submitted an enquiry `generate_lead` | A visitor sent an enquiry before buying. | No | `lead_source`, `value`, `currency` (Mixpanel only) |
| Purchased `purchase` | A verified visitor placed an order. | No | `transaction_id`, `value`, `item_count` |

Google Analytics reserves the `currency` and `traffic_type` parameters, so Crossword doesn't send them there.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.