Tracking Published Date as Custom Variable for Google Analytics

I want to track traffic with Google Analtyics based upon the post publish date. For example, what new articles are doing well or poorly compared to similarly published posts.

I added this before my analytics code with no avail:

    <script type="text/javascript">_gaq.push('_setCustomVar',1,'Publish Date','<?php the_date('F j, Y', '', ''); ?>', 3);</script>

0

Leave a Comment