Add Google Analytics Event Tracking In 5 Steps
Better refine your marketing strategy by getting data from Google Analytics Event tracking, so as to identify the effectiveness of your measures. Here’s what you can do to enable Google Analytics event tracking:
- Basic
Before you begin with Google Analytics event tracking, you have to install and set up Google Analytics on WordPress. Take the time to do this so that the rest of the process can proceed smoothly. If you already have it done, then the next step would be to add in a code to your wordpress website.
- Universal Analytics Code
Previously, there are older codes written to integrate Google Analytics with WordPress. However, Google is now encouraging users to replace the older codes with newer ones instead. Known as the Universal Analytics code, your new Google analytics code should look something like this. If your code differs from this, you may be required to upgrade your code by switching it out with the new one included above.
- Access
After performing the steps above, access your Google Analytics account by logging into the dashboard. Choose your ‘Admin’ link and make sure you’re viewing the dashboard of your website (where you will be having your event). Create an event by choosing the ‘View’ option and selecting ‘Goals’. Choose to create new goals and select the ‘custom’ choice under Goal set up. Fill in the relevant details as prompted and select ‘Event’ for goal type.
- Conditions
Make sure to specify the conditions of your event so that Google Analytics will know what to refer to when it comes to tracking conversions. Once you have finished applying the conditions, choose to save and ‘activate’ the goal so that you have enabled Google Analytics event tracking. Now, you have to make it so that your WordPress website tracks it and transfers the data to Google Analytics.
- Onclick method
The Onclick method is the most straightforward method to send Google Analytics event tracking results to Google Analytics since it will send the relevant data across when the user performs the action of clicking specific regions the user has set. Users will have to use a code that resembles something like:
[ onClick=”ga(‘send’, ‘event’, ‘category’, ‘action’, ‘label’, ‘value’);”].