Skip to content

Commit

Permalink
fix(analytics): adding in a way to get mac analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
bassrock committed Jan 22, 2024
1 parent 4df7c1f commit d835d2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Pocket.xcodeproj/xcshareddata/xcschemes/Pocket (iOS).xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
</CommandLineArgument>
<CommandLineArgument
argument = "disableSnowplow"
isEnabled = "YES">
isEnabled = "NO">
</CommandLineArgument>
</CommandLineArguments>
<EnvironmentVariables>
Expand All @@ -363,7 +363,7 @@
<EnvironmentVariable
key = "SNOWPLOW_ENDPOINT"
value = "http://127.0.0.1:9090"
isEnabled = "NO">
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
</LaunchAction>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public class PocketSnowplowTracker: SnowplowTracker {
.scale
]

if ProcessInfo.processInfo.isiOSAppOnMac {
trackerConfiguration.devicePlatform = .desktop
trackerConfiguration.appId = "pocket-mac-next"
}

let optionalTracker = Snowplow.createTracker(
namespace: appID,
network: networkConfiguration,
Expand Down

0 comments on commit d835d2b

Please sign in to comment.