Tracking a variable using Google Analytics

I am extremely new to Google Analytics on Android.

I searched a bit for this, but I'm not sure I got it right, but it says:

I want Google Analytics to track a specific variable in my application.

So, for example, the variable a has a separate value for each user of the application, is it possible for me to display the average value of the variable in the Google Analytics toolbar?

As I understand it, we can do this with custom dimensions and metrics.

I could not find a textbook for him.

I would be grateful if someone could help me with the tutorial or point me to something other than the developer pages from Google.

Thank!

+4
source share
2 answers

UPDATE

Firebase Analytics is now the recommended solution for Google Analytics for mobile applications. Its user is event-oriented and has unlimited reporting of application events, cross-network attribution and postback.


Old answer

You can use GA event tracking

Note this guide and the check speed limits before attempting to do so.

Events are a useful way to collect data about user interactions with the interactive components of your application, such as button clicks or using a specific item in the game.

, :

Field Name Type Required Description Category String Yes The event category Action String Yes The event action Label String No The event label Value Long No The event value

Google Analytics, HitBuilders.EventBuilder , :

// Get tracker.
Tracker t = ((AnalyticsSampleApp) getActivity().getApplication()).getTracker(
    TrackerName.APP_TRACKER);
// Build and send an Event.
tracker.send(new HitBuilders.EventBuilder()
    .setCategory("Achievement")
    .setAction("Earned")
    .setLabel("5 Dragons Rescued")
    .setValue(1)
    .build());

GA - : enter image description here

enter image description here

avg

enter image description here


//, Google Analytics.

. ( ), :

 // Get tracker.
 Tracker t = ((AnalyticsSampleApp) getActivity().getApplication()).getTracker(
    TrackerName.APP_TRACKER);
 t.setScreenName("Home Screen");

 // Send the custom dimension value with a screen view.
 // Note that the value only needs to be sent once.
 t.send(new HitBuilders.ScreenViewBuilder()
    .setCustomMetric(1, 5)
    .build()
 );
0

Google Analytics .

, . , , . , . ; AB- "" "". , '08: 15 ' , ( , Google , PII rick https://developers.google.com/analytics/solutions/crm-integration#user_id).

, . , . , , .

, . , , . , , , . , ; , - , ! , , , .

Simo Ahava , . http://www.simoahava.com/analytics/track-content-engagement-part-2/

, Google, . , , Google https://support.google.com/analytics/answer/2709828?hl=en

0

Source: https://habr.com/ru/post/1656027/


All Articles