Fix issue #220: The id is object
This commit is contained in:
@ -1,8 +1,10 @@
|
|||||||
---
|
---
|
||||||
import { GoogleAnalytics } from '@astrolib/analytics';
|
import { GoogleAnalytics } from '@astrolib/analytics';
|
||||||
import { ANALYTICS_CONFIG } from "~/utils/config";
|
import { ANALYTICS_CONFIG } from '~/utils/config';
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<!-- Google Analytics -->
|
{
|
||||||
{ANALYTICS_CONFIG?.vendors?.googleAnalytics?.isEnabled && <GoogleAnalytics id={String(ANALYTICS_CONFIG.vendors.googleAnalytics)} partytown={true} />}
|
ANALYTICS_CONFIG?.vendors?.googleAnalytics?.isEnabled && ANALYTICS_CONFIG?.vendors?.googleAnalytics?.id ? (
|
||||||
|
<GoogleAnalytics id={String(ANALYTICS_CONFIG.vendors.googleAnalytics.id)} partytown={true} />
|
||||||
|
) : null
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user