Set persistent values

To set values that will be sent with every event for a web page, update the config for your property with the values that you want to send.

For example, in some cases you might need to customize how the page title is sent. To do this, add the page_title parameter to your config command.

gtag('config', 'MEASUREMENT_ID', {'page_title': 'Travel Destinations'});

You can set multiple parameters in a config command. For example, this code sets the page_title and currency parameters at the same time.

gtag('config', 'MEASUREMENT_ID', {
  'page_title': 'Travel Destinations',
  'currency': 'USD'
});

If you configure multiple properties on a single page, it is more efficient to use the set command so that all measurement IDs inherit the desired properties.

gtag('set', {
  'page_title': 'Travel Destinations',
  'currency': 'USD'
});
gtag('config', 'MEASUREMENT_ID_1');
gtag('config', 'MEASUREMENT_ID_2');
gtag('config', 'MEASUREMENT_ID_3');