* A beacon is a rapid fire browser request that does not wait for a response * from the server. It is guaranteed to go out before the page redirects. * @param {!AnalyticsRequest} analyticsRequest
(analyticsRequest)
| 8159 | * @param {!AnalyticsRequest} analyticsRequest |
| 8160 | */ |
| 8161 | sendBeacon_(analyticsRequest) { |
| 8162 | const pubId = encodeURIComponent( |
| 8163 | this.deps_.pageConfig().getPublicationId() |
| 8164 | ); |
| 8165 | const url = serviceUrl('/publication/' + pubId + '/clientlogs'); |
| 8166 | this.fetcher_.sendBeacon(url, analyticsRequest); |
| 8167 | } |
| 8168 | } |
| 8169 | |
| 8170 | /** |
no test coverage detected