How to use the Advertising ID in the Google Measurement Protocol

可紊 提交于 2019-12-01 11:01:53

If anyone is looking for this answer the parameter is &adid for android (&idfa for iOS). You also apparently have to send the store ID in the &aiid field (ex : com.android.vending for google play) and the app ID in the &aid field.

So basically in an android app hit you have &adid=abcde-fghij-klmno-pqrst-uvwxy&aiid=com.android.vending&aid=com.yourapp.android

Still testing to get the demographic report working with server side requests.

It appears that the name of the parameter is "adid" for Android (and not "aaid"), as demonstrated by the screenshot below (request made by the GA SDK in a demo app).

It also appears (you see it on the screenshot) that the "ate" parameter must be sent with the advertising ID (ate=1 if the ads targeting is ON ; ate=0 if ads targeting in OFF) for the advertising ID to be taken into consideration by Google Analytics.

This implementation was tested and I can confirm that it works.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!