Skip to content

Commit

Permalink
Merge pull request #2036 from MTES-MCT/fix/2033-block-matomo-usager
Browse files Browse the repository at this point in the history
[Matomo] Ajout de test pour éviter le tracking précis Matomo
  • Loading branch information
hmeneuvrier authored Dec 12, 2023
2 parents 1026434 + 6eb307a commit 0afc17f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
{% if app.user is not null and 'ROLE_ADMIN' not in app.user.roles %}
{% if app.user is not null and 'ROLE_ADMIN' not in app.user.roles and 'ROLE_USAGER' not in app.user.roles %}
_paq.push(['setCustomDimension', customDimensionId = 1, customDimensionValue = '{{ app.user.roles|first}}' ]);
_paq.push(['setCustomDimension', customDimensionId = 2, customDimensionValue = '{{ app.user.territory.name }}' ]);
_paq.push(['setCustomDimension', customDimensionId = 3, customDimensionValue = '{{ app.user.partner.nom }}' ]);
Expand Down

0 comments on commit 0afc17f

Please sign in to comment.