简体   繁体   English

适用于Xamarin iOS的Google跟踪代码管理器

[英]Google Tag Manager for Xamarin iOS

I've followed the quick start guide here for setting up Google Tag Manager in my Xamarin.iOS app, but I am receiving an unexpected error when the container initializes: 我已经按照此处的快速入门指南 Xamarin.iOS应用中设置Google跟踪代码管理器,但是在容器初始化时收到意外错误:

GoogleTagManager warning: Error when loading resources from url: https://www.googletagmanager.com/r?id=GTM-XXXXX&v=iXXXXXXXXX status code = 403 GoogleTagManager警告:从网址加载资源时出错: https//www.googletagmanager.com/r? id = GTM-XXXXX &v = iXXXXXXXXX状态码= 403

I've tried two different valid container ids and they both fail with this error. 我尝试了两个不同的有效容器ID,但它们均因此错误而失败。 Providing a random container id presents a different error message. 提供随机容器ID会显示不同的错误消息。

This error is caused by using a "Firebase (iOS)" container with the Google Tag Manager Xamarin component. 此错误是由Google跟踪代码管理器Xamarin组件使用“ Firebase(iOS)”容器引起的。 At the time of this writing, the GTM component for Xamarin is only compatible with "Legacy iOS" containers. 在撰写本文时,用于Xamarin的GTM组件仅与“旧版iOS”容器兼容。 After switching to a Legacy iOS container, this error is no longer presented. 切换到旧版iOS容器后,将不再显示此错误。

旧版iOS容器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM