Closed (fixed)
Project:
Google Analytics
Version:
4.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Jun 2018 at 05:19 UTC
Updated:
1 Oct 2021 at 18:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hass commentedCurrently it may not tracked or not as expected. Feel free to share a patch.
Comment #3
gnindl commentedI made a patch for Drupal 7, see attachment.
Comment #4
hass commentedLooks all good, but we need a D8 patch first.
Comment #5
thallesFollow the patch!
Comment #6
thallesComment #8
thallesComment #9
thallesComment #10
hass commentedJs code and tests are missing.
Comment #11
thallesFollow the patche
Comment #12
thallesComment #13
hass commented- „Click on e-mail '%s' has been tracked.“ ooks wrong.
- I guess we also need the install file additions and I‘m not sure if we need an update hook to add the install value to existing installations.
Comment #14
thallesHow to emulate this?
Comment #15
millionleaves commentedTried the patch in #11 on 8.x-3.x-dev (yes, I know it's a patch for 8.x-2.x-dev).
It appeared to apply OK, but doesn't work. I can enable the option to track tel links, but nothing is showing up in GA when I click a tel link in the site.
Also - minor point - but the checkbox in the admin should be located above the checkbox for "Track downloads (clicks on file links) for the following extensions" - currently it's between the checkbox and the text field for entering extensions. Not sure if that's happening because I installed it into the wrong branch, but just in case...
Comment #16
chrisolofThe attached patches add tel: link click tracking to both the 2.x and 3.x branches.
I went with a slightly different naming convention ("tel" instead of "phone"), addressed the issues in comment 13, and updated the readme. There's an interdiff showing the differences between my 2.x patch and the patch in comment 11.
Heads-up: I have not personally tested the 2.x patch (my site runs 3.x), but can confirm the 3.x patch is working well in my initial tests here.
Ready for review.
Comment #18
japerryThanks for the suggestion, committing before we refactor the link tracking in 4.x. Fixed!
Note, there is no ongoing support for 2.x or 3.x branches, so if you need to use those features in those branches, keep continuing to use the patches above.