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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.