Hi Matomo Community,
I’m having trouble setting up goal tracking for email (mailto:) and phone (tel:) links on my website. Here’s what I’ve done so far:
- Set up goals in Matomo with the type “Manually trigger a conversion by calling the JavaScript method
_paq.push(['trackGoal', ID]);”. - Added
onclickevents to the email and phone links, as per the example below:
- Verified that the Matomo tracking code is correctly installed and that
matomo.phpis accessible.
Issue:
- Goal tracking for email and phone links is not working. Clicks on these links are not being recorded in Matomo, even though the
onclickevents are firing. - The WhatsApp link goal (external link) works perfectly.
What I’ve Tried:
- Added
return true;to theonclickevents. - Tested in multiple browsers (Brave, Microsoft Edge, Firefox).
Questions:
- Why are email and phone link goals not being tracked?
- Are there any additional steps or configurations required to track
mailto:andtel:links in Matomo? - How can I debug this issue further?
Any help would be greatly appreciated!
Thanks!
1 post - 1 participant
