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

Full HTTP API for delegation #48

Open
martinthomson opened this issue Oct 10, 2024 · 0 comments
Open

Full HTTP API for delegation #48

martinthomson opened this issue Oct 10, 2024 · 0 comments

Comments

@martinthomson
Copy link
Member

Again, for the combination of #31 and #32 and #38, if you want to do the full delegation without touching JavaScript...

This builds on #47 and adds an HTTP interaction for the delegation stage. The key here is that delegation can be done toward multiple different entities.

Again, this is triggered by any request that is made to the top-level site:

GET /top-level/pixel
Host: example.com

The response effectively executes the delegateConversion API (or whatever it ends up being called):

200 OK
Attribution-Delegation: all=the;parameters=needed
Link-Template: <https://intermediary1.example/track{?delegation_id}>;\
  rel=attribution-delegation
Link-Template: <[https://intermediary2.example/track](https://intermediary1.example/track){?delegation_id}>;\
  rel=attribution-delegation
Content-Type: whatever/the-request;needs

The browser recognizes the special new header and the new link relation types. It executes the attribution function according to the API and sends a request to each of the delegates. This uses Link-Template so that the sites can tell the browser where to stick the delegation ID.

Again intermediarySites is inferred for each delegation.

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

No branches or pull requests

1 participant