Analytics configuration
Set up Google Analytics 4 to track and analyse behavior of your site's visitors.
Configuration structure
Analytics configuration is defined using the analytics
field in your config.json
:
{
"analytics": "G-XXXXXXXXXX"
}
Properties
analytics
: Your Google Analytics 4 Measurement ID (starts with "G-")
Data stream setup
Before configuring analytics, you need a Google Analytics 4 data stream:
- Go to Google Analytics Admin > Data Streams
- Click "Add Stream" > "Web"
- Configure the stream:
- URL: Your Flowershow site URL (e.g.,
my.flowershow.app/@johndoe/abc
) - Stream name: A descriptive name (e.g., "My Flowershow Site")
- URL: Your Flowershow site URL (e.g.,
Your Measurement ID will be displayed in the stream details after creation.
For detailed setup instructions and testing procedures, see our analytics setup guide.