Google Analytics 4

Track widget interactions as events in your GA4 property.

Prerequisites

  • A Google Analytics 4 property with a web data stream.
  • Your GA4 Measurement ID (starts with G-).
  • An active StickyCTAs widget installed on your site.

Setup

Step 1: Find your Measurement ID

In Google Analytics, go to Admin → Data Streams → Web. Copy the Measurement ID (e.g. G-TZ9Z9MJK42).

Step 2: Enter it in StickyCTAs

Go to your widget's Settings → Analytics section and paste your Measurement ID.

Step 3: Verify in Realtime

Open your website, interact with the widget, then check GA4 → Reports → Realtime to see events appear.

Tracked Events

Event NameDescription
sticky_cta_impressionFired when the widget loads and becomes visible on the page.
sticky_cta_openFired when a visitor opens the widget menu.
sticky_cta_closeFired when a visitor closes the widget menu.
sticky_cta_action_clickFired when a visitor clicks an action button (phone, email, SMS, link, etc.).
sticky_banner_impressionFired when a banner becomes visible on the page.
sticky_banner_clickFired when a visitor clicks the banner CTA button.
sticky_banner_dismissFired when a visitor dismisses the banner.

Event Parameters

All events include widget_id and widget_name. Some events include additional parameters:

widget_idThe unique ID of the widget. Included in all events.
widget_nameThe name you gave the widget in the builder. Included in all events.
positionWidget position on the page. On sticky_cta_impression only.
action_typeThe type of action (e.g. phone, email, link). Note: these may differ from the label shown in the editor — see the mapping table below. On sticky_cta_action_click only.
action_labelThe label text of the action button. On sticky_cta_action_click only.
banner_positionBanner position on the page. On sticky_banner_impression only.
banner_triggerWhat triggered the banner (scroll_depth, timer, etc.). On sticky_banner_impression only.
banner_actionThe banner button action (open_widget, url). On sticky_banner_click only.
banner_cta_textThe banner CTA button text. On sticky_banner_click only.

Setting Up Key Events (Conversions)

Key events (formerly called "conversions") let you track important actions as goals in GA4. We recommend marking sticky_cta_action_click as a key event to measure widget ROI.

Step 1: Open Admin Settings

In GA4, click the Admin gear icon (bottom left), then under your property, click Events.

Step 2: Find the Event

Locate sticky_cta_action_click in the events list. If you don't see it yet, interact with your widget first to generate some events.

Step 3: Mark as Key Event

Toggle the switch in the "Mark as key event" column to enable it. The event will now appear in your conversions reports.

Pro tip: Track specific action types

Want to track phone calls separately from email clicks? Create custom key events in GA4:

  1. Go to Admin → Events → Create event
  2. Name it something like sticky_cta_phone_click
  3. Set conditions: event_name equals sticky_cta_action_click AND action_type equals phone
  4. Save, then mark the new event as a key event

Repeat for any action type to track it as a separate conversion.

Editor label → GA4 action_type reference:

The name you see in the widget editor doesn't always match the action_type value sent to GA4. Use the table below to find the correct value when creating custom events.

Editor LabelGA4 action_type
Contact
Call Usphone
Email Usemail
Text Ussms
WhatsAppwhatsapp
Messengermessenger
Telegramtelegram
Viberviber
WeChatwechat
LINEline
Signalsignal
Skypeskype
Contact Uscontact-custom
Social
Facebookfacebook
Instagraminstagram
TikToktiktok
X / Twitterx
LinkedInlinkedin
YouTubeyoutube
Pinterestpinterest
Snapchatsnapchat
Threadsthreads
Follow Ussocial-custom
Engagement
Leave a Reviewreview
Book a Meetingbooking
Contact Formcontact-form
Get Directionsdirections
Website Linklink
Jobs & Recruiting
View Openingsjob-openings
Apply Nowapply-now
Indeedindeed
Glassdoorglassdoor
Careersjobs-custom

Viewing Data in GA4

Realtime

See widget events as they happen under Reports → Realtime.

Events Report

View aggregate counts under Reports → Engagement → Events. Filter by event name to see only StickyCTAs events.

Exploration

Build custom reports in Explore. For example, create a funnel from sticky_cta_opensticky_cta_action_click to see your widget conversion rate.

Key Events (Conversions)

Once you've marked events as key events, view them under Reports → Engagement → Conversions. You can also see conversion data in Advertising → Attribution to understand which channels drive widget interactions.

Google Ads Integration

If you run Google Ads, your key events automatically sync as conversion actions when GA4 is linked to your Ads account.

Link GA4 to Google Ads

In GA4, go to Admin → Product links → Google Ads links and connect your Ads account.

Import Conversions

In Google Ads, go to Goals → Conversions → Summary, click New conversion action → Import → Google Analytics 4, and select your widget key events.

Optimize Campaigns

Use widget clicks as a conversion goal to let Google Ads optimize for visitors most likely to contact you.

EU visitors: StickyCTAs supports Google Consent Mode v2. If a visitor is in the EU and has not accepted analytics cookies, events are sent in cookieless mode and GA4 uses statistical modeling to fill gaps. See Privacy & Compliance for details.