Matomo Tag Manager plugin for October CMS.
You can use default code on all pages or you can specify unique tag for specific pages.
-
Install the plugin via the October CMS backend.
-
Add your site configuration details to the Matomo Tag Manager Plugin configuration page. (Under the 'Misc' section of the System Settings page in the Backend).
-
Add the Matomo Tag Manager Component to your master layout.
-
Add
{% component 'mtmCode' %}
to the<head>
of the default layout, we recommend to embed this tag as early as possible within the<head>
element of your website. -
Save the file.
You can also add the component to the file manually and/or override container_id
from your settings. For Example:
[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