aptos-labs / aptos-wallet-adapter

A monorepo modular wallet adapter for Aptos applications
https://aptos-labs.github.io/aptos-wallet-adapter/
Apache License 2.0
88 stars 97 forks source link

Add a boolean flag to disable the adapter telemetry tool #404

Closed 0xmaayan closed 1 month ago

0xmaayan commented 1 month ago

The adapter uses GA4 to record anonymous adapter events. This PR adds a boolean flag that allows the dapp to disable this feature.

Note: GA4 injects cookies with a 1-year expiration. If cookies were previously injected and GA4 was enabled on the adapter side, you will need to manually or programmatically clear the user's browser cookies.

<AptosWalletAdapterProvider
  plugins={wallets}
  disableTelemetry={true}
  ...
>
  <App />
</AptosWalletAdapterProvider>;