Google Analytics Goal Not Working Nor Matching Visible Events

Screenshot of Google Analytics Real-Time Conversion View With No Goal Hits

Are you having trouble setting up custom goals in Google Analytics to match your custom events? Do you see the events show up in your real-time view, yet the goal counts still sits at zero? This can happens if just one of the Event conditions aren’t set to match correctly. Let’s go over places to check.

Screenshot of Google Analytics Real-Time Conversion View With No Goal Hits

 

Custom Event Basics

Custom events are signals that you send to Google Analytics when a user does a specific action on your web site.

Custom events are set up with four fields or parameters. Fields or parameters are a way of sending data from your web site or web app to Google Analytics. Each parameter has a specific input type and which column the data will end up in.

Below is a table from the custom event setup page from Google.

Field Name Value Type Required Description
eventCategory text yes Typically the object that was interacted with (e.g. 'Video')
eventAction text yes The type of interaction (e.g. 'play')
eventLabel text no Useful for categorizing events (e.g. 'Fall Campaign')
eventValue integer no A numeric value associated with the event (e.g. 42)

Let me elaborate. Each time a user does something you are interesting in using as a metric on your web site or app, you can send an event in four different fields.

  • The eventCategory field is meant to hold the name of the category this event belongs to. You can set this to whatever you want. This name can be viewable in the dimension (column) called Event Category.
  • The eventAction field is meant to hold the name of the type of action this event is. You can again set this to whatever you want. This info is viewable in the dimension (column) called Event Action.
  • The eventLabel is an optional field where you can label this event with more specific details. You can again set this to whatever you want. The label is viewable in the dimension (column) called Event Label.
  • The eventValue is another optional field where you can set any number to represent this event. You can choose any number you want. This number will end up in the metric (column) called, you guessed it, Event Value.

Now that we have the basics, let’s move on.

 

Setting Up Custom Goal Type Event

If you want an event when fired to be registered as a goal, you’ll have to set up a custom goal and select the event type. When you are configuring the details of the Event conditions, you’ll need to know the details that was sent.

Each field has to match up with what the event sent in the four fields (category, action, label, value). You’ll need to make sure you select the correct match type (“Equals to”, “Begins with”, “Regular expression“, “Greater than”, and “Less than”).

Screenshot of Google Analytics Goal Details Configuration Page

 

Common Mistakes

Here are some common mistakes that you should be aware of.

  1. When using “Equals to” match type, understand that spaces and capitalization counts too. Make sure what you type in the field matches exactly what would be sent in the event. Watch out for trailing spaces.
  2. When using “Begins with” match type, be careful that “Pen” will match “Penny”.
  3. When using “Regular expressions“, you don’t need the two slashes “/^[\w]+$/” surrounding the expression as you would usually use when writing regular expression patterns.
  4. When using “Greater than“, understand that 3 is NOT greater than 3.
  5. Likewise, when using “Less than“, 3 is NOT less than 3.
  6. When events do not send anything in optional fields, you will need to use “Equal to” and leave the field empty. This especially applies to the Event Value field. If the event did not send anything for eventValue, using “Greater than” “-1” or “Equals to” “0” will not match even though in reports the value will show zero by default.

 

Working With Existing Events You Didn’t Configure

Sometimes you need to set up goals for events that were configured by someone other than you or by your content management system (CMS) like WordPress for example. However, since you didn’t create the custom event yourself, you won’t know exactly what is sent in the four fields. Where would you go to find the details of what is being sent and for what action? This is where you’ll need to use your technical skills to monitor the events as you trigger the events in your browser.

To find out what fields are being sent in the events for what user actions, using the developer tools already built into your web browser can help. Below I will show the developer tools found in Chrome Browser.

To quickly open developer tools, open your web page or web app in Chrome Browser. Then right click anywhere on the page to bring up the contextual menu. In the menu, click the last menu item called “Inspect“. This should open the developer tools.

Along the top, you should see a row of tabs. Select the “Network” tab.

Screenshot of Chrome Developer Tools Network Tab Showing Google Analytics Event

Now, you should be able to see any communication between your browser and the internet (your server or Google Analytics).

When you do something on your web site that has already been configured to send an event, your event will show up here as the event and its data travels from your browser to Google Analytics.

Go ahead and do that action now.

Once done, find the network request that starts with “collect?v=1&_v=…” as seen in the screenshot above. This is the name of the page where Google sends your data. You can use the filter (funnel icon at the top), to find it faster.

Once you found one, click it to view the “Headers” tab. Scroll down to the “Query String Parameters” section and you can find out that this was a type (t) “event”, the event category (ec) is “Graph” (which is what we named this event), and what the event action (ea) and event value (ev) are.

With this information, you can accurately set up your custom goal for custom events.

Happy goal setting!

If you are still having trouble and cannot figure things out, please feel free to comment below or reach out to our team here. We are always willing to help as doing so allows us to learn from each other.

 

 

Joseph Shih
Joseph Shih
Keyword Researcher / Product Developer / Web and Mobile Application Developer at Twinword, Inc.

Leave a Reply

Your email address will not be published. Required fields are marked *