[wp-trac] [WordPress Trac] #43932: Is there any admin setting to enable Do Not Track for Twitter embeds? (Or does Twitter no longer respect dnt?)

WordPress Trac noreply at wordpress.org
Wed May 2 18:13:07 UTC 2018


#43932: Is there any admin setting to enable Do Not Track for Twitter embeds? (Or
does Twitter no longer respect dnt?)
-------------------------------+------------------------------
 Reporter:  DanYork            |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Embeds             |     Version:  4.9.5
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by swissspidy):

 * keywords:   => reporter-feedback


Comment:

 Yeah the `dnt` parameter should be added to all embeds automatically since
 [41345].

 There's no admin page or any setting you need to change.

 Opening
 https://publish.twitter.com/oembed?url=https://twitter.com/swissspidy/status/991317230486016001&dnt=true
 should return the oEmbed result data where the actual HTML looks like
 `<blockquote class="twitter-tweet" data-dnt="true"`. So that is what
 WordPress is printing on the page. Can you confirm that you see `data-dnt`
 in the source code when embedding a tweet?

 Worth noting Twitter's description of the `dnt` parameter:

 > When set to true, the Tweet and its embedded page on your site are not
 used for purposes that include personalized suggestions and personalized
 ads.

 So it's still possible that Twitter loads some scripts, just that it
 doesn't do anything with the data. Plus, you might have some other Twitter
 scripts on your site, e.g. a tweet or follow button.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43932#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list