编辑特定Joomla文章上的body标签 [英] Editing the body tags on specific Joomla articles
问题描述
我需要在当前位于Joomla的网站上为市场营销"广告系列添加电话跟踪"功能.它要求仅在指定页面上将特定脚本添加到<body>
标记内.
I need to add Call tracking for a Marketing campaign on my site that is currently housed in Joomla. It requires a certain script to be added inside the <body>
tag only on designated pages.
我知道我可以将script标签添加到模板,但这会使它适用于每个页面.我还是Joomla的新手,所以您能告诉我是否有一种方法可以将以下脚本仅应用于我们要跟踪呼叫的页面?它需要放在</body>
标记之前.
I know I can add the script tag to the template but that would make it apply to every page. I am still new to Joomla, so can you tell me if there's a way to apply the script below to only the pages we want to track calls from? It needs to go before the </body>
tag.
<script type="text/javascript" src="//cdn.callrail.com/companies/808848127/e001797b95eaf41026e7/12/swap.js"></script>
推荐答案
向所选页面添加脚本的最简单方法是使用扩展名,例如 Flexi自定义代码模块或类似模块.
The easiest way to add a script to selected pages is to use an extension such as the professional version of the EasyScript plugin, the Flexi Custom Code module or similar.
It looks like you could also do this with Blank Module which is free. Publish the module to a non-display module position such as "debug" or similar and enable the module only on the required pages by selecting these under the Menu Assignment tab.
这篇关于编辑特定Joomla文章上的body标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!