Game Services Analytics adds 5Mb to Android build

Hi, recently I migrated from deprecated Unity Analytics to brand new Game Services Analytics.
I noticed this upgrade added 5Mb to my release Android build, which is quite a lot for the Analytics.

After migrating my manifest.json gets1 new item:
“com.unity.services.analytics”: “4.1.0”,

And manifet-lock.json get several new items:
“com.unity.nuget.newtonsoft-json”: {
“version”: “3.0.2”,
“depth”: 2,
“source”: “registry”,
“dependencies”: {},
“url”: “https://packages.unity.com
},
“com.unity.services.analytics”: {
“version”: “4.1.0”,
“depth”: 0,
“source”: “registry”,
“dependencies”: {
“com.unity.ugui”: “1.0.0”,
“com.unity.services.core”: “1.4.0”
},
“url”: “https://packages.unity.com
},
“com.unity.services.core”: {
“version”: “1.4.0”,
“depth”: 1,
“source”: “registry”,
“dependencies”: {
“com.unity.modules.unitywebrequest”: “1.0.0”,
“com.unity.nuget.newtonsoft-json”: “3.0.2”,
“com.unity.modules.androidjni”: “1.0.0”
},
“url”: “https://packages.unity.com
},

When I compared Build Reports from both builds (old and new), I found the difference in next types of items:

Scripts 2.5 mb / 3.4 mb
Included DLLs 9.5 mb / 13.4 mb
Total User Assets 23.0 mb / 27.9 mb
Complete build size 144.4 mb / 171.6 mb

I use Unity 2020.3.38f1with Managed Stripping Level: High
Any thoughts, how to reduce this size?

There’s quite a bit of discussion on this already.
CCD can help reduce build sizes however further optimising your project further will help in reducing the build size.

The project is well optimised - whole game apk was 30 Mb. After switching to new Analytics from old one - the size is 35 Mb - nothing else was added. I can assume that new Unity Analytics is 5 Mb bigger than old one, which is quite a lot. I’m not planning to integrate Cloud Content Delivery just to be able to use modern Unity Analytics.

1 Like