alekseyp / matomotagmanager-plugin
October CMS 的 Matomo Tag manager 插件。
dev-master
2019-01-18 22:41 UTC
Requires
- php: >=5.4
- composer/installers: ~1.0
This package is auto-updated.
Last update: 2024-09-29 06:25:44 UTC
README
October CMS 的 Matomo Tag Manager 插件。
您可以在所有页面使用默认代码,或者为特定页面指定唯一的标签。
说明
-
通过 October CMS 后端安装插件。
-
将您的网站配置详细信息添加到 Matomo Tag Manager 插件配置页面。(在后台的系统设置页面“杂项”部分)。
-
将 Matomo Tag Manager 组件添加到您的母版布局中。
-
将
{% component 'mtmCode' %}
添加到默认布局的<head>
部分,我们建议尽可能早地将此标签嵌入到您的网站<head>
元素中。 -
保存文件。
您还可以手动将组件添加到文件中,并/或覆盖您的设置中的 container_id
。例如
[mtmCode]
container_id = "XXXXXXX"
==
<html>
<head>
{% component 'mtmCode' %}
<title>{{ this.page.title }}</title>
<meta name="author" content="October CMS">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% styles %}
<link href="{{ [
'assets/css/theme.css'
]|theme }}" rel="stylesheet">
</head>
<body>
<header>
<h1>Header</h1>
<hr />
</header>
<!-- Content -->
<section id="layout-content">
{% page %}
</section>
<!-- Footer -->
<footer id="layout-footer">
{% partial "footer" %}
</footer>
<!-- Scripts -->
<script src="{{ [
'assets/js/jquery.js',
'assets/js/app.js'
]|theme }}"></script>
{% framework extras %}
{% scripts %}
</body>
</html>
许可证
MIT
作者信息
Aleksey Potaneyko
Mediahub