Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Adding Marker Tracking #409

Closed
analog81 opened this issue May 11, 2015 · 1 comment
Closed

Adding Marker Tracking #409

analog81 opened this issue May 11, 2015 · 1 comment

Comments

@analog81
Copy link

Hi,

Does anyone know how to add Analytics tracking to a map with multiple markers? I'm trying to figure out which location is being clicked on the most. Also, I'm trying to track a mailto link inside the info window on click. I'm new and your help would be greatly appreciated. Thanks.

@hpneo
Copy link
Owner

hpneo commented May 12, 2015

You can track the click event of the markers (check this example: http://hpneo.github.io/gmaps/examples/markers.html). You need to read about the Google Analytics JS API.

About mailto links, you could be same as the markers, but adding an id attribute to the mailto link and using jQuery to capture the click event for that id.

@hpneo hpneo closed this as completed Mar 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants