Skip to content

Commit 9f9044d

Browse files
committed
fix: removed ctalocatioan parameter
1 parent 5efce94 commit 9f9044d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/utils/trackRegisterClick.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ import type { MouseEvent } from 'react';
22

33
type RegisterClickOptions = {
44
url: string;
5+
ctaLocation?: string;
56
target?: '_blank' | '_self';
67
};
78

89
const NAVIGATION_FALLBACK_DELAY_MS = 500;
910

1011
export function trackRegisterClick(
1112
event: MouseEvent<HTMLAnchorElement>,
12-
{ url, target = '_blank' }: RegisterClickOptions,
13+
{ url, ctaLocation = 'general', target = '_blank' }: RegisterClickOptions,
1314
) {
1415
if (typeof window === 'undefined') {
1516
return;
@@ -49,6 +50,7 @@ export function trackRegisterClick(
4950
window.gtag('event', 'register_cta_click', {
5051
transport_type: 'beacon',
5152
event_callback: navigateOnce,
53+
cta_location: ctaLocation,
5254
});
5355

5456
window.setTimeout(navigateOnce, NAVIGATION_FALLBACK_DELAY_MS);

0 commit comments

Comments
 (0)