diff --git a/_config.yml b/_config.yml index 3ba03a02ae..3b3e91ca82 100644 --- a/_config.yml +++ b/_config.yml @@ -16,6 +16,7 @@ exclude: ["_scripts", "tests", "apidocs/layouts", "Gemfile", "hooks", "index.htm # Google Analytics, etc. # TODO these should only be set when building for production, or passed as an environment variable when building google_analytics: GTM-WL2QLG5 +polldaddy_id: 8453675 # Component versions -- address like site.docker_ce_version diff --git a/_includes/analytics/polldaddy.html b/_includes/analytics/polldaddy.html new file mode 100644 index 0000000000..93986fc7dd --- /dev/null +++ b/_includes/analytics/polldaddy.html @@ -0,0 +1,18 @@ +{%- if site.polldaddy_id and site.polldaddy_id != '' -%} + +{%- endif -%} diff --git a/_includes/body.html b/_includes/body.html index a8c387be47..e51662ea5d 100644 --- a/_includes/body.html +++ b/_includes/body.html @@ -33,8 +33,8 @@ {%- endif -%} {%- endunless %} - {%- if page.noratings != true -%} -
+ {%- if site.polldaddy_id and page.noratings != true -%} + {%- endif -%} @@ -95,21 +95,5 @@ - + {%- include analytics/polldaddy.html -%}