sjjs1985 Posted August 29, 2011 Share Posted August 29, 2011 I simply want to set the current time as the trackEvent value. Why isn't this working anybody? Thnaks -----------------JavaScript, this is working fine ------------------------- <script type="text/javascript"> var currentTime = new Date() var hours = currentTime.getHours() var minutes = currentTime.getMinutes() var timeStamp = (hours + ":" + minutes + " "); </script> -----------------html, what am I doing wrong?------------------------ onclick=" _gaq.push(['_trackEvent', 'Time', 'Time:' + timeStamp]);" i'm guessing its the '+ timeStamp' section of the code. all help greatly appreciated. thanks Link to comment https://forums.phpfreaks.com/topic/245984-setting-current-time-variable-as-trackevent-value-in-google-analytics/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.