.

.

Sunday, May 28, 2017

Roshan Thpa

How to Install Google Analytics Tracking Code on WordPress Site


If already installed, you can skip this step but it’s not straight forward to apply so we thought to come with something which helps this job easier to anyone who is using wordpress. This plugin helps you to install google analytics code if you have not done it yet. You need to follow this single step to do so. As per below screenshot, paste your google analytics code.
install google analytics1 WP Install Google Analytics Plugin

How to Apply Custom Event Tracking for Google Analytics

Now it’s time to apply custom tracking on elements. First decide on which elements you want to apply and you need to add an extra class on those. class nomenclature should be as below.
track_category_action :- Here category is Event Category and action is Event Action. Please take a look on the image below to understand this better.
event category actions WP Install Google Analytics Plugin

Custom Event Tracking Examples:

These examples helps you to understand completely how to use this plugin and its working. For any questions, you can post a reply below.
Case Study – Suppose you have a blog and you want to track how many visitors clicked on your logo.
Class Name Should be : track_logo_clicks
Here Event Category is logo and Event Action  is clicks.
Tracking in Google Analytics
logo example WP Install Google Analytics Plugin

Case Study – Suppose you have an advertisement and you want to track the number of clicks on your advertisement.
Class Name Should be : track_advertisement_clicks
Here Event Category is advertisement and Event Action  is clicks.
Case Study – Suppose you’re running a osCommerce solution and have a cart and you want to track how many visitors clicked on “buy now” button.
Class Name Should be : track_buynow_clicks
Here Event Category is buynow and Event Action  is clicks.
Case Study – Suppose you have a form and you want to know how many times the form was submitted.
Class Name Should be : track_form_submit
Here Event Category is form and Event Action  is submit.

Roshan Thpa

About Roshan Thpa -

Roshan Kumar Thapa is veteran keen tech-savvy person which has enabled him to qualify for the job. He has knowledge in wide range of IT fields. He is highly trained and skilled in Graphic design, Tally, A+ hardware and networking, AutoCAD, Web Design/Development, Application Development, Video editing, Q-Basic and had good knowledge of C, C++, C# and Java programming. He keeps a keen interest in information technology and loves to keep himself updated through news, magazines, books, and blogs. He likes to learn and share his knowledge. He also runs a blog where he posts updates about the latest advancements in technology and his own teachings as well.

Subscribe to this Blog via Email :