Welcome Guest, Not a member yet? Register   Sign In
How to use query strings with CodeIgniter and stay alive to talk about it
#4

[eluser]Unknown[/eluser]
What are people doing to support query strings necessary for analytics support? In particular, Google Analytics has been using javascript to read the query string and log information, these query strings inevitably including "?","=", and "&", and can sometimes span across all pages. I don't need query string support per se so I've been going with friendly URLs and have enable_query_strings turned off, but I would like them to remain in the URL so that javascript can pick them up.

At the moment if there's a "?var=foo" in the URI it gets treated as a parameter, and my controllers / methods don't expect them, spitting out an error. I'm working on an .htaccess method to rewrite and ignore everything after the "?", but are there other methods I should be considering?

cheers,
matt


Messages In This Thread
How to use query strings with CodeIgniter and stay alive to talk about it - by El Forum - 03-21-2008, 01:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB