Google Analytics Events for Android Don't Include Custom Dimensions

Google Analytics Events for Android Don't Include Custom Dimensions
0

We successfully set up Google Analytics via SDKBox for both Android and iOS, but for Android, our custom dimensions are not included as parameters in the event logs. As a result, we cannot filter these events by our custom dimensions.

We’re using:

  • Cocos Creator 2.2.0
  • SDK Plugins v2.6.0.1, Javascript/CocosCreator version

We set the custom dimension like this when the game loads:
sdkbox.PluginGoogleAnalytics.setDimension(7, "Android");

And log events like this afterwards:
sdkbox.PluginGoogleAnalytics.logEvent(trackValue.eventCategory, trackValue.eventAction, trackValue.eventLabel, trackValue.eventValue);

When debugging Google Analytics, we can see Hit delivery requested: ... cd7=Android when the dimension is set. For an event, the hit delivery requested includes values for ea, ec, el, ev, but does not include cd7.

According to this page:

“Unlike other types of data, custom dimensions and metrics are sent to Analytics as parameters attached to other hits, like pageviews, events, or ecommerce transactions. As such, custom dimension or metric values need to be set before a tracking call is made in order for that value to be sent to Analytics.”

Indeed, when I look at the network calls made for Google Analytics on our web version, every event tracking includes the custom dimension values as well. In addition, the dimension values, set in the exact same way as Android, appear for all iOS events.

Does anyone know how we can include custom dimensions for event tracking in Android? Hopefully while still using SDKBox? Thanks!

so, you can get GoogleAnalytics default event.

i review the related code, actually, sdkbox handle default event and custom event as same.

maybe reason is not at source code.