Set up a site
configure_siteSet up GA4 for a domain the account does not measure yet: creates the property and its web data stream and returns the gtag.js snippet to paste into the site's . Re-running for a domain that already has a stream returns that tag instead of creating a second property. This is the one tool that writes to the Analytics account — and it still never changes which property is the saved default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | The domain to set up, e.g. example.com. A pasted URL is trimmed to its host; ports, paths and emails are refused. | |
| account | No | The GA4 account to create the property under, by numeric id or display name. Only needed when the login can see more than one. | |
| currency | No | ISO 4217 reporting currency for the new property. | USD |
| timezone | No | IANA time zone for the new property, e.g. Europe/London. Otherwise the machine's own is used, and the answer says when it fell back to UTC. |