Skip to content

Commit

Permalink
feat: Add openRelatedTablesLogEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
sasamuku committed Dec 20, 2024
1 parent 1a8ca43 commit b839057
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/packages/erd-core/src/features/gtm/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './clickLogEvent'
export * from './selectTableLogEvent'
export * from './toggleLogEvent'
export * from './openRelatedTablesLogEvent'
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { pushToDataLayer } from './pushToDataLayer'

type OpenRelatedTablesLogEvent = {
tableId: string
}

export const OpenRelatedTablesLogEvent = ({
tableId,
}: OpenRelatedTablesLogEvent) => {
pushToDataLayer({
event: 'open_related_tables',
tableId,
})
}

0 comments on commit b839057

Please sign in to comment.