Features Of User Defined Report In Google analytics

We all know that Google is updating all of its products like gmail labels,removing beta label versions from some of its product and working out to form a  new OS to compete with Microsoft.Let see some useful feature of Google analytics i.e about user defined feature

So What is User Defined Report?

The user defined variable allows you to “label” a visitor if they complete a certain action on your site, such as making a purchase or visiting a key page. These labels are useful because they last across multiple visits to your site.

These labels are often called Custom Segments (or Custom Segmentation). You can see the data from these Custom Segments in the User Defined report, which is the last report of the Visitors section in Google Analytics. Read More

goo analytics

Steps To add these labels top your website visitors

For example

If you want to add labels of your customers o any visitor who reaches my shopping cart’s receipt page .In order to this you should add an additional line of code to your Google Analytics Tracking Code (GATC)on your receipt page

It will be in the form

<script type=”text/javascript”> var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”); document.write(unescape(“%3Cscript src=’” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”)); </script> <script type=”text/javascript”> try { var pageTracker = _gat._getTracker(“UA-XXXXXXX-1″); pageTracker._trackPageview(); pageTracker._setVar(”customers”); } catch(err) {}</script>

setVar(”customers”); The parameter which is bold denotes that the includes _setVar. When this is present on a page within the Google Analytics Tracking Code, an additional cookie (called the __utmv cookie) gets set on a visitor’s computer, with its sole purpose being to identify the visitor by the label (or value) that you used in the code. If you take a look at the code example above, you will see that I used the termcustomers,“ the label that I want to appear in the User Defined report.

Usage of Set_var when user clicks

Yes – you can also use the pageTracker._setVar function when someone clicks on an important link on your site, or makes a key selection on an important form that you want visitors to fill out. For example, if you wanted to add a custom label to any visitor who clicks on your “Live Help” applet, you can ask your IT department or webmaster to add an “onClick” event, and give them the following line of code:

ggo analytics1

onClick=”pageTracker._setVar(‘Needs Help’);”



Leave a Reply

%d bloggers like this: