track event google maps

21 views
Skip to first unread message

אירנה ארונוב

unread,
Nov 2, 2011, 10:11:25 AM11/2/11
to google-map...@googlegroups.com
Hello
 
my google map code is:
 
function initialize(mapdata){var LatLng=new google.maps.LatLng(mapdata[0],mapdata[1]);
var myOptions={zoom:16,scaleControl:true,streetViewControl:false,panControl:true,mapTypeControl:true,center:new google.maps.LatLng(mapdata[0],mapdata[1]),mapTypeId:google.maps.MapTypeId.ROADMAP};
var map=new google.maps.Map(document.getElementById("map"),myOptions);document.getElementById("map").style.height="200px";document.getElementById("map").style.width="450px";
var infowindow=new google.maps.InfoWindow();
var marker=new google.maps.Marker({position:LatLng});marker.setMap(map);
google.maps.event.addListener(marker,'mouseover',function(){infowindow.setContent(<div style="text-align:right; font-size:8pt; color:black;">click here<a href="http://www.google.com/"></a> </div>');
infowindow.open(map,marker);});}
 
my question is how can I track with analytics after a click event in the info window content?
 
Thanks in advance,
Irena
Reply all
Reply to author
Forward
0 new messages