-
Notifications
You must be signed in to change notification settings - Fork 58
fix: lite site updates #4417
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
fix: lite site updates #4417
Conversation
|
🎉 This PR is included in version 6.29.2-hotfix-add-ga-to-lite-site.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR makes three key updates to fix issues with the lite site functionality: making list styles more specific to avoid removing content lists, disabling Perfmatters script delay on lite site requests, and adding Google Analytics 4 pageview tracking.
Changes:
- Made CSS selectors for list styles more specific by adding
.post-listclass to avoid affecting content lists - Added filter to disable Perfmatters delayed scripts on lite site requests
- Integrated GA4 analytics snippet into lite site templates when Google Site Kit is active
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| includes/lite-site/templates/lite-site-styles.php | Updated list styles to use .post-list class selector for specificity |
| includes/lite-site/templates/archive.php | Added .post-list class to ul element and GA4 snippet call |
| includes/lite-site/templates/single.php | Added GA4 snippet call to template head |
| includes/lite-site/class-lite-site.php | Added is_lite_site_request() method and get_ga4_snippet() method for analytics |
| includes/plugins/class-perfmatters.php | Added filter to disable JS delay on lite site requests |
| includes/plugins/google-site-kit/class-googlesitekit.php | Changed get_sitekit_ga4_settings() visibility from private to public |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
leogermani
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Crazy how perfmatters add the js snippet directly to the buffer output, not relying on any filter!
## [6.29.2](v6.29.1...v6.29.2) (2026-01-22) ### Bug Fixes * lite site updates ([#4417](#4417)) ([b65e7bc](b65e7bc))
|
🎉 This PR is included in version 6.29.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# [6.30.0-alpha.3](v6.30.0-alpha.2...v6.30.0-alpha.3) (2026-01-22) ### Bug Fixes * lite site updates ([#4417](#4417)) ([b65e7bc](b65e7bc))
|
🎉 This PR is included in version 6.30.0-alpha.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
Closes https://linear.app/a8c/issue/NPPM-2550/add-ga-to-lite-sites-and-remove-permatters-script and resolves https://a8c.slack.com/archives/C07LB7B14GZ/p1769105774757559
This PR makes a few updates to fix lite site including:
How to test the changes in this Pull Request:
More specific list styles
Remove perfmatters delayed scripts
perfmatters-delayed-scripts-js)releaseyou will see perfmatters related delayed script. On this branch you will notAdds GA4 pageview analytics
releasethere should be no analytics script. On this branch there should beNote: You may need to add the following snippet for the events to send:
Other information: