diff --git a/public/index.html b/public/index.html index f6edaed..e87e0bb 100644 --- a/public/index.html +++ b/public/index.html @@ -1,6 +1,14 @@ + + diff --git a/src/webapp/components/action-creation-wizard/steps/GeneralInfoStep.tsx b/src/webapp/components/action-creation-wizard/steps/GeneralInfoStep.tsx index 389ef86..79cf4bf 100644 --- a/src/webapp/components/action-creation-wizard/steps/GeneralInfoStep.tsx +++ b/src/webapp/components/action-creation-wizard/steps/GeneralInfoStep.tsx @@ -335,4 +335,6 @@ const dhisVersions = [ { value: "2.36", text: "2.36" }, { value: "2.37", text: "2.37" }, { value: "2.38", text: "2.38" }, + { value: "2.39", text: "2.39" }, + { value: "2.40", text: "2.40" }, ]; diff --git a/src/webapp/utils/analytics.ts b/src/webapp/utils/analytics.ts new file mode 100644 index 0000000..28d7bbc --- /dev/null +++ b/src/webapp/utils/analytics.ts @@ -0,0 +1,15 @@ +export function sendAnalytics(name: string, data?: object) { + if (!window.gtag) throw new Error("gtag() function has not been declared."); + window.gtag( + "event", + name, + data + // Relevant params to track. Only add if the client allows it + // data && { + // ...data, + // location_hash: window.location.hash, + // location_pathname: window.location.pathname, + // location_href: window.location.href, + // } + ); +}