AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
4.3K members online now
4.3K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Add Google Analytics to an Android SDK (not to an Android app)

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello there

 

I'm a founder at Gamezop. We are a mobile gaming company, with a focus on HTML5 games.

 

We have an Android SDK that we provide to our partners. It allows them to run our games within their app and provides a couple of other features around offline access.

 

We want to add an Analytics SDK to our SDK, so we can understand user behavior across all apps that run our SDK. Google Analytics set-up asks for a package name. In our case, we dont have any single package name since ours is an SDK and not an app. How do we go about setting up GA for our SDK?

 

Thanks

Yashash

1 Expert replyverified_user

Add Google Analytics to an Android SDK (not to an Android app)

Rising Star
# 2
Rising Star

Have you looked at Google Tag Manager https://developers.google.com/tag-manager/  and Firebase (https://firebase.google.com) ??

_________________________________________________________________________
Director of Marketing | Nehmedia | Partner Profile

Add Google Analytics to an Android SDK (not to an Android app)

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Thanks Phillip. Tag Manager (on Android) needs Firebase to work. Firebase, in turn, while setting up asks for an app package name. Ours is a library that goes into various apps. Hence, we cant provide a single package name., i.e. can't set up Firebase for our library.

 

Please correct me if I am wrong or missing something here.

Add Google Analytics to an Android SDK (not to an Android app)

Rising Star
# 4
Rising Star

GTM does not need Firebase to work - you can still use the legacy SDKs.

You could go VERY rudimentary and use the Google Analytics Measurement Protocol - of course, anyone using your library will still need to know its there and disclose its use in their own privacy disclosure.

 

Of course, any free GA solution has a limit of 10 million hits per month per property -- above that, you need to move to $$ GA 360.  

 

Have you considered hosting a non-Google solution - for example, the open-source Piwik? While you still have the disclosure requirement, you would be your data without the risk of bumping up against data collection limits.  

 

_________________________________________________________________________
Director of Marketing | Nehmedia | Partner Profile