Bug 218127

Summary: AdClickAttribution logs not being shown in system log
Product: WebKit Reporter: Marçal <m.serrate>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: smoley, webkit-bug-importer, wilander
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac   
OS: macOS 10.15   

Description Marçal 2020-10-23 09:17:44 PDT
Hi,

Safari Technology Preview: Release 115 (Safari 14.1, WebKit 15611.1.3.5)
Both Ad Click Attribution and Ad Click Attribution Debug Mode Experimental Features are enabled.

Different domains used for publisher and advertiser & publisher with the following tag included:
<a href="https://click.advertiser.example?pid=3" adcampaignid="52" addestination="https://advertiser.example" target="_blank"><img src="https://ad.example/creative_1.png" alt="click now!"></a>

As explained here: https://webkit.org/blog/8943/privacy-preserving-ad-click-attribution-for-the-web/ I expect to see the logs when using: log stream -info | grep AdClickAttribution

No other errors or warnings are shown in the Web Inspector
Comment 1 Smoley 2020-10-26 13:22:44 PDT
Thanks for filing, please attach a reduced test case in the form of an HTML, codepen etc.
Comment 2 Radar WebKit Bug Importer 2020-10-26 13:22:55 PDT
<rdar://problem/70692530>
Comment 3 John Wilander 2020-10-26 13:41:32 PDT
(In reply to Marçal from comment #0)
> Hi,
> 
> Safari Technology Preview: Release 115 (Safari 14.1, WebKit 15611.1.3.5)
> Both Ad Click Attribution and Ad Click Attribution Debug Mode Experimental
> Features are enabled.
> 
> Different domains used for publisher and advertiser & publisher with the
> following tag included:
> <a href="https://click.advertiser.example?pid=3" adcampaignid="52"
> addestination="https://advertiser.example" target="_blank"><img
> src="https://ad.example/creative_1.png" alt="click now!"></a>

What happens if you drop the target="_blank" attribute?

> As explained here:
> https://webkit.org/blog/8943/privacy-preserving-ad-click-attribution-for-the-
> web/ I expect to see the logs when using: log stream -info | grep
> AdClickAttribution
> 
> No other errors or warnings are shown in the Web Inspector
Comment 4 Marçal 2020-10-27 05:06:11 PDT
Hi,

After enabling/disabling the features & restarting several times, logs are working as expected now, so I'm going to close the ticket.

Thanks!
Comment 5 Marçal 2020-10-27 05:33:23 PDT
Hi John,

My bad, forget the previous comment.
Removing the target="_blank" attribute did the trick and now it works.

Not sure if that's by design, but I'm reopening as using target="_blank" shouldn't be a privacy concern.

Thanks,
Comment 6 John Wilander 2020-10-27 17:39:29 PDT

*** This bug has been marked as a duplicate of bug 214176 ***