2016-08-03 64 views
0

我試圖如何防止從的Joomla剝離HTML註釋

<!-- 
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 —> 

添加的DoubleClick跟蹤代碼到Joomla。我已將它添加到模板文件和CMS內的JCE文本編輯器中,並且在這兩種情況下,它似乎完全刪除了HTML註釋標記,因此Google Tag Assistant無法檢測到該代碼。

我檢查過Joomlas文本過濾選項,但無法阻止它剝離標籤。有誰知道我做錯了什麼?

乾杯:)

回答

0

在JCE全局配置,你需要做這些改變

  • 驗證=是
  • 文檔類型= HTML5
  • 實體編碼=的Unicode(UTF-8)

希望你已經完成了全局配置文本過濾器設置Admin的步驟爲"No Filtering"