I have a view white a gmap and foreach Marker a link with tel number.

And I want add tracking code on this link.

I add class on my link like this:

<div class="gmap-popup">
   <h3>Marker Title</h3>
   <p>Description marker</p>
   <a href="tel:0000" class="js-track-phone-gmap">Call us</a>

And after try with jquery

   $('.js-track-phone-gmap').on('click', function () {

But nothing.

Someone has already tried to add ga code on Gmap ?

Thx for your help :)

  • Is this a view? Or how is the Google map built/shown? Any modules used for the functionality? – rovr138 Mar 13 '17 at 14:51
  • Is your jQuery being loaded correctly? – Kevin Mar 13 '17 at 16:47
  • Solution was found in this issue stackoverflow.com/a/25610524 – Moana Jun 1 '17 at 15:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.