diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 1a7aaca..9118380 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -33,6 +33,8 @@ jobs: - name: Build documentation run: make build + env: + GTM_ID: ${{ secrets.GTM_ID }} - name: Configure AWS Credentials if S3 deploying is enabled # Giving this step a name so we can check later if we need to deploy to GitHub Pages instead. diff --git a/mkdocs.yml b/mkdocs.yml index 83967a8..6a6c702 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -63,6 +63,9 @@ extra_javascript: extra: homepage: !ENV [SITE_HOME, 'https://developers.eveonline.com/'] + analytics: + provider: custom + property: !ENV [GTM_ID, 'GTM-XXXXXXX'] plugins: - search diff --git a/overrides/partials/integrations/analytics/custom.html b/overrides/partials/integrations/analytics/custom.html new file mode 100644 index 0000000..ba936bd --- /dev/null +++ b/overrides/partials/integrations/analytics/custom.html @@ -0,0 +1,20 @@ + + + diff --git a/overrides/partials/main.html b/overrides/partials/main.html new file mode 100644 index 0000000..0911228 --- /dev/null +++ b/overrides/partials/main.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block scripts %} {{ super() }} + + + +{% endblock %}