# Variable setDimension`Const`

setDimension: (dimensionName: CustomDimensionNames, value: string) => void = setUserDimension

Sets a user dimension

#### Type Declaration

- - (dimensionName: CustomDimensionNames, value: string): void

  - Sets or a user dimension

    #### Parameters

    - dimensionName: CustomDimensionNames
    - value: string

    #### Returns void

#### Deprecated

Use setUserDimension instead

- Defined in jslib/src/lib/GoogleAnalytics/ga.ts:315