Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Met à jour la documentation concernant les statistiques #6583

Merged
merged 1 commit into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ base.db
/contents-private-test
/contents-public-test

api_analytics_secrets.json
.ga-api-cache/

/apache-solr

/.tmp
Expand Down
22 changes: 6 additions & 16 deletions doc/source/back-end/contents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -628,19 +628,9 @@ Ces paramètres sont à surcharger dans le dictionnaire ``ZDS_APP['opinions']``:
Statistiques
============

Pour permettre aux auteurs d'avoir des statistiques sur leurs contenus, il faut créer un fichier ``api_analytics_secrets.json`` contenant les identifiants nécessaires pour se connecter à l'API de Google Analytics. Voici un gabarit pour ce fichier :

.. sourcecode:: json

{
"type": "service_account",
"project_id": "fake-project_id",
"private_key_id": "fake-private_key_id",
"private_key": "fake_private_key",
"client_email": "fake-client_email",
"client_id": "fake-client_id",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://accounts.google.com/o/oauth2/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "fake-client_x509_cert_url"
}
Les statistiques du site sont gérées par un serveur `Matomo
<https://matomo.org/>`_. La collecte des statistiques est faite avec le
middleware ``zds.middlewares.matomomiddleware.MatomoMiddleware``.

Chaque contenu a une page (non publique) *Statistiques* qui récupère auprès de
Matomo et affiche les statistiques d'affichage de chaque page du contenu.