diff --git a/lib/template.html b/lib/template.html
index 981aa9a..6eedc4e 100755
--- a/lib/template.html
+++ b/lib/template.html
@@ -122,6 +122,10 @@
{% endif %}
+{% if site.do_not_track.twitter %}
+
+{% endif %}
+
diff --git a/spec/jekyll_seo_tag_integration_spec.rb b/spec/jekyll_seo_tag_integration_spec.rb
index 58a9af1..731faca 100755
--- a/spec/jekyll_seo_tag_integration_spec.rb
+++ b/spec/jekyll_seo_tag_integration_spec.rb
@@ -717,4 +717,15 @@ RSpec.describe Jekyll::SeoTag do
end
end
end
+
+ context "with do_not_track" do
+ context "with twitter" do
+ let(:site) { make_site("do_not_track" => { "twitter" => true }) }
+
+ it "adds DNT metadata for Twitter embeds" do
+ expected = %r!!
+ expect(output).to match(expected)
+ end
+ end
+ end
end