• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Google Analytics Advanced Tracking Basics (for WordPress)

By Abhishek Ghosh October 25, 2014 12:02 am Updated on October 25, 2014

Google Analytics Advanced Tracking Basics (for WordPress)

Advertisement

There is No Need of Any WordPress Plugin For Enabling Google Analytics Advanced Tracking in WordPress. Here is How You Should Plan Tracking. Advanced Tracking is not required for all because frankly, a small mistake of configuration can give fully wrong data. Secondly you must not pay a single dollar to a wrong person. There is huge difference only on the aspect of asynchronous tracking and traditional tracking snippet. This is one of the basic reason behind AdSense and Google Analytics Data mismatch those who use the old snippet with advanced customization.

 

Google Analytics Advanced Tracking Basics for WordPress

 

AdSense data is over 99% correct. As we using inferior language named PHP and hundreds of ways to make WordPress somewhat faster – by using W3TC like Plugin, by using Ngnix Static File serving, by using WordPress Fragment Cache, by using PHP5-FPM Microcache to cover up PHP related problem, there will be always some error in data capture. So, using the simple default Google Analytics asynchronous tracking code is better for those who has not ever read Mean, Median, Mode or exam purpose. Google Analytics Advanced Tracking has lot of different parameters like Events Tracking, Enhanced Link Attribution, Site Search and so on.

 
Google Analytics Advanced Tracking Basics for WordPress

Setup for a very basic example of Events can be Outgoing Link Tracking with Google Analytics. Google Tag Manager is another way to understand the way visitors are interacting. Normally, if you are using DoubleClick Ads and asynchronous tracking snippet, you are already capturing lot of extra parameters. analytics.js JavaScript snippet is the new way to measure how the users interact within our website. analytics.js JavaScript snippet is similar to the previous tracking code ga.js, but it offers more flexibility. This is where Google Tag Manager and Google Analytics Meets :

Advertisement

---

Vim
1
https://support.google.com/tagmanager/answer/3281379

 

Google Analytics Advanced Tracking Means Js Plugins

 

By default, your script is like this :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
 
ga('create', 'UA-XXXX-Y', 'auto');
ga('send', 'pageview');
 
</script>
<!-- End Google Analytics -->

You will use Header and Footer like plugin to insert this normal tracking script. Too basic, but there is reason to show the code. Notice this :

Vim
1
function(i,s,o,g,r,a,m)

We use kind of minified script. The comment tells :

Vim
1
2
3
4
5
6
7
* @param {Window}      i The global context object.
* @param {Document}    s The DOM document object.
* @param {string}      o Must be 'script'.
* @param {string}      g URL of the analytics.js script. Inherits protocol from page.
* @param {string}      r Global name of analytics object.  Defaults to 'ga'.
* @param {DOMElement?} a Async script tag.
* @param {DOMElement?} m First script tag in document.

Hit callback is a funny function :

Vim
1
https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced#hitCallback

Enhanced link distribution is nothing but adding this :

ga('require', 'linked', 'linkid.js');
before ga('send', 'pageview');, so that it becomes :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
 
ga('create', 'UA-XXXX-Y', 'auto');
ga('require', 'linkid', 'linkid.js');
ga('send', 'pageview');
 
</script>
<!-- End Google Analytics -->

Now, if you add Outgoing Link Tracking with Google Analytics method to internal links – it will practically give you wrong data. Because action of the user within the domain is default action, we need to only mark the dom elements. Practically more precise analysis could be done, but Google never tells because some are related to AdSense.

So, actually you need no WordPress Plugin for even quite advanced setup!

Tagged With WordPress Google Analytics jQuery tw

This Article Has Been Shared 178 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Google Analytics Advanced Tracking Basics (for WordPress)

  • Pinterest : How To Leverage Your Business Presence

    Pinterest is a new social photo sharing with default integration with Twitter and Facebook. You can leverage your online presence with Pinterest with our tips.

  • Moving to Cloud : Is It Safe For Your Business ?

    Moving to Cloud is not simple outsourcing. It means the possibility for the companies to use online applications in all areas, needs careful analysis to adapt.

  • Author Images in Google Search : tbs and ppl_ids

    Author Images in Google Search for Google Verified Authors includes a bigger image in right side with some details and links. This is about the Microformat which determines it.

  • Twitter Card Embed Options in WordPress

    Twitter Card Embed Options in WordPress are wider from manually embedding, PHP manipulation to Twitter Card Plugin for WordPress.

  • PRISM and Cloud Computing : Its SaaS that will be Rghtly Killed

    Prism and Cloud Computing created a great excitement. Since it allows American and British intelligence services to smoothly listen to Internet.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (21K Followers)
  • Twitter (5.3k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • How to Protect IP Cameras From Hackers February 25, 2021
  • 6 Sectors That Have Undergone Revamps in Digital Landscape February 24, 2021
  • What You Can Control with a Smartwatch and ESP32 February 23, 2021
  • What Does Data Cleansing Mean? February 21, 2021
  • How to Find the Right Software for Your Company February 20, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Google Analytics Advanced Tracking Basics (for WordPress)," in The Customize Windows, October 25, 2014, February 27, 2021, https://thecustomizewindows.com/2014/10/google-analytics-advanced-tracking-basics-wordpress/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2021 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy