-
Notifications
You must be signed in to change notification settings - Fork 240
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
Preventing multiple automatic beacons from being sent out #743
Comments
Our current proposal to solve this involves introducing a new parameter to This can be used in a click handler for a link, which will effectively only send out the beacon for the navigation that results from that click. |
The We propose to add another new parameter to
The new parameter can work w/ or w/o the |
I have a few clarifying questions:
Can you clarify what the allowlist is for? Are you proposing that the domain allowlist be for the recipients of automatic beacons? Or that they be for the URLs that a top-level navigation is navigating to? Do you anticipate that the pages you embed in your 3PAS ads will want to call What exactly is the setup for the 3PAS ad? When an ad auction results in a 3PAS ad being displayed, what URL does the config object map to? Is the 3PAS ad itself cross-origin to the frame that loads the ad? Is it its own subframe? I'm asking this because we have a restriction that |
The allowlist was proposed to restrict domains on the URLs that a top level navigation is navigating to. After a second thought, we realize that allowlist isn’t able to fully solve our problem because we do not always know the redirect URLs for 3PAS ads. We propose to add a reverse list
No, we do not anticipate that third-party ad techs will need to call
The 3PAS ad would be rendered in the same frame, i.e., cross-origin to the frame that loads the ad. |
We have a few concerns with this approach. If we add
When you say they're rendered in the same frame, do the contents of the 3PAS ad still live side-by-side in the same frame as your code that calls Also, where does the "why this ad" button live in relation to your code? How much control do you have over that button? Does it live in the same frame/origin as your code? That will determine what solutions, if any, we can come up with. If everything lives in the same frame like this:
then we might be able to append a new click handler for the "why this ad button" (targeting the id of the link) that clears out a previously set automatic beacon data. Then, after a predetermined amount of time, have it set the data again so that a click on the ad itself will result in a beacon being sent. If the why this ad button/ad contents live in a different frame like this:
then automatic beacons won't send on navigation. The frame that originates the navigation (c.com) is cross-origin to the initial rendered ad document (b.com), so it won't be allowed to send an automatic beacon. If your setup is like the former tree, could the solution mentioned there work for what your team needs? |
Liam: to clarify, this doesn't need to be a change in API, right? do you mean, the click handler code for "Why this ad" could invoke setReportEventDataForAutomaticBeacons with an empty destination? Also, the part about resetting it after a predetermined period of time will be indeterministic so that might not work. |
Correct. This can be done with the current API shape.
As an alternative, you might be able to add a click listener for the whole document, and then based on what was clicked choose to set the automatic beacon data or not.
|
Ad frames can have multiple links in it, where only a subset of the full links require an automatic beacon to be sent out. Right now, automatic beacons don't distinguish between what was clicked. If a navigation originates in a frame, a beacon will be sent out.
This is problematic for ads that have a "why this ad?" feature. Those should not be counted as a reportable click, but right now they are.
The text was updated successfully, but these errors were encountered: