Hi, I have a one time offer page in a wordpress site with ejunkie standard GA tracking code installed.
The OTO page is a php file that rewrites the page url to ensure that people can't revisit and buy later at the one time price. However this is causing my goal url (an email optin) not to be tracked in analytics as the url is rewritten.
Long story short, I think I need to add a custom pageview to the trackpageview code on that page, so that it registers in analytics as a goal conversion.
So, if I want to modify the standard EJ GA tracking code, to add a virtual pageview for this page:
/oto_569/?utm_nooverride=1
...is this the correct code to do that? (notice last line):
<script type="text/javascript">
var gaJsHost=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");
document.write(unescape("%3Cscript src='"+gaJsHost+
"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var ejGATracker = gat.getTracker("UA-XXXXXXXX-1");
ejGATracker._setDomainName("none");
ejGATracker._setAllowLinker(true);
ejGATracker.trackPageview("/oto569/?utm_nooverride=1");
</script>
I'm a script newbie, just looking to get right.
Thanks!