Scenario
I'm having trouble adding google analytics to a Unity3d interactive of mine. I've used GA several times in other languages and I am not expecting any issues once I can get going but the trouble is that I'm not able to get going.
What I've Tried
$ dotnet add package Google.Apis.Analytics.v3 --version 1.36.1.1268
Found more than one project in /Users/Jackson/Unity Projects/Soccer Goalie Proto/`. Please specify which one to use.
$ ls -la
drwxr-xr-x 18 Jackson staff 576 Dec 27 20:55 .
drwxr-xr-x 27 Jackson staff 864 Dec 27 11:11 ..
-rw-r--r--@ 1 Jackson staff 6148 Aug 16 10:54 .DS_Store
-rw-r--r-- 1 Jackson staff 453 Jun 5 2018 .collabignore
drwxr-xr-x 16 Jackson staff 512 Dec 19 12:55 .git
-rw-r--r-- 1 Jackson staff 438 Dec 19 12:55 .gitignore
drwxr-xr-x 3 Jackson staff 96 Aug 22 14:07 .vs
-rw-r--r-- 1 Jackson staff 26291 Dec 19 12:59 Assembly-CSharp-Editor-firstpass.csproj
-rw-r--r-- 1 Jackson staff 26692 Dec 19 12:59 Assembly-CSharp-Editor.csproj
-rw-r--r-- 1 Jackson staff 32252 Dec 19 12:59 Assembly-CSharp-firstpass.csproj
-rw-r--r-- 1 Jackson staff 35337 Dec 19 12:59 Assembly-CSharp.csproj
drwxr-xr-x 45 Jackson staff 1440 Dec 19 17:49 Assets
drwxr-xr-x 28 Jackson staff 896 Dec 20 12:32 Library
drwxr-xr-x 3 Jackson staff 96 Aug 16 10:14 Packages
drwxr-xr-x 19 Jackson staff 608 Dec 19 12:55 ProjectSettings
-rw-r--r-- 1 Jackson staff 2421 Dec 19 12:56 Soccer Goalie Proto.sln
-rw-r--r--@ 1 Jackson staff 624884 Dec 27 20:47 google.apis.analytics.v3.1.36.1.1268.nupkg
I attempted adding Assembly-CSharp.csproj
to a number of places in the command with no luck. I even downloaded the .nupkg and used nuget install
but I couldn't get that to work either.
Question
What do I need to do to get this package installed to my c# project?
Note
I've already tried the google analytics plugin for Unity3d but it seems to only work for android / ios (I'm trying to get analytics for an EXE build)