File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import (
17
17
type PostEventsFileDownload fiber.Handler
18
18
19
19
// ProvidePostEventsFileDownload is a wire provider for POST
20
- // /api/v1/events/file-download handler.
20
+ // /api/v1/events/file-downloads handler.
21
21
func ProvidePostEventsFileDownload (
22
22
eventStore eventstore.Service ,
23
23
saltManagerService saltmanager.Service ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import (
17
17
type PostEventsOutboundLink fiber.Handler
18
18
19
19
// ProvidePostEventsOutboundLink is a wire provider for POST
20
- // /api/v1/events/outbound-link handler.
20
+ // /api/v1/events/outbound-links handler.
21
21
func ProvidePostEventsOutboundLink (
22
22
eventStore eventstore.Service ,
23
23
saltManagerService saltmanager.Service ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import (
17
17
type GetNoscriptEventsOutboundLink fiber.Handler
18
18
19
19
// ProvideGetNoscriptEventsOutboundLink is a wire provider for
20
- // GET /api/v1/noscript/events/outbound-link handler.
20
+ // GET /api/v1/noscript/events/outbound-links handler.
21
21
func ProvideGetNoscriptEventsOutboundLink (
22
22
eventStore eventstore.Service ,
23
23
sessionStorage sessionstorage.Service ,
Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ func ProvideFiber(
49
49
app .Post ("/api/v1/events/custom/:name" , fiber .Handler (postCustomEventHandler ))
50
50
app .Get ("/api/v1/noscript/events/custom/:name" , fiber .Handler (getNoscriptCustomEventHandler ))
51
51
52
- app .Post ("/api/v1/events/outbound-link " , fiber .Handler (postOutboundLinkEventHandler ))
53
- app .Get ("/api/v1/noscript/events/outbound-link " , fiber .Handler (getNoscriptOutboundLinkEventHandler ))
52
+ app .Post ("/api/v1/events/outbound-links " , fiber .Handler (postOutboundLinkEventHandler ))
53
+ app .Get ("/api/v1/noscript/events/outbound-links " , fiber .Handler (getNoscriptOutboundLinkEventHandler ))
54
54
55
- app .Post ("/api/v1/events/file-download " , fiber .Handler (postFileDownloadEventHandler ))
55
+ app .Post ("/api/v1/events/file-downloads " , fiber .Handler (postFileDownloadEventHandler ))
56
56
57
57
return app
58
58
}
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ export const PRISME_PAGEVIEWS_URL = PRISME_API_URL + '/events/pageviews'
6
6
export const PRISME_NOSCRIPT_PAGEVIEWS_URL = PRISME_API_URL + '/noscript/events/pageviews'
7
7
export const PRISME_CUSTOM_EVENTS_URL = PRISME_API_URL + '/events/custom'
8
8
export const PRISME_NOSCRIPT_CUSTOM_EVENTS_URL = PRISME_API_URL + '/noscript/events/custom'
9
- export const PRISME_OUTBOUND_LINK_EVENTS_URL = PRISME_API_URL + '/events/outbound-link '
10
- export const PRISME_NOSCRIPT_OUTBOUND_LINK_EVENTS_URL = PRISME_API_URL + '/noscript/events/outbound-link '
11
- export const PRISME_FILE_DOWNLOAD_EVENTS_URL = PRISME_API_URL + '/events/file-download '
9
+ export const PRISME_OUTBOUND_LINK_EVENTS_URL = PRISME_API_URL + '/events/outbound-links '
10
+ export const PRISME_NOSCRIPT_OUTBOUND_LINK_EVENTS_URL = PRISME_API_URL + '/noscript/events/outbound-links '
11
+ export const PRISME_FILE_DOWNLOAD_EVENTS_URL = PRISME_API_URL + '/events/file-downloads '
12
12
13
13
export const PRISME_METRICS_URL = PRISME_ADMIN_URL + '/metrics'
14
14
Original file line number Diff line number Diff line change 147
147
}
148
148
149
149
// Send event.
150
- sendClickEvent ( "/outbound-link " , url ) . finally ( followLink )
150
+ sendClickEvent ( "/outbound-links " , url ) . finally ( followLink )
151
151
}
152
152
153
153
// File downloads.
154
154
if ( trackFileDownloads && anchor . getAttribute ( "download" ) !== null ) {
155
- return sendClickEvent ( "/file-download " , url )
155
+ return sendClickEvent ( "/file-downloads " , url )
156
156
}
157
157
}
158
158
You can’t perform that action at this time.
0 commit comments