Skip to content

(docs): Add Google Analytics to Multipass documentation #4219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

geoffreynyaga
Copy link
Contributor

@geoffreynyaga geoffreynyaga commented Jul 9, 2025

This PR adds analytics to Multipass documentation:

Using https://github.com/canonical/RTD-cookie-banner-integration, this PR adds the following:

  • HTML templates for footer and header to support Google Analytics and cookie consent banner.
  • JS bundle for GA functionality and cookie consent.
  • CSS configuration to style consent banner.
  • Configuration to support required template and static files.

Expected results:
Screenshot 2025-07-09 at 15 39 52

JIRA
MULTI-2083

Copy link

codecov bot commented Jul 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.31%. Comparing base (43e7781) to head (1cc96ad).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4219   +/-   ##
=======================================
  Coverage   89.31%   89.31%           
=======================================
  Files         259      259           
  Lines       15684    15684           
=======================================
  Hits        14008    14008           
  Misses       1676     1676           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@geoffreynyaga geoffreynyaga changed the title Add Google Analytics to Multipass documentation (docs): Add Google Analytics to Multipass documentation Jul 9, 2025
Copy link

@SecondSkoll SecondSkoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

{% endif %}
</div>
<div class="right-details"><a href="" class="js-revoke-cookie-manager muted-link">Manage your tracker settings</a></div>
</div>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
</div>
</div>

Fixes linting check.

@geoffreynyaga geoffreynyaga requested a review from xmkg July 11, 2025 14:34
Copy link
Member

@xmkg xmkg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, the cookie prompt, and the footer work as expected. As for the analytics, I don't have visibility over that, so verifying that will be up to you @geoffreynyaga :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants