简体   繁体   中英

android sdk google analytics track events with metadata

in the link: https://developers.google.com/analytics/devguides/collection/android/v4/events

google explains how to send events. However I didn't see any mention of a way to send events with extra pairs. for example if I want to send an event of uploading images, and I would like to also send something like <"number_of_images_uploaded", 4> <"location_of_upload", "Italy"> <"was_registered_user", false>

etc..

is there a way to do this?

EDIT: Apparently you can do it with custom dimensions

https://developers.google.com/analytics/devguides/collection/android/v4/customdimsmets

ORIGINAL ANSWER

Can't do it. The link you provided shows that you can only send events with categories, actions, labels, and values.

The only way to store this meta data in combination with google analytics is to do it yourself.

eg

  1. Send an HTTP request to your own server to create a record (or records) in a database with the meta information and return an identifier in the response.
  2. When you receive a response from the server, send the google analytics event information to google along with your event ID that you received from your server.

This allows you to use google analytics for general user-interaction information and also allows you to link specific events in google analytics to their metadata on your server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM