Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the below code for tracking the registrations

var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-xxxxxxx']);
  _gaq.push(['_setDomainName', 'website_name']);
    'JOb App',        
  _gaq.push(['_trackTrans']); //submits transaction to the Analytics servers

  (function() {


But my confusion is, _trackPageview is having no value. Is it OK to have NO value ?

It is not reporting anything in Google analytics.


share|improve this question
up vote 0 down vote accepted

If you do not need it do not use it. It's not meant to generate pageviews. It's used to generate events.

What is _trackPageview and how can it help me?

Google Analytics' _trackPageview is a function for use on ga.js tracked sites that allows you to track events on your site that do not generate a pageview. Using the _trackPageview JavaScript, you can assign a specific page filename to Flash events, JavaScript events, file downloads, outbound links, and more.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.