Google AdWords:删除通过跟踪转化代码添加的iframe [英] Google AdWords: remove iframe added by tracking conversion code

查看:83
本文介绍了Google AdWords:删除通过跟踪转化代码添加的iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Google AdWords添加到我的网站,但是我应该添加的脚本会在dom中创建一个iframe.该iframe可见,并且向下移动了我所有页面的13px(高度).

I want to add Google AdWords to my site but the script I'm supposed to add creates an iframe in the dom. This iframe is visible and moves down 13px (its height) all my page.

有什么办法可以避免这种情况?如果没有,我可以在不影响Google AdWords功能的情况下将其隐藏吗? (这是一个空的iframe).

Is there any way to avoid this? If not, can I hide it without affecting Google AdWords functionality? (It is an empty iframe).

推荐答案

有一个简单的修复程序,不会影响代码段的功能.我做到了这一点,没有任何不良影响.只需将脚本放置在如下所示的隐藏div中,即可完成操作:

There's an easy fix that doesn't affect the functionality of the code snippet. I've done this with no adverse effects. Just place the script within a hidden div like below and it should do the trick:

<div style="display:none">
  <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
  </script>
</div>

这篇关于Google AdWords:删除通过跟踪转化代码添加的iframe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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