Recording query strings into ClickTale

=Overview=

A web page that is recorded into your ClickTale account is saved under a serialized file name which is unique to each pageview. For example, if the original URL of a web page is: http://www.website.com/Homepage.html , inside ClickTale, the URL for the page will become something like: http://clicktale.com/12345678.html .

If certain elements on the web page rely on any Query-String data to be present in the page URL, these elements might not function properly inside ClickTale.

One example might be a page that uses a URL string parameter in an AJAX script that fetches specific content based on the URL parameter. Since the URL parameters are lost when saving to the ClickTale DB, the playback will not fetch the content correctly using the AJAX script.

The following solution passes the query string (after the ? character) into the DB, using the ClickTaleField API.

=The code=

Recording the Query-String into ClickTale is easy. All you need to do is add the following snippet below our tracking code: