Skip to content

Commit

Permalink
OCT-2011: Analytics: implement in Octant.app (#485)
Browse files Browse the repository at this point in the history
## Description

## Definition of Done

1. [ ] If required, the desciption of your change is added to the [QA
changelog](https://www.notion.so/octantapp/Changelog-for-the-QA-d96fa3b411cf488bb1d8d9a598d88281)
2. [ ] Acceptance criteria are met.
3. [ ] PR is manually tested before the merge by developer(s).
    - [ ] Happy path is manually checked.
4. [ ] PR is manually tested by QA when their assistance is required
(1).
- [ ] Octant Areas & Test Cases are checked for impact and updated if
required (2).
5. [ ] Unit tests are added unless there is a reason to omit them.
6. [ ] Automated tests are added when required.
7. [ ] The code is merged.
8. [ ] Tech documentation is added / updated, reviewed and approved
(including mandatory approval by a code owner, should such exist for
changed files).
    - [ ] BE: Swagger documentation is updated.
9. [ ] When required by QA:
    - [ ] Deployed to the relevant environment.
    - [ ] Passed system tests.

---

(1) Developer(s) in coordination with QA decide whether it's required.
For small tickets introducing small changes QA assistance is most
probably not required.

(2) [Octant Areas & Test
Cases](https://docs.google.com/spreadsheets/d/1cRe6dxuKJV3a4ZskAwWEPvrFkQm6rEfyUCYwLTYw_Cc).
  • Loading branch information
jmikolajczyk authored Oct 8, 2024
2 parents 9a5ee5b + 133aa05 commit 1a652da
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion client/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script async src="https://analytics.golem.foundation/gftracker.js" data-ackee-server="https://analytics.golem.foundation" data-ackee-domain-id="fb017ee5-7526-4c13-8694-b16aac48091c"></script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link
Expand Down Expand Up @@ -78,6 +77,31 @@
<meta property="og:site_name" content="Octant App" />
<meta property="og:url" content="https://octant.app" />
<meta property="og:type" content="website" />
<!-- Matomo -->
<script>
// TODO: UNCOMMENT AFTER TESTS!!!
// if(window.location.origin !== 'https://octant.app') {return;};

// TODO: REMOVE AFTER TESTS!!!
if(window.location.origin !== 'https://uat-client.octant.wildland.dev') {return;};

var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["disableCampaignParameters"]);
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.golem.foundation/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
<title>Octant App</title>
</head>
<body>
Expand Down

0 comments on commit 1a652da

Please sign in to comment.