No Google Analytics / analytics integration support

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
analytics, web-dev

Research direction

Start by inspecting the plugin configuration entry point and the base.njk template, which the issue identifies as the current analytics injection point. Determine whether the intended scope is a configurable Google Analytics option or documentation for the existing head block approach. Done means one supported approach is implemented or documented clearly, with its usage discoverable to plugin users.

Written by the indexing model from the issue text.

Description

Problem

The dart_node site includes Google Analytics in the base template. The plugin provides no way to inject analytics scripts.

Current workaround

The {% block head %} in base.njk can be used to add analytics, but:

  1. This requires overriding the entire base template
  2. There's no documented approach for analytics integration

Suggestion

Add a config option like:

techdocPlugin({
  analytics: {
    google: 'G-XXXXXXXXXX'
  }
})

Or at minimum, document how to use {% block head %} for analytics injection.

Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Nimblesite/eleventy-plugin-techdoc

All issues in Nimblesite/eleventy-plugin-techdoc

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.