Phone nuber clicks

Hi, I am new to Matomo and need help.
Is there any way to see clicks on the phone number on the web page?
I tried to add Goal

when visitors → Click on a Link to an external website → contains → tel:

but it seems it is wrong because no phone clicks are not registered in Goals
Please help
Thank you

Hi,

I am not sure that tel: protocol is considered by Matomo as external website (to be tested)…
Also, if I am not wrong, the contain operator works on the text of the link, not on the href
But you can either work on a pattern (“matches the expression”) on the phone number, or add an event on the phone click and use this event to trigger the goal…

Sorry for my ignorance but is there any tutorial on how to do that?
Thank you

you could start here: Event Tracking User Guide - Analytics Platform - Matomo

1 Like

Thank you.
I start with it but notice in their video there are already some configuration data in
Events:

but in my installation don’t have anything inside
Events:
*Event Categories
*Event Actions
*Event Names
see here https://nimb.ws/0kFIzJ

Thank you

Check first in the Visitors > Real-time menu to see if your events are tracked…
How did you configure the tracking?

Hi, thank you for the quick answer.
Inside Visits, in real-time I see visitors but don’t see Events like here https://matomo.org/faq/reports/implement-event-tracking-with-matomo/
see screenshot https://nimb.ws/q0SftV

Inside the tag manager, I configure

Does anyone have any idea why it is not working?

What is the HTML code of the link? (HTML code including the <a>tag)
Try to use the MTM container preview / debug:

What is the HTML code of the link? (HTML code including the <a> tag)

<div id="sp-top-bar">
<div class="container">
<div class="container-inner">
<div class="row">
<div id="sp-top1" class="col-lg-6">
<div class="sp-column text-center text-lg-start">
<ul class="sp-contact-info"><li class="sp-contact-mobile"><span class="fas fa-mobile-alt" aria-hidden="true"></span> <a href="tel:***360094">*** 360 094</a></li><li class="sp-contact-email"><span class="far fa-envelope" aria-hidden="true"></span> <a href="mailto:info@****.**">info@***.**</a></li></ul>
</div>
</div>
<div id="sp-top2" class="col-lg-6">
<div class="sp-column text-center text-lg-end">
<ul class="social-icons"><li class="social-icon-facebook"><a target="_blank" rel="noopener noreferrer" href="https://www.facebook.com/umjetna.trava/" aria-label="Facebook"><span class="fab fa-facebook" aria-hidden="true"></span></a></li></ul>
</div>
</div>
</div>
</div>
</div>
</div>

I use it and get this

Also here is log

Time	Message
1:53:20 PM.580	"creating container"
1:53:20 PM.620	"running container"
1:59:59 PM.993	"The condition is met for trigger Klik na telefon"
{"referencedTags":[{"type":"Matomo","name":"Matomo Event – Phone Link Click 2","fireTriggerIds":[5],"blockTriggerIds":[],"fireLimit":"unlimited","fireDelay":0,"startDate":null,"endDate":null,"numExecuted":0,"blocked":false,"parameters":{"matomoConfig":{"name":"Matomo Configuration","type":"MatomoConfiguration","lookUpTable":[],"defaultValue":"","parameters":{"matomoUrl":"//domidona.smarthost.eu/","idSite":"2","enableLinkTracking":true,"enableCrossDomainLinking":false,"enableDoNotTrack":false,"enableJSErrorTracking":false,"enableHeartBeatTimer":false,"trackAllContentImpressions":false,"trackVisibleContentImpressions":false,"disableCookies":false,"requireConsent":false,"requireCookieConsent":false,"customCookieTimeOutEnable":false,"customCookieTimeOut":393,"setSecureCookie":false,"cookieDomain":"","cookiePath":"","cookieSameSite":"Lax","disableBrowserFeatureDetection":false,"domains":[],"alwaysUseSendBeacon":false,"userId":"","customDimensions":[],"bundleTracker":true,"registerAsDefaultTracker":true,"jsEndpoint":"matomo.js","trackingEndpoint":"matomo.php"},"Variable":"MatomoConfigurationVariable"},"trackingType":"event","idGoal":"","goalCustomRevenue":"","documentTitle":"","customUrl":"","eventCategory":"Contact","eventAction":"Phone Link Click","eventName":{"name":"ClickDestinationUrl","type":"ClickDestinationUrl","lookUpTable":[],"defaultValue":null,"parameters":[],"Variable":"ClickDestinationUrlVariable"},"eventValue":""},"theTag":{}}],"id":5,"type":"AllLinksClick","name":"Klik na telefon","conditions":[{"actual":{"name":"ClickText","type":"ClickText","lookUpTable":[],"defaultValue":null,"parameters":[],"Variable":"ClickTextVariable"},"comparison":"contains","expected":"*** 360 094"}],"parameters":[],"theTrigger":{}}
2:00:00 PM.3	"firing this tag"
{"type":"Matomo","name":"Matomo Event – Phone Link Click 2","fireTriggerIds":[5],"blockTriggerIds":[],"fireLimit":"unlimited","fireDelay":0,"startDate":null,"endDate":null,"numExecuted":0,"blocked":false,"parameters":{"matomoConfig":{"name":"Matomo Configuration","type":"MatomoConfiguration","lookUpTable":[],"defaultValue":"","parameters":{"matomoUrl":"//domidona.smarthost.eu/","idSite":"2","enableLinkTracking":true,"enableCrossDomainLinking":false,"enableDoNotTrack":false,"enableJSErrorTracking":false,"enableHeartBeatTimer":false,"trackAllContentImpressions":false,"trackVisibleContentImpressions":false,"disableCookies":false,"requireConsent":false,"requireCookieConsent":false,"customCookieTimeOutEnable":false,"customCookieTimeOut":393,"setSecureCookie":false,"cookieDomain":"","cookiePath":"","cookieSameSite":"Lax","disableBrowserFeatureDetection":false,"domains":[],"alwaysUseSendBeacon":false,"userId":"","customDimensions":[],"bundleTracker":true,"registerAsDefaultTracker":true,"jsEndpoint":"matomo.js","trackingEndpoint":"matomo.php"},"Variable":"MatomoConfigurationVariable"},"trackingType":"event","idGoal":"","goalCustomRevenue":"","documentTitle":"","customUrl":"","eventCategory":"Contact","eventAction":"Phone Link Click","eventName":{"name":"ClickDestinationUrl","type":"ClickDestinationUrl","lookUpTable":[],"defaultValue":null,"parameters":[],"Variable":"ClickDestinationUrlVariable"},"eventValue":""},"theTag":{}}
2:00:00 PM.19	"fired this tag"
{"type":"Matomo","name":"Matomo Event – Phone Link Click 2","fireTriggerIds":[5],"blockTriggerIds":[],"fireLimit":"unlimited","fireDelay":0,"startDate":null,"endDate":null,"numExecuted":1,"blocked":false,"parameters":{"matomoConfig":{"name":"Matomo Configuration","type":"MatomoConfiguration","lookUpTable":[],"defaultValue":"","parameters":{"matomoUrl":"//domidona.smarthost.eu/","idSite":"2","enableLinkTracking":true,"enableCrossDomainLinking":false,"enableDoNotTrack":false,"enableJSErrorTracking":false,"enableHeartBeatTimer":false,"trackAllContentImpressions":false,"trackVisibleContentImpressions":false,"disableCookies":false,"requireConsent":false,"requireCookieConsent":false,"customCookieTimeOutEnable":false,"customCookieTimeOut":393,"setSecureCookie":false,"cookieDomain":"","cookiePath":"","cookieSameSite":"Lax","disableBrowserFeatureDetection":false,"domains":[],"alwaysUseSendBeacon":false,"userId":"","customDimensions":[],"bundleTracker":true,"registerAsDefaultTracker":true,"jsEndpoint":"matomo.js","trackingEndpoint":"matomo.php"},"Variable":"MatomoConfigurationVariable"},"trackingType":"event","idGoal":"","goalCustomRevenue":"","documentTitle":"","customUrl":"","eventCategory":"Contact","eventAction":"Phone Link Click","eventName":{"name":"ClickDestinationUrl","type":"ClickDestinationUrl","lookUpTable":[],"defaultValue":null,"parameters":[],"Variable":"ClickDestinationUrlVariable"},"eventValue":""},"theTag":{}}
2:00:00 PM.20	"event: "
{"tags":[{"action":"Fire","type":"Matomo","name":"Matomo Event – Phone Link Click 2","numExecuted":1}],"variables":[],"metTrigger":{"name":"Klik na telefon","type":"AllLinksClick"},"name":"mtm.AllLinksClick","eventData":{"event":"mtm.AllLinksClick","mtm.clickElement":"A","mtm.clickElementId":null,"mtm.clickElementClasses":"","mtm.clickText":"*** 360 094","mtm.clickNodeName":"A","mtm.clickElementUrl":"tel:***360094","mtm.clickButton":"right"},"container":{"variables":[{"name":"Matomo Configuration","type":"MatomoConfiguration","value":{"matomoUrl":"//domidona.smarthost.eu/","idSite":"2","enableLinkTracking":true,"enableCrossDomainLinking":false,"enableDoNotTrack":false,"enableJSErrorTracking":false,"enableHeartBeatTimer":false,"trackAllContentImpressions":false,"trackVisibleContentImpressions":false,"disableCookies":false,"requireConsent":false,"requireCookieConsent":false,"customCookieTimeOutEnable":false,"customCookieTimeOut":393,"setSecureCookie":false,"cookieDomain":"","cookiePath":"","cookieSameSite":"Lax","disableBrowserFeatureDetection":false,"domains":[],"alwaysUseSendBeacon":false,"userId":"","customDimensions":[],"bundleTracker":true,"registerAsDefaultTracker":true,"jsEndpoint":"matomo.js","trackingEndpoint":"matomo.php"}},{"name":"ClickDestinationUrl","type":"ClickDestinationUrl","value":"tel:***360094"},{"name":"ClickText","type":"ClickText","value":"*** 360 094"}],"tags":[{"action":"Not Fired Yet","type":"Matomo","name":"Matomo Event – Phone Link Click 2","numExecuted":1}],"id":"d1IOub3d","versionName":null,"dataLayer":{"0":"config","1":"G-TKS7WYGVQW","mtm.containerId":"d1IOub3d","mtm.startTime":1671022397011,"event":"mtm.AllLinksClick","mtm.mtmScriptLoadedTime":1671022400579,"gtm.start":1671022397011,"mtm.clickElement":"A","mtm.clickElementId":null,"mtm.clickElementClasses":"","mtm.clickText":"*** 360 094","mtm.clickNodeName":"A","mtm.clickElementUrl":"tel:***360094","mtm.clickButton":"right"}},"time":"2:00:00 PM.20","index0":0,"index":1}
2:04:31 PM.40	"The condition is met for trigger Klik na telefon"
{"referencedTags":[{"type":"Matomo","name":"Matomo Event – Phone Link Click 2","fireTriggerIds":[5],"blockTriggerIds":[],"fireLimit":"unlimited","fireDelay":0,"startDate":null,"endDate":null,"numExecuted":1,"blocked":false,"parameters":{"matomoConfig":{"name":"Matomo Configuration","type":"MatomoConfiguration","lookUpTable":[],"defaultValue":"","parameters":{"matomoUrl":"//domidona.smarthost.eu/","idSite":"2","enableLinkTracking":true,"enableCrossDomainLinking":false,"enableDoNotTrack":false,"enableJSErrorTracking":false,"enableHeartBeatTimer":false,"trackAllContentImpressions":false,"trackVisibleContentImpressions":false,"disableCookies":false,"requireConsent":false,"requireCookieConsent":false,"customCookieTimeOutEnable":false,"customCookieTimeOut":393,"setSecureCookie":false,"cookieDomain":"","cookiePath":"","cookieSameSite":"Lax","disableBrowserFeatureDetection":false,"domains":[],"alwaysUseSendBeacon":false,"userId":"","customDimensions":[],"bundleTracker":true,"registerAsDefaultTracker":true,"jsEndpoint":"matomo.js","trackingEndpoint":"matomo.php"},"Variable":"MatomoConfigurationVariable"},"trackingType":"event","idGoal":"","goalCustomRevenue":"","documentTitle":"","customUrl":"","eventCategory":"Contact","eventAction":"Phone Link Click","eventName":{"name":"ClickDestinationUrl","type":"ClickDestinationUrl","lookUpTable":[],"defaultValue":null,"parameters":[],"Variable":"ClickDestinationUrlVariable"},"eventValue":""},"theTag":{}}],"id":5,"type":"AllLinksClick","name":"Klik na telefon","conditions":[{"actual":{"name":"ClickText","type":"ClickText","lookUpTable":[],"defaultValue":null,"parameters":[],"Variable":"ClickTextVariable"},"comparison":"contains","expected":"*** 360 094"}],"parameters":[],"theTrigger":{}}
2:04:31 PM.41	"firing this tag"
{"type":"Matomo","name":"Matomo Event – Phone Link Click 2","fireTriggerIds":[5],"blockTriggerIds":[],"fireLimit":"unlimited","fireDelay":0,"startDate":null,"endDate":null,"numExecuted":1,"blocked":false,"parameters":{"matomoConfig":{"name":"Matomo Configuration","type":"MatomoConfiguration","lookUpTable":[],"defaultValue":"","parameters":{"matomoUrl":"//domidona.smarthost.eu/","idSite":"2","enableLinkTracking":true,"enableCrossDomainLinking":false,"enableDoNotTrack":false,"enableJSErrorTracking":false,"enableHeartBeatTimer":false,"trackAllContentImpressions":false,"trackVisibleContentImpressions":false,"disableCookies":false,"requireConsent":false,"requireCookieConsent":false,"customCookieTimeOutEnable":false,"customCookieTimeOut":393,"setSecureCookie":false,"cookieDomain":"","cookiePath":"","cookieSameSite":"Lax","disableBrowserFeatureDetection":false,"domains":[],"alwaysUseSendBeacon":false,"userId":"","customDimensions":[],"bundleTracker":true,"registerAsDefaultTracker":true,"jsEndpoint":"matomo.js","trackingEndpoint":"matomo.php"},"Variable":"MatomoConfigurationVariable"},"trackingType":"event","idGoal":"","goalCustomRevenue":"","documentTitle":"","customUrl":"","eventCategory":"Contact","eventAction":"Phone Link Click","eventName":{"name":"ClickDestinationUrl","type":"ClickDestinationUrl","lookUpTable":[],"defaultValue":null,"parameters":[],"Variable":"ClickDestinationUrlVariable"},"eventValue":""},"theTag":{}}
2:04:31 PM.52	"fired this tag"
{"type":"Matomo","name":"Matomo Event – Phone Link Click 2","fireTriggerIds":[5],"blockTriggerIds":[],"fireLimit":"unlimited","fireDelay":0,"startDate":null,"endDate":null,"numExecuted":2,"blocked":false,"parameters":{"matomoConfig":{"name":"Matomo Configuration","type":"MatomoConfiguration","lookUpTable":[],"defaultValue":"","parameters":{"matomoUrl":"//domidona.smarthost.eu/","idSite":"2","enableLinkTracking":true,"enableCrossDomainLinking":false,"enableDoNotTrack":false,"enableJSErrorTracking":false,"enableHeartBeatTimer":false,"trackAllContentImpressions":false,"trackVisibleContentImpressions":false,"disableCookies":false,"requireConsent":false,"requireCookieConsent":false,"customCookieTimeOutEnable":false,"customCookieTimeOut":393,"setSecureCookie":false,"cookieDomain":"","cookiePath":"","cookieSameSite":"Lax","disableBrowserFeatureDetection":false,"domains":[],"alwaysUseSendBeacon":false,"userId":"","customDimensions":[],"bundleTracker":true,"registerAsDefaultTracker":true,"jsEndpoint":"matomo.js","trackingEndpoint":"matomo.php"},"Variable":"MatomoConfigurationVariable"},"trackingType":"event","idGoal":"","goalCustomRevenue":"","documentTitle":"","customUrl":"","eventCategory":"Contact","eventAction":"Phone Link Click","eventName":{"name":"ClickDestinationUrl","type":"ClickDestinationUrl","lookUpTable":[],"defaultValue":null,"parameters":[],"Variable":"ClickDestinationUrlVariable"},"eventValue":""},"theTag":{}}
2:04:31 PM.53	"event: "
{"tags":[{"action":"Fire","type":"Matomo","name":"Matomo Event – Phone Link Click 2","numExecuted":2}],"variables":[],"metTrigger":{"name":"Klik na telefon","type":"AllLinksClick"},"name":"mtm.AllLinksClick","eventData":{"event":"mtm.AllLinksClick","mtm.clickElement":"A","mtm.clickElementId":null,"mtm.clickElementClasses":"","mtm.clickText":"*** 360 094","mtm.clickNodeName":"A","mtm.clickElementUrl":"tel:***360094","mtm.clickButton":"left"},"container":{"variables":[{"name":"Matomo Configuration","type":"MatomoConfiguration","value":{"matomoUrl":"//domidona.smarthost.eu/","idSite":"2","enableLinkTracking":true,"enableCrossDomainLinking":false,"enableDoNotTrack":false,"enableJSErrorTracking":false,"enableHeartBeatTimer":false,"trackAllContentImpressions":false,"trackVisibleContentImpressions":false,"disableCookies":false,"requireConsent":false,"requireCookieConsent":false,"customCookieTimeOutEnable":false,"customCookieTimeOut":393,"setSecureCookie":false,"cookieDomain":"","cookiePath":"","cookieSameSite":"Lax","disableBrowserFeatureDetection":false,"domains":[],"alwaysUseSendBeacon":false,"userId":"","customDimensions":[],"bundleTracker":true,"registerAsDefaultTracker":true,"jsEndpoint":"matomo.js","trackingEndpoint":"matomo.php"}},{"name":"ClickDestinationUrl","type":"ClickDestinationUrl","value":"tel:***360094"},{"name":"ClickText","type":"ClickText","value":"*** 360 094"}],"tags":[{"action":"Not Fired Yet","type":"Matomo","name":"Matomo Event – Phone Link Click 2","numExecuted":2}],"id":"d1IOub3d","versionName":null,"dataLayer":{"0":"config","1":"G-TKS7WYGVQW","mtm.containerId":"d1IOub3d","mtm.startTime":1671022397011,"event":"mtm.AllLinksClick","mtm.mtmScriptLoadedTime":1671022400579,"gtm.start":1671022397011,"mtm.clickElement":"A","mtm.clickElementId":null,"mtm.clickElementClasses":"","mtm.clickText":"*** 360 094","mtm.clickNodeName":"A","mtm.clickElementUrl":"tel:***360094","mtm.clickButton":"left"}},"time":"2:04:31 PM.53","index0":1,"index":2}

Can you share the events log in Matomo (the live journey of your visitor).
Do you use QueueTracking plugin?

to me it looks like everything fires as it should in MTM. All I can think of is (sorry, it’s a bit “stupid”):

  • Your variable “Matomo Configuration” contains “idSIte=2”. That’s where your events are going to. Is that the correct one?
  • Did you set the correct date in your Matomo where you check your events? A date without recorded events would look like the screenshot you provided (https://nimb.ws/0kFIzJ)
  • You have a problem with archiving or as Philippe suggested with some kind of queue or something that prevents your correctly fired events to be processed (and displayed).

Yes site 2

Yes. Today I have https://nimb.ws/bPzC4Y

Don’t use any QueueTracking plugin, as I know. I am new it Motomo and it is a basic installation.

How can share it, screenshot or something else?

@heurteph-ei @soardiac

Do you use QueueTracking plugin?

I am not using QueueTracking plugin https://nimb.ws/XKQwAC

so you have some other tag correctly creating events? Looks like scroll percentage…

if you click event category or action, do you see only the same (percentage) events?

you configured your tag to have {{ClickDestinationUrl}} as your event name. your data layer shows "tel:***360094" as the value for it. so it looks correct and should work. very far-fetched guess: maybe that string with the *** is a problem? can you try and replace that with some simple string like "test"? and fire some tags?

No, there is a phone number but I don’t want to post it in public.
Also, this is only scrolling https://nimb.ws/pLuja2

→ yes, screenshot (as you did for events report)

Could you show:

  • the HTTP console log of your browser, filtered on the Matomo server,
  • the browser console of your browser

when doing:

  • scroll (in order to trigger the scroll event)
  • phone click (in order to trigger the phone click event)

Also, could you check in the Apache / PHP / Matomo access log (and also error log) if you see both HTTP requests (hits for scroll event and phone click event)

I wonder if there isn’t any kind of firewall between your browser and the Matomo server that could kill the phone tracking request…

Sorry, I don’t have access to google Drive from where I work…
Can you put the logs here in the forum?