Skip to content
This repository was archived by the owner on Jun 25, 2026. It is now read-only.
This repository was archived by the owner on Jun 25, 2026. It is now read-only.

attrbutionsrc element for API #1472

Closed
Closed

Description

@danieldansker

Hey,
We are attempting to integrate attribution reporting for our API clients.
This means that we don't have any code on the page and only return click-links for the account to implement on their page.
Is the mandatory for the registration of a "attribution source"?
Is it enough for us to respond with the correct header on the request (Attribution-Reporting-Register-Source)?
Thanks

Activity

  1. apasel422 commented on Nov 21, 2024

    @apasel422
    Contributor

    An HTTP response is eligible to register triggers without opt-in, but in order to register sources, the request has to be considered eligible, which can be achieved with one of the following:

    • <a attributionsrc>: can register navigation sources
    • <img attributionsrc>: can register event sources or triggers
    • <script attributionsrc>: can register event sources or triggers
    • open(..., ..., 'attributionsrc'): can register navigation sources
    • fetch(..., {attributionReporting: {eventSourceEligible: true, triggerEligible: false}}): can register some combination of event sources depending on the given options

    An eligible request will contain an Attribution-Reporting-Eligible header indicating which types of registrations the response can produce, if any.

  2. added
    developer-inputQuestion/feedback raised by a developer and posted here on their behalf for public discussion
    on Nov 21, 2024
  3. danieldansker commented on Nov 25, 2024

    @danieldansker
    Author

    Thanks, @apasel422,
    I'm not sure if any of these solutions would work for us. Here’s our use case:

    1. The client sends a GET request for items, and we respond with a list of links they can integrate into their app.
    2. When a user clicks one of these links, we return an HTML document that redirects the user to the landing page (destination).

    I couldn’t determine from the documentation whether the fetch can help us registering navigation-source.

  4. apasel422 commented on Dec 2, 2024

    @apasel422
    Contributor

    I couldn’t determine from the documentation whether the fetch can help us registering navigation-source.

    fetch isn't capable of registering navigation sources, no.

  5. apasel422 commented on Dec 5, 2024

    @apasel422
    Contributor

    Feel free to re-open if you have further questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    developer-inputQuestion/feedback raised by a developer and posted here on their behalf for public discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions