Google Analytics validate tracking for demographics

Does anyone have experience with validating Google Analytics for demographic tracking purposes? Google gives me instructions on how to do this for Android and iOS native apps, but not for hybrid apps. If it makes a difference, we’re using Dan Wilson’s Google Analytics plugin. Thanks.

Link? Maybe this can be adapted…

https://support.google.com/analytics/answer/2444872?hl=en&utm_id=ad#app

Ok, so the plugin you’re using (this one? https://github.com/danwilson/google-analytics-plugin) doesn’t support this out of the box.

You could just fork the repo on Github and add the last line of the code example from that Google support page you posted manually.

For Android you could probably put it here after this line https://github.com/danwilson/google-analytics-plugin/blob/master/android/UniversalAnalyticsPlugin.java#L119 and for iOS … I have no idea. Sorry, I hate Obj-C.

Better would be to write a function to enable the demographics stuff, not just force it in the existing code, and then contribute that changes back to the original project via a pull request.

If you can’t figure it out yourself, write an issue on the plugin github. Maybe someone else has the same problem and will get around to implementing it.

Super helpful, thanks! I’ll look into those options.