Skip to content

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

@codecov
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).
⚠️ Report is 643 commits behind head on main.

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> No newline at end of file

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 :)

@geoffreynyaga geoffreynyaga marked this pull request as ready for review July 23, 2025 09:25
@sharder996 sharder996 merged commit b7af088 into main Jul 23, 2025
27 of 30 checks passed
@sharder996 sharder996 deleted the google-analytics branch July 23, 2025 14:37
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.

4 participants