2

The web application I built throws errors when presented with unknown query string variables, so I'd like to manually set the tracking values manually, much like:

http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55577

But by setting the values directly, not the variables to look for the values in.

Is this possible?

2

Perhaps you could play around with other options such as _setAllowAnchor() and change your URLs to use hashes (for GA) and query vars for your web app. Although, to be honest, probably not the best idea in the world to throw errors if you have unknown variables query strings, it should just ignore them instead.

| improve this answer | |
0

No, it is not possible. In order for Google Adsense to recognize the data, it needs to be in the URL as a GET variable, otherwise it doesn't know where to look.

| improve this answer | |
0

You can pass custom values onto the GA tracking using

_gaq.push(['_setCampSourceKey', 'source']);

and the equivalent for medium, campaign, etc.

http://code.google.com/apis/analytics/docs/gaJS/gaJSApiCampaignTracking.html#_gat.GA_Tracker_._setCampSourceKey

| improve this answer | |
-1

Check out this: http://blog.intlock.com/_setcampvalues-for-google-analytics/

Here the utmz cookie is faked with Javascript, hence you can problematically specify the source, medium, ...

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy