I was directed to a post on the Miva Blog (thanks Mark and Dan!): Installing Google Analytics In Miva Merchant 5.5. I have implemented it and love the simplicity of the single global footer script and the amount of functionality it provides.
My question is for the NTFD page. When that page is called, the pageTracker._trackPageview issues a blank product code as part of the url to report. For instance:
I modified the script provided in the blog post above (and here) to display 404.html when the NTFD page is called.
My question is, like the srch parameter trapping, is there a way to pass along the requested url in a parameter and append it to the reported URL?
So maybe something like this would show up in google analytics as the url that was visited:
/product/404.html?u=http://www.domain.com/badurl.html
Thanks!!
My question is for the NTFD page. When that page is called, the pageTracker._trackPageview issues a blank product code as part of the url to report. For instance:
Code:
<script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script> <script type="text/javascript"> var productCode = ""; var pageTracker = _gat._getTracker("UA-XXXXXX-1"); pageTracker._trackPageview('/product/' + productCode + '.html'); </script>
My question is, like the srch parameter trapping, is there a way to pass along the requested url in a parameter and append it to the reported URL?
So maybe something like this would show up in google analytics as the url that was visited:
/product/404.html?u=http://www.domain.com/badurl.html
Thanks!!
Comment