• Hi,

    I’m trying to put together some dynamic document downloading tracking for google analytics, which basically means I have to be able to get a custom field inserted inside the google analytics script, as follows:

    javascript: pageTracker._trackPageview('/downloads/<?php the_title(); ?>');

    To make a long story short the php doesn’t seem to work inside the script…any ideas how I can make the script dynamic to include my page title?

    Thanks for any help, and merry christmas!

The topic ‘Template Tag Inside Javascript?’ is closed to new replies.