Help using wp_title for analytics page naming
-
I’m trying get my Omniture pagename set properly for my blog using some code in the footer. What I want is to have the home page say something simple like ‘Blog Home’ and have all other page say something like ‘Blog : post title’. Trouble is I don’t know how to do php coding.
Someone tried to help me and gave me this:
<?php
echo “s.pageName = ‘Blog: ” . wp_title(”,true) . “‘\n”;
?>s.pagename is the Omniture variable i’m trying to set. But this a) doesn’t work and b) doesn’t include an if statement to treat the home page differently. Can anyone help with the code I need to make this work properly?
A million thanks.
- The topic ‘Help using wp_title for analytics page naming’ is closed to new replies.