Skip to content

Commit

Permalink
Disable analytics on non-mobile platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
skibitsky committed Aug 30, 2024
1 parent 2f48326 commit ccd1309
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Newtonsoft.Json;
using UnityEngine;
using WalletConnect.Web3Modal.Http;
using WalletConnectUnity.Core;

namespace WalletConnect.Web3Modal
{
Expand Down Expand Up @@ -54,6 +53,10 @@ private async Task LoadRemoteAnalyticsConfig(ApiController apiController)

public async void SendEvent(Event @event)
{
#if !UNITY_IOS && !UNITY_ANDROID
// Temporary disable analytics for non-mobile platforms
return;
#endif
try
{
if (_state == AnalyticsState.Disabled)
Expand Down

0 comments on commit ccd1309

Please sign in to comment.