diff --git a/aio/src/index.html b/aio/src/index.html
index db945765a5d..c662a01ae2d 100644
--- a/aio/src/index.html
+++ b/aio/src/index.html
@@ -51,6 +51,12 @@
// Note this is a customised version of the GA tracking snippet
// See the comments below for more info
(function (i, s, o, g, r, a, m) {
+ if (i.trustedTypes) {
+ // Specify path as a TrustedScriptURL when Trusted Types are available
+ g = i.trustedTypes.createPolicy('aio#analytics', {
+ createScriptURL: function (s) { return s; }
+ }).createScriptURL(g);
+ }
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),