Basically the dimensions are key value pairs, so in the proposed implementation just adding them to the query params.
There are two ways to add the dimensions, either when an event is tracked (and dimensions is an optional argument) via the updated trackEvent, or via a new function trackDimensions
What
Implementation considerations
trackEvent
, or via a new functiontrackDimensions
Documentation