Google Analytics with event tracking helps you measure how users interact with your site. It is simple to add the event tracking because it is simply done by adding a small snippet of code to the elements you want to track on your website. When your users visit the site and clicks on the items with the code, it will automatically have Google Analytics record the interaction. The variables to consider before creating an event include Action, Category, Label, and Value. It is possible to track either through Classic Analytics using ga.js or Universal Analytics using analytics.js
If you are not sure which version of Google Analytics you are using, it is possible to do so in your Google Analytics (GA) Account and on your website. In your GA Account, click on the “Admin” tab and look under “Property” Colum. For Classic Analytics accounts have an option referred to as “Tracking Code” while on Universal Analytics accounts it is called “Tracking Info” which has additional options below it. On the website, it is possible to know by looking at the code on your site. Just open the “page source” for your site using CTRL+F and search for “analytics.js” or “ga.js” and you can match whichever appears with the respect version of Google Analytics.
How to set up an event tracking
Tech savvy individuals managing a property management website would want to know which links were clicked, where the emails were sent to, which house photos had the most links and which PDF documents were downloaded. Therefore, the event tracking code has to be embedded in the site during web design for property management companies. The following are the steps
Step 1: Decide what you want to track
Before adding the tracking code to the site, it is important to prioritize the actions on your site that are responsible for converting visitors. The site is made for a particular purpose which you think is the reason the users will visit the site. With that in mind, you may consider adding tracking to things like downloads, email addresses, sign-ups, Calls-to-Action (CTA’s), form submissions, phone calls, and outbound links.
Step 2: Add tracking code to your website
Universal Analytics Tracking (analytics.js):
<a href=”http://mypropertywebsite.com/ebook.pdf” onClick=”ga(‘send’, ‘event’, ‘PDF Downloads’, ‘Click’, ‘SEO For Beginners’);”> Free “SEO For Beginners” eBook </a>
Classic Analytics Tracking (ga.js):
<a href=”http://mypropertywebsite.com/ebook.pdf” onClick=”_gaq.push([‘_trackEvent’, ‘PDF Downloads’, ‘Click’, ‘SEO For Beginners’);”> Free “SEO For Beginners” eBook </a>’
The results of the variables above would then be:
Category = PDF Downloads
Action = Click
Label = SEO for Beginners
Value = (none)
Non interaction = False
Step 3: develop the goals you want to achieve in Google Analytics
Go to “Admin”.
Under the “view” column, click on “Goals”.
Click on “New Goal”.
Under “Template”, click on “custom”.
Add a name for your goal and then under “Type”, select “Event”.
Enter your category and action. Verify if everything is correct and then click “Create Goal”.
Testing your Click to call tracking events
To do this, all you need is go to the “Reporting” tab and click on “Real-Time” and then “Events”. Go to the website and click on one or two of the events you have set. Then, go back to Google Analytics and you should see a pop-up that shows that you have the correct category.