Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: propagate additional products #213

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

sk-
Copy link
Contributor

@sk- sk- commented Nov 9, 2023

In case customers want to attribute purchases to banners they need to specify a product and a resolved bid as inherit. In such a case we would grab the resolved id id that was stored in session storage in the previous click.

There are some caveats with this approach:

  1. If there's a mistake and an inherit resolved bid is used in a page which is not the target of a banner, then the events will fail. 2) It could happen that the user manually changes the url to a banner's destination page and in that case we would report the events to the wrong banner. 3) This won't always work if session storage is not available (support is 97.4% https://caniuse.com/mdn-api_window_sessionstorage). We have a fallback using an in memory cache, but that would only work if the page it's not reloaded (Vue, React, etc)

In case customers want to attribute purchases to banners they need to specify a product and a resolved bid as inherit. In such a case we would grab the resolved id id that was stored in session storage in the previous click.

There are some caveats with this approach:
1) If there's a mistake and an inherit resolved bid is used in a page which is not the target of a banner, then the events will fail.
2) It could happen that the user manually changes the url to a banner's destination page and in that case we would report the events to the wrong banner.
3) This won't always work if session storage is not available (support is 97.4% https://caniuse.com/mdn-api_window_sessionstorage). We have a fallback using an in memory cache, but that would only work if the page it's not reloaded (Vue, React, etc)
@sk- sk- merged commit 5fdb57b into main Nov 10, 2023
2 checks passed
@sk- sk- deleted the feat/seba/propagate-additional-products branch November 10, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants