There are certain actions on your website that Google Analytics’ Goals cannot tracked.
Typically, these actions take place independently of a page load. A few examples are:
Flash
Document downloads
AJAX elements
Web forms (that remain on the same page when submit)
These actions need to be tracked as Events.
Events are an important feature of Google Analytics because they let us track key user actions on our site. However, the reporting of Events is limited. When you’re using Events to track form conversions, they don’t get the job done.
That’s why Google allows you to turn your custom Events into Goals.
Goals reporting is more robust and useful for tracking conversion actions.
This post has two parts:
Find out exactly how many customers you SHOULD be getting from organic search.
Events aren’t as easy to set up as Goals – it requires customization of your JavaScript file. Implementation details should be covered in your company’s measurement plan. If they aren’t, here’s how to code your Event.
I have 5 forms on this website, 3 of which use AJAX elements (no redirect to thank you page). Here’s the JavaScript snippet I wrote to track submissions on our Contact page:
onClick=”ga(‘send’, ‘event’, { eventCategory: ‘Contact ‘, eventAction: ‘Submit’, eventLabel: ‘Contact Page Form’, eventValue: 50});”
Scared? It’s very simple to write. There are 4 elements you need to account for:
Category is the name for all events of a certain type. Since I wanted to track contact form submissions, I set the category value to “Contact”.
JavaScript: eventCategory: ‘Contact’
Actions are the specific user events that result in the JavaScript being fired. For my example, I want to JavaScript pixel to fire (track) when a user clicks “Submit”. Other possible actions:
PDF or document download
Starting a video, stopping a video, pausing a video
Playing a podcastJavaScript: eventAction: ‘Submit’
Labels are values that help describe the action. I recommend filling this out if there are similar actions you’ll want to to distinguish. In my example, I have multiple contact forms so I added the value “Contact Page Form”.
JavaScript: eventLabel: ‘Contact Page Form’
This value denotes numeric metrics like file size, video length or download statistics. My leads are each worth $50 to my business so I added the value of “50”.
JavaScript: eventValue: 50
That’s it! Now put all of the values together and hand the file to your developer for implementation.
[sociallocker id=”2762″] THE FREE TOOL THAT DOES THIS FOR YOU![/sociallocker]
After your development team implements the new tag, navigate to Behavior > Events to verify the tracking. Below is a screenshot from the day after I implemented 5 Events.
There’s a problem with this report. Event report conversion rate takes both shares and submissions into account – that’s not ideal. Each of these actions hold different weights and shouldn’t be looked at as equal conversions.
That’s why Google Analytics gives you the ability to create Goals based on Events.
Goal tracking is more robust than Events. Goal reports display for better conversion data, segmentation and reporting options.
Category
Action
Label
Value
Look familiar?
These are the same parameters we set in our JavaScript snippet.
onClick=”ga(‘send’, ‘event’, { eventCategory: ‘Contact ‘, eventAction: ‘Submit’, eventLabel: ‘Contact Page Form’, eventValue: 50});”
All you have to do is enter the values we created earlier.
Category = Contact
Action = Submit
Label = Contact Page Form
Value = 50
That’s it! Your custom Event will now be tracking as a Goal. You can now view more in depth data in the Conversion reports.
Google analytics I see has more customization options than I ever realized. I will have to examine this closer.
Google Analytic s can be tricky to use, this is some really good advise on events. Thanks for adding the JavaScript for creating custom events, but, its good to know I can just hire you! lol
Their are a lot of different elements to custom events. I think I will take a look more at this. I do know a little about coding so I think I could attempt the step by step. If not their is Ryan to the rescue.
Google analytics is a tool that must be mastered by internet marketers. It helped many marketers in formulating marketing strategies.
I never realized that Google Analytics could do so much. Thank for this informative information.
I never ever knew you could turn events into goals. Man I’ve been sleeping on this great resource. Thanks for opening my eyes!
Thanks for breaking every thing down. I have been struggling to grasp google analytics understanding.
I never realized there was a problem with events reports in Google analytics. Thanks for pointing that out.
I don’t know how you learn all this stuff but you are a true pro at what you do. No rehashed garbage here!
This doesn’t work if I do a validation after submitting and only want to track the successfull ones.
I know that I cannot put an onload event to a tag.
Do you have any idea how to solve this?
Awesome Ryan, I hope this works for me now!
Great Ryan, awesome bro, you always give quality information, that I do not need to look any where else. Thanks for sharing this valuable tips.
youre welcome!
So excited I found this article as it made things much quicrek!
Thanks for posting this detailed information about how to create Goals in google analytics.
Thanks for this.
The javascript file that you create. Is that just its own snippet alone or part of the GA code snippet? Thanks in advance
A part of the GA code snippet
Why when creating the event did you choose Acquisition>Create An Account and not just a custom event?
thanks. found this overview helpful.
Sir, will you help me to set event track goal on this website.
https://www.collectoffers.com/in/decathlon
Sure, you have to set an appointment with our staff and one of our consultants will review it.
Hi, Ryan,
maybe you can help me (even if you charge something for it):
For a bunch of reasons my team wants to use google forms embedded in our website. So we have a form page like this, for example: http://www.nespe.com.br/pos-edicao-inscricao/
The question is how to set up analytics goal for these forms. I’ve looked everywhere, simply cannot find a workaround.
Thanks in advance.
Have you written the top comments yourself? It sounds like it’s a variation of the same comment: I didn’t know GA does this. You are great!
Anyway, thanks for sharing this and for the tool to create those events. That helps.
We’re always getting hit with a ton of spam :/
World’s best internet marketer and doesn’t even know how to implement a custom made JS into HTML. I bet you do not even know SQL, a must for all marketers. You sir, are a below average “marketer”
Na dick, I have 50 employees who know it for me. That’s why you’re commenting on MY BLOG and I have no fucking idea who you are.
Thanks. I will follow you more. You are great.
Find out how much organic traffic your website should be getting through our Traffic Projection Analysis.
SHOW ME OUR POTENTIAL!Using data from your website, our Traffic Projection analysis can accurately forecast how much traffic (and revenue) your website could be getting from Google.
FIND OUT MORE
8 years ago