I am trying to be GDPR compliant and am using the sample code from docs.
import { GoogleAnalytics, ga } from '@beyonk/svelte-google-analytics'; <GoogleAnalytics bind:this={ga} properties={'ID'} enabled={false} />
While getting the following errors:
Cannot bind to a variable which is not writablesvelte(invalid-binding)
Cannot assign to 'ga' because it is an import
I am trying to be GDPR compliant and am using the sample code from docs.
import { GoogleAnalytics, ga } from '@beyonk/svelte-google-analytics';
<GoogleAnalytics bind:this={ga} properties={'ID'} enabled={false} />
While getting the following errors: Cannot bind to a variable which is not writablesvelte(invalid-binding) Cannot assign to 'ga' because it is an import
Is there something else that needs to be done?