Google analytics#

Google Analytics data integration for fetching properties and syncing metrics.

Provider required

All hooks require a BrandwaveProvider ancestor in your component tree. See the React Hooks overview for setup instructions.

useListGoogleAnalyticsProperties#

List available Google Analytics properties for the connected account.

Owner only
typescript
import { useListGoogleAnalyticsProperties } from '@brandwave/react';

const { data, isLoading } = useListGoogleAnalyticsProperties({
  organizationId: 'org_123',
});

Parameters#

NameTypeRequiredDescription
organizationIdstring (UUID)RequiredOrganization identifier.

Response#

Returns { data } with the result.

Underlying SDK method: bw.google.listProperties(params)