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

hotfix: matomo init #2533

Merged
merged 69 commits into from
Dec 16, 2024
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
5a732fc
Merge pull request #1286 from IntersectMBO/staging
MSzalowski Jun 13, 2024
b03f9ba
Merge pull request #1332 from IntersectMBO/staging
MSzalowski Jun 27, 2024
ce71931
Merge pull request #1497 from IntersectMBO/staging
MSzalowski Jul 5, 2024
d2c9b09
Merge pull request #1674 from IntersectMBO/staging
MSzalowski Aug 2, 2024
fff8f32
add new dockerfile
mpavlovicbb Aug 21, 2024
0ba1d51
Merge pull request #1778 from IntersectMBO/dockerfile-main
mpavlovicbb Aug 21, 2024
dac50d9
Merge pull request #1705 from IntersectMBO/staging
MSzalowski Aug 22, 2024
6494c59
Merge pull request #1836 from IntersectMBO/staging
MSzalowski Aug 27, 2024
79a7b92
Merge pull request #1872 from IntersectMBO/staging
MSzalowski Aug 30, 2024
a313fdc
Merge pull request #1883 from IntersectMBO/staging
MSzalowski Aug 30, 2024
7879f8a
Merge pull request #1922 from IntersectMBO/staging
MSzalowski Sep 3, 2024
dc49cd8
Merge pull request #1938 from IntersectMBO/staging
bosko-m Sep 4, 2024
0a54ec1
Merge pull request #1955 from IntersectMBO/staging
bosko-m Sep 5, 2024
94f498f
add tags to merged pr
Baja-KS Sep 7, 2024
3c7e87a
Merge pull request #2030 from IntersectMBO/staging
Ryun1 Sep 12, 2024
db52a89
[#2036] fix broken translation in DRep Details
j-dyczka Sep 13, 2024
b1dfe92
Merge pull request #2042 from IntersectMBO/hotfix/2036-broken-transla…
Ryun1 Sep 13, 2024
66b4f46
chore: add generate exact length text utils
kneerose Sep 9, 2024
b469163
fix: invalid proposal character issue by specifing the max character
kneerose Sep 9, 2024
87ebcd5
fix: test 2F due to multiple dRep card of delegated dRep
kneerose Sep 10, 2024
fa100bf
fix: incorrect test id assertion in test 2A and add card assertion
kneerose Sep 10, 2024
ad52044
update private policy link to use Intersect one
Ryun1 Sep 13, 2024
d022872
update support link
Ryun1 Sep 13, 2024
ad3ef5e
update changelog
Ryun1 Sep 13, 2024
710b3ee
Bump Cardano DB Sync to 13.5.0.2
placek Sep 16, 2024
55a0aaf
[#2002] add Mainnet link to network banner
j-dyczka Sep 16, 2024
eea44ac
[#2013] prepare FE for randomized DRep list
j-dyczka Sep 18, 2024
3d25e50
chore: bump to csl 12.1.0
Ryun1 Sep 19, 2024
4460eb7
remove explicit transaction outputs
Ryun1 Sep 19, 2024
c4e5efe
update changelog
Ryun1 Sep 19, 2024
f766b39
chore: bump frontend to use CSL 12.1.0
Ryun1 Sep 19, 2024
800be30
[#2013] randomize DRep list
j-dyczka Sep 18, 2024
ba18908
chore: bump GovTool version to v1.0.19
j-dyczka Sep 19, 2024
6e3dff2
fix csl errors
j-dyczka Sep 19, 2024
cdc7f3d
Merge pull request #1980 from IntersectMBO/prod-ci
mpavlovicbb Sep 23, 2024
968ceb4
Sync GovTool-1.0.20-staging with main
MSzalowski Oct 7, 2024
df189c7
Merge pull request #2129 from IntersectMBO/prestaging
MSzalowski Oct 7, 2024
9742730
Merge pull request #2130 from IntersectMBO/staging
MSzalowski Oct 8, 2024
7eb9131
Merge pull request #2147 from IntersectMBO/staging
MSzalowski Oct 15, 2024
de79f2b
Merge pull request #2155 from IntersectMBO/staging
MSzalowski Oct 15, 2024
7732713
Merge pull request #2163 from IntersectMBO/staging
MSzalowski Oct 16, 2024
cb65d9f
Merge pull request #2168 from IntersectMBO/staging
MSzalowski Oct 17, 2024
e892ea1
Merge pull request #2205 from IntersectMBO/staging
MSzalowski Oct 23, 2024
18c2df9
Merge pull request #2219 from IntersectMBO/staging
MSzalowski Oct 24, 2024
2e2e1f4
Merge pull request #2222 from IntersectMBO/staging
MSzalowski Oct 24, 2024
38c1f41
Merge pull request #2227 from IntersectMBO/staging
MSzalowski Oct 24, 2024
9160a09
Merge pull request #2232 from IntersectMBO/staging
MSzalowski Oct 24, 2024
d43c189
Merge pull request #2271 from IntersectMBO/staging
MSzalowski Oct 29, 2024
5b9d144
Merge pull request #2283 from IntersectMBO/staging
MSzalowski Oct 31, 2024
9550c2b
Merge pull request #2290 from IntersectMBO/staging
MSzalowski Oct 31, 2024
feadc30
Merge pull request #2298 from IntersectMBO/staging
MSzalowski Oct 31, 2024
f00822a
feat: revert halloween decorations
Ryun1 Oct 31, 2024
04b0045
Merge pull request #2323 from IntersectMBO/staging
MSzalowski Nov 4, 2024
9c2e740
Merge pull request #2352 from IntersectMBO/staging
MSzalowski Nov 7, 2024
d18ebab
Merge pull request #2389 from IntersectMBO/staging
MSzalowski Nov 19, 2024
5f9b030
Merge pull request #2422 from IntersectMBO/staging
MSzalowski Nov 26, 2024
68c0395
Merge pull request #2431 from IntersectMBO/staging
MSzalowski Nov 26, 2024
21aadac
Merge pull request #2462 from IntersectMBO/staging
MSzalowski Dec 4, 2024
de89f08
Merge pull request #2477 from IntersectMBO/staging
MSzalowski Dec 5, 2024
d98ecf8
Merge pull request #2482 from IntersectMBO/staging
MSzalowski Dec 6, 2024
482b9a8
Merge pull request #2498 from IntersectMBO/staging
MSzalowski Dec 10, 2024
27a33c0
Merge pull request #2503 from IntersectMBO/staging
MSzalowski Dec 10, 2024
e740d18
Merge pull request #2516 from IntersectMBO/staging
MSzalowski Dec 12, 2024
042caa0
Merge pull request #2524 from IntersectMBO/staging
MSzalowski Dec 16, 2024
b5ac058
Merge pull request #2529 from IntersectMBO/staging
MSzalowski Dec 16, 2024
b30b295
hotfix: fix typo in matomo hook
MSzalowski Dec 16, 2024
7cba4c5
Merge pull request #2531 from IntersectMBO/hotfix/fix-typo-to-enable-…
MSzalowski Dec 16, 2024
3943d22
hotfix: depend on network on matomo init
MSzalowski Dec 16, 2024
09ac311
Merge pull request #2532 from IntersectMBO/hotfix/fix-wrong-condition…
MSzalowski Dec 16, 2024
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
10 changes: 5 additions & 5 deletions govtool/frontend/src/hooks/useMatomo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import { useEffect } from "react";

export const useMatomo = () => {
useEffect(() => {
const env = import.meta.env.VITE_APP_ENV;
if (env !== "prodction" || env !== "staging") {
return;
}
const isSancho = window.location.href.includes("sancho");
if (isSancho) return;

const network = import.meta.env.VITE_NETWORK_FLAG;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
const _paq = (window._paq = window._pag || []);
Expand All @@ -19,7 +19,7 @@ export const useMatomo = () => {
(function () {
const u = "//analytics.gov.tools/";
_paq.push(["setTrackerUrl", u + "matomo.php"]);
_paq.push(["setSiteId", env === "production" ? "1" : "2"]);
_paq.push(["setSiteId", network === 1 ? "1" : "2"]);
const d = document;
const g = d.createElement("script");
const s = d.getElementsByTagName("script")[0];
Expand Down
Loading