The easiest way to send custom dimension data with your hits is to set their values on the tracker object. Since all hits sent from a tracker include all the key/value data it's currently storing, setting custom dimensions on the tracker will ensure those values get sent with all future hits.

More from Chris Coyier

View all quotes →