Analytics Snippet

By Daniel Berthereau Add a snippet, generally a javascript tracker, in public or admin pages, and allows to track json and xml requests.
Download 3.4.4

Analytics Snippet (module for Omeka S)

New versions of this module and support for Omeka S version 3.0 and above are available on GitLab, which seems to respect users and privacy better than the previous repository.

Analytics Snippet is a module for Omeka S that allows the global admin to add a snippet, generally a javascript tracker, at the end of the public pages and/or at the end of admin pages. It can track json and xml requests too via sub-modules.

It’s primarly designed for open source analytics platforms, like Matomo (formerly Piwik) or Open Web Analytics, but it can be used with any other competitor services like Woopra, Google Analytics or Heap Analytics, if you don’t fear to give the life of your visitors for free or by paying to people who will manipulate them or sell them with a big profit. Any other javascript or html code can be added too.

Sub-modules can be enabled too to track api json and xml calls, for example Analytics Snippet Matomo/Piwik.

Important: to get statistics on keywords used by visitors in search engines (Yahoo, Google, Bing, etc.) to find your site, you need to allow it via a specific account on each search engine. See Matomo help for more information.

Installation

Uncompress files and rename module folder AnalyticsSnippet. Then install it like any other Omeka module and follow the config instructions.

See general end user documentation for Installing a module.

Usage

The code can be set in the config of the module and/or in the site settings.

Note: For technical reasons, the html code must start with <!DOCTYPE html>, without useless space or line break at the beginning. This is the default on most of the themes.

To get keywords used by visitors in search engine, enable it via an account in each search engine. See Matomo help for more information.

Warning

Use it at your own risk.

It’s always recommended to backup your files and your databases and to check your archives regularly so you can roll back if needed.

Troubleshooting

See online issues on the module issues page on GitLab.

License

This module is published under the CeCILL v2.1 license, compatible with GNU/GPL and approved by FSF and OSI.

This software is governed by the CeCILL license under French law and abiding by the rules of distribution of free software. You can use, modify and/ or redistribute the software under the terms of the CeCILL license as circulated by CEA, CNRS and INRIA at the following URL "http://www.cecill.info".

As a counterpart to the access to the source code and rights to copy, modify and redistribute granted by the license, users are provided only with a limited warranty and the software’s author, the holder of the economic rights, and the successive licensors have only limited liability.

In this respect, the user’s attention is drawn to the risks associated with loading, using, modifying and/or developing or reproducing the software by the user in light of its specific status of free software, that may mean that it is complicated to manipulate, and that also therefore means that it is reserved for developers and experienced professionals having in-depth computer knowledge. Users are therefore encouraged to load and test the software’s suitability as regards their requirements in conditions enabling the security of their systems and/or data to be ensured and, more generally, to use and operate it in the same conditions as regards security.

The fact that you are presently reading this means that you have had knowledge of the CeCILL license and that you accept its terms.

Copyright

  • Copyright Daniel Berthereau, 2017-2023 (see Daniel-KM on GitLab)
Version Released Minimum Omeka version
3.4.4June 05, 2023 [info]^3.1.0 || ^4.0.0
3.4.3.5January 09, 2023 [info]^3.1.0 || ^4.0.0
3.3.3.4June 13, 2022 [info]^3.0.0
3.3.3.3May 30, 2022 [info]^3.0.0
3.3.3.2May 16, 2022 [info]^3.0.0
3.3.3.1February 15, 2021 [info]^3.0.0
3.3.3October 19, 2020 [info]^3.0.0
3.0.3October 27, 2019 [info]^1.2.0 || ^2.0.0