We are developing google analytics for an android app, we have seen that you can add custom dimension/metrics to an event by doing:
t.send(new HitBuilders.ScreenViewBuilder()
.setCustomDimension(1, "premiumUser")
.build()
);
But I understand that that custom dimension will be sent just on that event. Is there a way to set it to tracker so it will be automatically send to all events/screens? For instance, something like:
t.set("cd<1>", "premiumUser");
Another question, do we have to add: t.setScreenName(null) in every onDestroy of a fragment/activity if we are sending the setScreenName on the onCreate method?
Thanks in advance