Cast all values to string before using as an id

The google analytics API can return values which aren't strings,
for example ga:date comes out of the API as a datetime, which
was causing this to exit with an error in the string join.