如何防止Joomla剥离HTML评论

时间:2016-08-03 14:28:45

标签: joomla double-click

我已尝试添加DoubleClick跟踪代码

<!--
Start of DoubleClick Floodlight Tag: Please do not remove
Activity name of this tag: GVA - Homepage
URL of the webpage where the tag is expected to be placed: http://www.gva.co.uk
This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.
Creation Date: 07/25/2016
--><noscript><iframe src="https://xxxxxxx.fls.doubleclick.net/activityi;src=xxxxxxx;type=gvaco0;cat=gva-h0;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=1;num=1" frameborder="0" width="1" height="1" style="display: none;"></iframe></noscript>
<!-- End of DoubleClick Floodlight Tag: Please do not remove —>
对乔姆拉来说。我已将其添加到模板文件和CMS中的JCE文本编辑器中,在这两种情况下,它似乎都完全删除了HTML注释标记,因此Google Tag Assistant无法检测到代码。 / p>

我已经检查了Joomlas文本过滤选项,但无法阻止它剥离标记。有谁知道我做错了什么?

干杯:)

1 个答案:

答案 0 :(得分:0)

在JCE全局配置中,您需要进行这些更改

  • 验证=是
  • Doctype = HTML5
  • 实体编码= Unicode(UTF-8)

希望您已完成全局配置 - 文字过滤器设置管理员到"No Filtering"

的步骤