[英]Will Google Tag Manager work on devices without GMS?
will Google Tag Manager work on devices without Google Mobile Service or Firebase Analytics? Google 跟踪代码管理器是否可以在没有 Google 移动服务或 Firebase Analytics 的设备上运行?
For example: Huawei is on a phone that does not have Google services and only Huawei services are running.例如:华为在手机上没有谷歌服务,只有华为服务在运行。
As far as I know, Google Tag Manager is dependent on the Google Play service, meaning it won't work on devices without Google Mobile Service or Firebase Analytics.据我所知,Google Tag Manager 依赖于 Google Play 服务,这意味着它无法在没有 Google Mobile Service 或 Firebase Analytics 的设备上运行。
Huawei also provides the Dynamic Tag Manager service , which helps you dynamically and flexibly manage the tracking code of applications on your mobile phone, tablet, or web platform, and monitor marketing and operation activity data on demand.华为还提供动态标签管理服务,帮助您动态灵活管理手机、平板或web平台上的应用跟踪码,按需监控营销和运营活动数据。 You can access this service on your Huawei phone.
您可以在华为手机上访问此服务。
For details,check docs .有关详细信息,请查看文档。 I hope it could help.
我希望它可以帮助。
Huawei phone without Google Mobile Service will not be able to use Google Tag Manager, However, we can use very similar coding to achieve the same functionality with Huawei Dynamic Tags.没有谷歌移动服务的华为手机将无法使用谷歌标签管理器,但是,我们可以使用非常相似的编码来实现与华为动态标签相同的功能。
We can build apk with slightly different code and library, for example:我们可以使用稍微不同的代码和库来构建 apk,例如:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// Obtain the HiAnalyticsInstance instance.
HiAnalyticsInstance instance = HiAnalytics.getInstance(this);
}
And adding tags with:
// Customize an event to report.
// Set the custom event name to Purchase.
String eventName = "Purchase";
// Customize event parameters.
Bundle bundle = new Bundle();
// Set a value of the Double type.
bundle.putDouble("price", 9.99);
// Set a value of the Long type.
bundle.putLong("quantity", 100L);
// Set a value of the String type.
bundle.putString("currency", "CNY");
// Report events.
if (instance != null) {
instance.onEvent(eventName, bundle);
}
As we can notice that this is very similar to app coding.我们可以注意到,这与应用程序编码非常相似。 And fully support analytic tracking audience.
并全面支持分析跟踪受众。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.