The config command

The config command enables you to add additional configuration information to targets. These typically represent product specific configuration, such as the tracker ID of a Google Analytics property.

The syntax of the config command follows:

gtag('config', 'GA_TRACKING_ID', values);

where:

  • GA_TRACKING_ID is the tracking ID of a Google Analytics property.

  • values is a JavaScript object containing key-value pairs.

For example:

gtag('config', 'GA_TRACKING_ID', {'currency': 'USD', 'country': 'US'});