Hello,
I have a toolset map hidden link with about 40 markers.
I would like to track the "opening" of those markers by clicks on the map, in order to be able to know which are more frequently opened by visitors.
How may I :
1- Add a class or listener to detect the click with GTM ?
2- Get the marker's title to store in the "label" in GTM ?
Thank you.
2- Get the marker's title to store in the "label" in GTM ?
- Once, you have the information about the clicked marker, the next step would be to push it to the Google Tag Manager for tracking, using the "dataLayer".
Following are some useful guides on the topic:
hidden link hidden link
For more personalized assistance around custom code, you can consider hiring a professional from our list of recommended contractors: https://toolset.com/contractors/
regards,
Waqar
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.