| 开发者 | creative024 |
|---|---|
| 更新时间 | 2026年10月20日 04:38 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
phone_click, email_click or sms_click (you can rename them)link_type: tel, mailto or smslink_area: header, footer, navigation or content, so you can see which phone number gets tappedlink_label: your own label, if you add data-ttct-label="..." to a linkphone_click as a key event in GA4 after the event arrives. Keep completed-call and qualified-lead reporting separate.
swd-tap-to-call-tracker folder in /wp-content/plugins/.No. It sends events to the Google tag or Tag Manager container your site already has.
Choose "Google Tag Manager data layer only". In Tag Manager, create a Custom Event trigger for phone_click and a Google Analytics: GA4 Event tag with the event name phone_click. Add data layer variables for link_type, link_area and link_label if you want them as event parameters.
First enable tracking and clear your page cache. Log out (or untick "Do not count taps from logged-in users"), then open GA4 Realtime and tap a contact link. DebugView requires your existing analytics setup to enable debug mode; this plugin's console option does not enable GA4 debug mode. The console option only writes the event name and parameters locally. If using Tag Manager, publish the matching Custom Event trigger and GA4 Event tag. Ad blockers, consent settings and missing Google configuration can prevent delivery.
No. It means someone tapped the number. On a phone that opens the dialer; on a computer it may open a calling app or nothing. Treat it as a strong signal of intent, not a completed call.
The listener can work on cached pages, but clear your page cache after changing settings. Logged-in users who can edit posts are excluded by default; test public cached pages while logged out.
The script is about 2 KB, uses defer where supported with a footer fallback, has no dependencies and adds one click listener.
It focuses on existing contact links. One delegated listener handles nested elements and links inserted later, identifies header/footer/navigation/content areas, and supports optional non-personal labels. Automatic mode chooses one transport rather than forwarding the same event twice. It adds no contact buttons, Google account, analytics ID or visitor log.
Add a non-personal label such as <a href="tel:+12025550100" data-ttct-label="contact-page">Call the office</a>. Only contact-page is sent as link_label with default settings. Do not put a customer name, phone number or email address in the label.
WordPress stores one option containing plugin settings. This plugin does not keep a visitor database or record IP addresses. Deactivation stops its listener; deleting it removes its settings option. Events already received by your external analytics provider remain subject to that provider's retention controls. The site owner remains responsible for the rest of the analytics setup.
No. The owner opt-in controls this plugin, not a visitor's choices. Your consent-management and analytics configuration determine when events may be forwarded and how they are handled. This plugin neither checks for nor grants visitor consent.