Is it possible to track click throughs from iPhone Smart Banner

后端 未结 4 1047
無奈伤痛
無奈伤痛 2021-01-30 22:52

We want to be able to track, using Google Analytics, any click throughs from the iPhone Smart Banner that we have added to our website.

The meta code used to add the sma

4条回答
  •  故里飘歌
    2021-01-30 23:36

    No, unfortunately.

    If you link the iOS simulator (you can also link your actual device) to the safari webkit inspector you'll notice that the full HTML body exists outside of the banner displayed, meaning that you have no scope to reach into to attach tracking events to.

    Web Inspector Screenshot

    Note that in this screenshot the mouse is hovering over the element, thus you see it highlighted in the simulator to the left.

    FYI, for details on how to connect your desktop inspector to a mobile environment, see here (spoiler, it's AWESOMELY useful): http://webdesign.tutsplus.com/tutorials/workflow-tutorials/quick-tip-using-web-inspector-to-debug-mobile-safari/

提交回复
热议问题