Skip to content

Enhance SEO, Analytics, and Internal Linking - #597

Open
Vaishnav88sk wants to merge 1 commit into
microcks:masterfrom
Vaishnav88sk:feature/seo-analytics-enhancements
Open

Vaishnav88sk wants to merge 1 commit into
microcks:masterfrom
Vaishnav88sk:feature/seo-analytics-enhancements

Conversation

@Vaishnav88sk

Copy link
Copy Markdown
Contributor

Description

This PR introduces several frontend enhancements to improve the site's SEO, track user conversions, and resolve existing Javascript console errors.

  • Analytics Tracking: Added safe gtag onclick events to primary "Get Started" and "Try Microcks" call-to-action buttons across the homepage and navigation headers.
    (Example: gtag('event', 'click', {'event_category': 'conversion'}) will now populate the Google Analytics 4 (GA4) dashboard "Events" report, allowing us to track exact button conversion rates).
  • Core Web Vitals: Set loading="lazy" as the default behavior for all images rendered via the figure.html shortcode to improve page load speed.
  • Internal Linking (SEO): Implemented a dynamic "Related Content" section at the bottom of both Blog and Documentation pages using robust Section-based Hugo filtering.
  • Javascript Stability: Fixed Uncaught TypeError crashes in bootstrap.js and script.js by adding existence checks (if (nav) and if (searchModalEl)) so scripts degrade gracefully on pages that do not contain certain UI elements.
  • Build Optimization: Converted standard HTML comments around partials in single.html to native Hugo comments ({{/* */}}) to prevent unnecessary server-side template execution.

Related issue(s)

Part of #209

Signed-off-by: Vaishnav88sk <vaishnavsk8804@gmail.com>

This branch has not been deployed

No deployments
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.

1 participant