Skip to content

Commit

Permalink
Merge pull request #3301 from betagouv/matomo-url
Browse files Browse the repository at this point in the history
Remplacer le lien stats pour tracking
  • Loading branch information
hfroot authored Dec 12, 2023
2 parents 4c3e8a3 + af09ff9 commit a1362d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Vue.config.productionTip = false

if (window.MATOMO_ID) {
Vue.use(VueMatomo, {
host: "https://stats.data.gouv.fr",
host: "https://stats.beta.gouv.fr",
siteId: window.MATOMO_ID,
trackerFileName: "matomo",
router: router,
Expand Down
6 changes: 3 additions & 3 deletions macantine/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@
# CSP valid sources of Javascript
CSP_SCRIPT_SRC = (
"'self'",
"stats.data.gouv.fr",
"stats.beta.gouv.fr",
"'unsafe-inline'",
"client.crisp.chat",
)
Expand All @@ -424,7 +424,7 @@
"cellar-c2.services.clever-cloud.com",
"voxusagers.numerique.gouv.fr",
"'unsafe-inline'",
"stats.data.gouv.fr",
"stats.beta.gouv.fr",
"www.w3.org",
"data:",
"image.crisp.chat",
Expand All @@ -444,7 +444,7 @@
# CSP valid sources of AJAX, WebSockets, EventSources, etc
CSP_CONNECT_SRC = (
"'self'",
"stats.data.gouv.fr",
"stats.beta.gouv.fr",
"ws:",
"api-adresse.data.gouv.fr",
"client.crisp.chat",
Expand Down
2 changes: 1 addition & 1 deletion web/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://stats.data.gouv.fr/";
var u="https://stats.beta.gouv.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', "{% matomo_id %}"]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
Expand Down

0 comments on commit a1362d5

Please sign in to comment.