mattp
unread,Jan 18, 2010, 10:03:41 AM1/18/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-analytics-api - GA Data Export API
Hi, the samples for setting custom variables (_setCustomVar) show
values being set including spaces, however the data shows up escaped,
both in the web version of google analytics and via the api. I can't
see any guidelines about how data should be sent.
I tried escaping the strings before sending them, but google seems to
escape the already escaped string!
Example:
I set the following
pageTracker._setCustomVar(1,'Username','Joe Bloggs',1);
And this is what is returned in the stats: Joe%20Bloggs
Surley the API supports sending variable values with spaces in? Even
the samples have spaces in. Now I could unescape the values returned
from the API, but this wouldnt work when using the web version!
Has anyone else overcome this problem?
Thanks