本文介绍了Cordova中的Google代码管理工具外挂程式问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为Cordova使用GTM插件 - 。我面临的iOS版本的cordova应用程序的问题。

Am trying to use GTM plugin for Cordova - https://github.com/kraihn/cordova-plugin-tag-manager. Am facing issues on the iOS version of my cordova app.

我收到警告,找不到二进制资源文件和plist文件。

I get warnings that the binary resource file and plist file are not found.

GoogleTagManager warning: Cannot find binary resource file 'GTM-XXXXXX'.
GoogleTagManager warning: Cannot find resource file 'GTM-XXXXXX.plist'
GoogleTagManager verbose: loading default container from GTM-XXXXXX.json

我从GTM帐户 - Admin下载了json文件,导出为实时版本。我没有看到从操作标签下载的选项(如某些帖子中所列),当我使用我的GTM定位器检查时,她通知说,最新版本不再提供此选项。这是旧的gtm产品中的一个选项。更新版本只有导出选项。

I downloaded the json file from GTM account - Admin, export for the live version. I don't see an option for download from Actions tab(as listed in some of the posts) and when I checked with my GTM anchor, she informed that, it is no longer available with latest Version. It was an option in the old gtm product. Newer Version only has export option.

使用json,我在解析时遇到错误。

And with the json, I get error on parsing it.

GoogleTagManager warning: Error reading resource from json file: Type __NSCFArray is not supported
GoogleTagManager error: No default container found; creating an empty container.

GoogleTagManager verbose: GoogleAnalytics 3.13 -[GAIRequestBuilder requestGetUrl:payload:] (GAIRequestBuilder.m:195): building URLRequest for https://ssl.google-analytics.com/collect
GoogleTagManager info: GoogleAnalytics 3.13 -[GAIBatchingDispatcher didSendHits:response:data:error:] (GAIBatchingDispatcher.m:226): Hit(s) dispatched: HTTP status -1

我看到其中一个解决方案来增加库版本,但我仍然遇到相同的问题,即使libGooglea的版本的libGoogleAnalyticsServices.a到3.15。

I saw one of the solutions to bump up library version and but I still run into the same problem even after bumping up version of libGoogleAnalyticsServices.a to 3.15.

有没有办法让插件为最新版本的GTM工作?有没有办法重新创建二进制容器& plist以手动方式?

Is there a way to get the plugin working for the latest version of GTM? Is there a way to recreate the binary container & plist in a manual way?

你能帮我一下吗?

推荐答案


  1. 前往GTM帐户

  2. 打开版本标签。

  3. 点击导出按钮而不是下载按钮。

  4. 将其导入您的iOS / Android项目。

  1. Go to GTM Account
  2. Open Versions tab.
  3. Click to export button instead of download button.
  4. Import this to your iOS/Android Project.

这篇关于Cordova中的Google代码管理工具外挂程式问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 19:57