TECOBI RESOURCES
Website Widget Google Analytics Signals
Understand the website widget analytics events and the difference between engagement and lead creation.
Preserved from the existing TECOBI website; last updated May 30, 2026. Confirm current widget behavior and analytics setup with TECOBI before relying on these details.
This page documents the Google Analytics signals sent by the TECOBI website widget codebase installed on a client website. It explains what the client-installed widget sends into the Google Analytics implementation already present on that site.
Purpose
The widget sends lightweight engagement signals so a client can see:
- when a visitor clicks into the widget
- when the widget successfully creates a lead
Those signals are sent into the website's existing Google Analytics installation. The widget does not create a separate GA property.
How the widget sends analytics
The widget checks for analytics functions already available on the website where it is installed.
- If
window.gtagis available, it sends the event throughgtag('event', ...). - If legacy
window.gais available, it also sends the event throughga('send', 'event', ...). - If neither is available, the widget does not create one and no Google Analytics event is sent.
In practice, that means the client website should already have Google Analytics installed before relying on these signals in reports or audiences.
Event reference
| Event name | When it fires | Notes |
|---|---|---|
tecobi_widget_click |
When a user clicks the launcher button to open the widget, and also when a user clicks an option inside the widget | Used as the widget click engagement signal |
tecobi_widget_lead |
When the widget receives a successful lead creation message and a lead ID is present | Used as the widget submission / lead-created signal |
1. tecobi_widget_click
This event is used for widget click activity.
Launcher click
When a user clicks the floating widget launcher to open the widget, the widget sends:
gtag('event', 'tecobi_widget_click', {
category: 'click'
});
For legacy ga, the same interaction is sent as:
ga('send', 'event', 'click', 'tecobi_widget_click');
Option click inside the widget
When a user clicks one of the widget options, the widget reuses the same event name and adds the option title as a label.
gtag('event', 'tecobi_widget_click', {
category: 'click',
label: '<option title>'
});
That lets clients separate a simple launcher open from a more specific widget action when the label is present.
Parameters currently used
| Parameter | Value |
|---|---|
category |
click |
label |
Present on option clicks, using the option title |
value |
Not used by the current widget click implementation |
2. tecobi_widget_lead
This event is the lead-created signal for widget submissions.
The widget listens for a successful tecobi-lead-creation message from the embedded form flow. When that message includes a valid lead ID, the widget loads the lead and then sends:
gtag('event', 'tecobi_widget_lead');
For legacy ga, the event is sent as:
ga('send', 'event', 'Widget', 'tecobi_widget_lead');
Important behavior
- This fires after a successful lead creation event, not just when the widget opens.
- This is the best client-facing signal to use for widget lead submissions in Google Analytics.
- The current widget implementation does not attach a custom label or value to this event.
Client verification checklist
- Confirm Google Analytics is already installed on the client website.
- Open the website and click the widget launcher.
- Verify
tecobi_widget_clickappears in the analytics debugger or browser network tools. - Click a widget option and confirm the same event appears with the option title as a label where supported.
- Complete a real widget lead flow and verify
tecobi_widget_leadfires only after successful lead creation. - If no events appear, verify the site exposes
window.gtagorwindow.gabefore assuming the widget is at fault.
Recommended reporting use
- Use
tecobi_widget_clickto measure widget entry and interaction volume. - Use
tecobi_widget_leadas the cleaner success signal for widget-generated leads. - If clients build conversions or audiences around the widget, use the lead event for the submit outcome and the click event for top-of-funnel engagement.
