title: How to make Google Analytics count pop up posts
body: <p>I have a wordpress site where you can view posts in two ways. You can view them on their single page or you can click on thumbs from the homepage and view them in an ajax popup that shows the full post. My problem obviously is that Analytics isn't counting the popup views. I use a template to popup the post and I'm looking for a way to make analytics recoginze it as a page view and tell me what post it was. I tried adding the analytics code to the top of the template page but that didn't do anything. Any ideas? I use the SimpleModal jquery plugin to popup posts and call them like this.</p>
  
  <pre><code>jQuery(document).ready(function() {
  jQuery('a.postpopup').live('click', function(){
              var id = jQuery(this).attr('rel');
      jQuery('&lt;div id="ajax-popup"&gt;&lt;/div&gt;').hide().appendTo('body').load('http://mysite.com/ajax-handler/?id='+id).modal({
                 opacity:90,
                 position: ["0%"],
                 containerCss:{width:"100%"},
                 overlayClose:true,
                 onOpen: function (dialog) {
               dialog.overlay.fadeIn('200', function () {
            dialog.data.hide();
             dialog.container.fadeIn('500', function () {
          dialog.data.fadeIn('slow');
             });
               });
                 },
                 onClose: function (dialog) {
               dialog.data.fadeOut('slow', function () {
            dialog.container.hide('500', function () {
          dialog.overlay.fadeOut('200', function () {
              $.modal.close();
          });
            });
              });
                }
              });
              return false;
   });
  });
  </code></pre>