diff --git a/material/partials/integrations/analytics.html b/material/partials/integrations/analytics.html index 13f7608ef..b895fa767 100644 --- a/material/partials/integrations/analytics.html +++ b/material/partials/integrations/analytics.html @@ -7,4 +7,6 @@ {% if config.extra.analytics %} {% set provider = config.extra.analytics.provider %} {% endif %} -{% include "partials/integrations/analytics/" ~ provider ~ ".html" %} +{% if provider %} + {% include "partials/integrations/analytics/" ~ provider ~ ".html" %} +{% endif %} diff --git a/src/partials/integrations/analytics.html b/src/partials/integrations/analytics.html index b4c3d0bf0..dfc367cf2 100644 --- a/src/partials/integrations/analytics.html +++ b/src/partials/integrations/analytics.html @@ -30,5 +30,7 @@ {% set provider = config.extra.analytics.provider %} {% endif %} - -{% include "partials/integrations/analytics/" ~ provider ~ ".html" %} + +{% if provider %} + {% include "partials/integrations/analytics/" ~ provider ~ ".html" %} +{% endif %}