简体   繁体   English

Google 跟踪代码管理器能否在没有 GMS 的设备上运行?

[英]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.

相关问题 Google跟踪代码管理器(Firebase)预览链接iOS不起作用 - 深层链接不包含有效的必需参数 - Google Tag Manager (Firebase) Preview link iOS does not work - Deep Link does not contain valid required params Firebase分析+ Google标记管理器+ Google Analytics - Analytics for Firebase + Google tag manager + Google Analytics 事件标签 - Google Tag Manager + Firebase + Google Analytics - Event Tag - Google Tag Manager + Firebase + Google Analytics Analytics for Firebase-使用Google跟踪代码管理器的用户属性 - Analytics for Firebase - User Properties with Google Tag Manager 谷歌标签管理器与 Firebase 崩溃 iOS - Google Tag Manager with Firebase crash iOS 使用 firebase 的 Google 标签管理器服务器端标签 - Google tag manager server side tagging with firebase 如何在iOS中获取Google跟踪代码管理器的回调? - How to get Callback for Google Tag Manager in ios? 在Android Project中将Google跟踪代码管理器与Firebase集成 - Integrating Google Tag Manager with Firebase in Android Project Google跟踪代码管理器和Firebase Analytics标记在Android设备上不起作用 - Google Tag Manager and Firebase Analytics tag not working on android device 将Google Analytics与FireBase + Google跟踪代码管理器Android SDK配合使用 - Using Google Analytics with FireBase + Google Tag Manager Android SDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM