Streaming live at 10am (PST)

Event Tracking With Google Universal Analytics

I need a way to track clicks using Google Analytics. I am not able to use a custom attribute using onClick (I get an error - see below):

There was another forum post that mentioned giving the clickable element a unique ID and then “hooking” it up to some custom JavaScript in the dashboard. Here’s the example that was given:

  $(document).ready(function() {
    $('#consultation-button-home').on('click', function(e) {
      _gaq.push(['_trackEvent', 'Lightbox', 'Open', 'Microsoft Project']);

The problem is that this is using “push” and the universal analytics does not use “push”. An example would be:

onclick="ga('send', 'event', 'Splash Right Fixed', 'Click', 'Inquire');">

If anyone knows how to set this up correctly, please let me know. Thanks.

Here is my public share link:
(how to access public share link)

1 Like

Hi @344kellogg

Here is an article that may help with this:

I hope this helps. If not, please let me know and I will be more than happy to assist further! :slight_smile:


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.