Q - For analytics if you disable automatic collection by default and enable it programmatically at run-time, will it still collect automatic app install data and app launch events? #7706
TowhidKashem
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the docs it's recommended that we set options like these:
to
false
infirebase.json
, which essentially prevents analytics from sending any outbound requests on app start. Then if we get the user's consent to track them we can programmatically enable analytics in the app like so:await firebase.analytics().setAnalyticsCollectionEnabled(true);
we can also enable individual config values like:
This let's us be GDPR compliant, since we only track things if the user gives consent.
My question is, if we initialize analytics this way, is it still able to detect events like App Launch or able to do attribution like being able to tell if a user has installed the app after clicking on a google ad that we used to advertise our app?
These events seem to occur prior to the JS runtime being initialized, and sine we programmatically enable analytics from there I have a feeling we sacrifice being able to track these things if we don't initialize everything natively via the firebase.json config. Is this the case?
Beta Was this translation helpful? Give feedback.
All reactions