Skip to content

Commit

Permalink
(fix)[analytics]
Browse files Browse the repository at this point in the history
  • Loading branch information
erupturatis committed Nov 29, 2023
1 parent a7c235f commit c1f12fd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/layouts/Base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ const isDev = import.meta.env.DEV;
const isProd = import.meta.env.PROD;

const SEGMENT_DEV_KEY = import.meta.env.SECRET_SEGMENT_DEV_KEY
const SEGMENT_PROD_KEY = import.meta.env.SECRET_SEGMENT_PROD_KEY

const SEGMENT_PROD_KEY = import.meta.env.SECRET_SEGMENT_PROD_KEY

export interface Props {
metadata?: PageMeta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from '@src/api-wrapper/roadmap/routes/routes-roadmaps';
import { deepCopy } from '@src/typescript/roadmap_ref/utils';
import { dispatchAnalyticsEvent } from '@src/to-be-organized/analytics-module/stores/analytics';
import {getRoadmapAbout} from "@store/roadmap-refactor/roadmap-data/misc-data/roadmap-about.ts";
import { getRoadmapAbout } from '@store/roadmap-refactor/roadmap-data/misc-data/roadmap-about.ts';

export const storeRoadmapProgress = atom({} as IRoadmapProgress);

Expand Down Expand Up @@ -40,7 +40,6 @@ export function setRoadmapNodeProgressAndFetchUpdate(
fetchUpdateRoadmapProgress(storeRoadmapProgress.get()).then(() => {
dispatchAnalyticsEvent('roadmapInteraction', {
actionType: 'marked-node',
roadmapName: getRoadmapAbout().name,
});
});
}
Expand Down
1 change: 0 additions & 1 deletion src/to-be-organized/analytics-module/analytics-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ type IVisitPagePayload = {

type IRoadmapInteraction = {
actionType: 'marked-node' | 'clicked-node';
roadmapName: string;
};

type IAuthInteraction = {
Expand Down
3 changes: 1 addition & 2 deletions src/to-be-organized/node-rendering-stuff/actions-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { setEditingState } from '@store/roadmap-refactor/editing/editing-state';
import { clearSelectedConnection } from '@components/roadmap/connections/connection-editing/connection-store';
import { dispatchAnalyticsEvent } from '@src/to-be-organized/analytics-module/stores/analytics';
import { checkFirstOnClick } from '@src/to-be-organized/node-rendering-stuff/node-render-logic';
import {getRoadmapAbout} from "@store/roadmap-refactor/roadmap-data/misc-data/roadmap-about.ts";
import { getRoadmapAbout } from '@store/roadmap-refactor/roadmap-data/misc-data/roadmap-about.ts';

export function getOnMouseOutActionEdit(nodeId): () => void {
const div = getElementG(nodeId);
Expand Down Expand Up @@ -115,7 +115,6 @@ export function getOnClickActionView(nodeId): () => void {
actionMap[action](nodeId);
dispatchAnalyticsEvent('roadmapInteraction', {
actionType: 'clicked-node',
roadmapName: getRoadmapAbout().name,
});
};
}
Expand Down

0 comments on commit c1f12fd

Please sign in to comment.