We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 176587b commit e843dd9Copy full SHA for e843dd9
packages/app/src/app/pages/index.js
@@ -93,7 +93,7 @@ class Routes extends React.Component<Props> {
93
if (typeof window.ga === 'function' && !DNT) {
94
window.ga('set', 'page', location.pathname + location.search);
95
96
- send('pageview');
+ send('pageview', { path: location.pathname + location.search });
97
}
98
99
return null;
packages/common/utils/analytics.js
@@ -7,5 +7,9 @@ export const DNT = !!(
7
export default function track(eventName, secondArg: any) {
8
if (window.ga && !DNT) {
9
window.ga('send', secondArg);
10
+
11
+ if (typeof window.amplitude !== 'undefined') {
12
+ window.amplitude.logEvent(eventName, secondArg);
13
+ }
14
15
0 commit comments