adobe / adobe/alloy

Enable support for bufferRequests similar to appMeasurement

Open
#1,150 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
104
Forks
60
Avg merge
2d 9h
Merged PRs (30d)
5

Description

### Expected Behaviour
Ability to buffer the websdk call on page unload so that the values can be sent on next page load event

### Actual Behaviour
Currently when the page is getting unload and a Interact call is triggered, there is a very high chance that the call would get cancelled and the data would be lost, this is more promenent with clicks which leads to page navigation, and this make tracking such clicks difficult

Here is the current document how it works in AppMeasurement

https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/functions/bufferrequests

### Reproduce Scenario (including but not limited to)
This is replicable in almost any website

#### Steps to Reproduce

#### Platform and Version

#### Sample Code that illustrates the problem

#### Logs taken while reproducing problem

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is identified in the issue. Start by reviewing the web SDK's handling of calls during page unload and the linked AppMeasurement bufferRequests documentation; done means calls triggered before navigation are retained and sent on the next page load.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.