Show me some id
Dynamically generated web pages will have a url containing a query string that might look something like this:
www.test.com/somedirectory/some.php?id=41&pageno=1
Taking the example shown above, the default set-up for the FlySoup tracking code will show some.php as the page visited in your stats report.
What most subscribers with dynamic/content managed sites will want to know is the specific id and page number in order that a more granular interpretation of the stats is possible.
location.search will do this for you.
To get the full query string make the following change in the tracking script:
look for and change wa_pageName=location.pathname; // you can customize the page name here
to read wa_pageName=location.pathname+location.search;
In an ideal world, your web designers would also use URL rewriting to provide a more intuitive URL so that as well as the script returning the full query string it does so in plain English rather than id=41&pageno=1.
Labels: dynamic urls, FlySoup, url rewrite

0 Comments:
Post a Comment
Links to this post:
Create a Link
<< FlyPosting Home