预览&更新GTM Container |的版本iOS版 [英] Preview & Update version of GTM Container | iOS

查看:214
本文介绍了预览&更新GTM Container |的版本iOS版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iOS应用中整合了Google标签管理器。我坚持了一些观点:


  1. 如何预览版本才能使其生动起来。我遵循

    当您将模拟器设置为构建目标(2)时,单击播放按钮(1) 。

  2. 等到模拟器启动您的应用程序。一旦完成,按下一次键回到iphone主页:


    cmd + shift + H


    按两下按钮,您就可以使用鼠标将应用程序从底部移到顶部,从而杀死应用程序。


  3. 在模拟器上打开safari,并粘贴您在GTM的 Share预览弹出窗口中复制的网址:

    如果所有内容都已正确设置,系统会询问您是否要在应用中打开它,只需点击 ,你完成了!

  4. 第二个问题,如果我理解得当,唯一的事实你创建一个没有发布的版本允许你用创建的链接预览它。 GTM SDK已经被设计成以这种方式工作,你使用的链接可能会强制刷新容器本身到最后一个版本,即使它不是活的。


    ol>

    如果我还记得,GTM现在使用Firebase作为DataLayer并自动发送一些事件,比如applicationStart,这可能会触发刷新容器的方法。我不是100%肯定的,因为我习惯了以前的GTM版本,现在我不再真正在GTM项目上工作了。



    无论如何,我希望它可以帮助你。祝你好运GTM:)

    i've integrated google tag manager in my iOS app. I'm stuck at some points:

    1. How to preview the version before making it live.I followed this link & added the urls in plist file. How to do the following step mentioned on this link

      Stop your application and open the preview URL on an emulator or physical device to preview the draft container in your application.

    2. It's said that we don't have to submit a new binary & GTM version is updated in app automatically. How? I've not written any code to refresh the container.

    Thanks,

    解决方案

    I just tried to use the container preview as you asked me to ;) It seems that it was working for me, so I'm gonna try to explain the step for you to follow in order to make it work.

    1. The step you seem to be stuck at is pretty easy, and I achieved it on the simulator :

      1. Launch your app on the simulator by clicking on the play button on the top left of XCode :

        Click on the play button (1) once you've set the simulator as the build target (2).

      2. Wait until the simulator launches your app. Once it is done, press the following keys once to go back to the iphone home page :

        cmd+shift+H

        Pressing it two times will allow you to kill the app on the background by swipping your app from bottom to top with your mouse.

      3. Open safari on the emulator, and paste the url you copied on the Share preview popup of GTM :

        If everything has been correctly set up, it will ask you if you want to open it in your app, just click yes, and you're done !

    2. For your second question, if I understand well, the only fact that you create a version without publishing it allows you to preview it with the link created. The GTM SDK has been designed to work this way, the link you use will probably force the refresh the container by itself to the last version, even if it is not live.

    If I remember well, GTM now uses Firebase as DataLayer and send some events automatically, like the applicationStart, which may trigger a method to refresh the container. I'm not 100% sure about it, since I'm more used to the previous GTM version and I don't really work on a GTM project anymore now.

    Anyway, I hope it helps you. Good luck with GTM :)

    这篇关于预览&更新GTM Container |的版本iOS版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆