Set "do not track" parameter and update homepage Twitter widget

Description

Pretty self-explanatory:

You may choose whether Twitter widgets on your site help to tailor content and suggestions for Twitter users. You can opt out of having information from your website used for personalization by following the instructions below.

Include the following snippet within the <meta> and <link> elements on your pages that include Twitter for Websites widgets:

Refer to comments for information on adjusting the widget height.

How to test:

  • Check that the home page Twitter embed is displaying normally.

  • While it's difficult to tell whether the DNT setting actually works, we can check if the third-party cookies left by Twitter have changed, compared to the production site. No expectations here, though.

Activity

Show:
Sarken
September 13, 2020, 6:23 PM

…the widget on the homepage is working again.

Sarken
October 12, 2020, 5:07 PM

They’ve changed the widget so now you need to specify a height with their data-height attribute or it’ll just show everything without any overflow scrolling.

We probably want the height somewhere in the vicinity of 600 to 750 pixels.

Sarken
October 14, 2020, 12:50 PM

Just noting that we’re using the data-dnt approach instead: https://developer.twitter.com/en/docs/twitter-for-websites/privacy

james_
October 18, 2020, 5:55 AM

Staging

 

Production

Source includes

<a class="twitter-timeline" href="https://twitter.com/otw_status/lists/otw-tweets" data-dnt="true" data-height="600">

Looks good

mumble
October 18, 2020, 7:28 AM

Can confirm that the widget just goes on for several screens worth of scroll on production, and is contained in a neat little box on staging. Looking in Chrome, looks like what james posted.

DeployedToBeta

Assignee

Alix R

Reporter

redsummernight

Roadmap

Misc

Priority

High

Affects versions

Fix versions

Components

FrontEnd

Difficulty

Easy

Milestone

Internal 0.9