diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html
index 1425c6930db..aaa15d56e02 100644
--- a/docs/source/_templates/layout.html
+++ b/docs/source/_templates/layout.html
@@ -1,17 +1,5 @@
{% extends "!layout.html" %}
-{%- block extrahead %}
-
-
-
-
-{{ super() }}
-{% endblock %}
-
{% block sidebartitle %}
{{ version }} ▼
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 60994eae8b9..b0079a00668 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -127,6 +127,7 @@
'logo_only': True,
'pytorch_project': 'docs',
'navigation_with_keys': True,
+ 'analytics_id': 'UA-117752657-2',
}
html_logo = '_static/img/pytorch-logo-dark.svg'