Adobe Web SDK callback after successful event
Hi all,
This was something I managed to do prior to Web SDK using callbacks, but for AA and attribution to function correctly we need to ensure proper order of events. For example not letting passive custom links fire before the first page view of the visit.
Currently, we have Custom Link events that are firing as soon as the page loads which is causing attribution and pathing issues.
My approach is then to use the 'On before event send callback' in the Web SDK extension to 'return false' if the event type is not a page view and the session page count is <1.
However, where I'm stuck is in the best practice to then fire the custom link(s) after the page view has successfully tracked.
One option was to create a queue, and then process that queue (if it exists) after the page view.
Another is simply to add a timeout to the custom links when session page count <1, but this has risks of the user navigating away or a slow connection.
Has anyone approached this concept or have any ideas?
Thanks!