1.1.3 • Published 9 months ago

@gethinode/mod-google-analytics v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Hinode Module - Google Analytics

About

Logo

Hinode is a clean blog theme for Hugo, an open-source static site generator. Hinode is available as a template, and a main theme. This repository maintains a Hugo module to enable Google Analytics, part of the Google Marketing Platform, to a Hinode site. Visit the Hinode documentation site for installation instructions.

Contributing

This module uses semantic-release to automate the release of new versions. The package uses husky and commitlint to ensure commit messages adhere to the Conventional Commits specification. You can run npx git-cz from the terminal to help prepare the commit message.

Configuration

!NOTE By convention, Hinode uses kebab case as naming convention for module names. However, the module name in the site parameters is renamed to GoogleAnalytics to align with Hugo's privacy settings.

Set you G-tag in your site configuration (usually hugo.toml) in the following section:

[services]
  [services.googleAnalytics]
    ID = "G-xxxxxxxxxx"

You can modify the privacy configuration in the following section:

[privacy]
  [privacy.googleAnalytics]
    disable = false
    respectDoNotTrack = false

This module supports the following parameters (see the section params.modules in config.toml):

SettingDefaultDescription
GoogleAnalytics.forcefalseTrigger to force include the analytics scripts, bypassing other settings. Use this setting for debugging and testing only.
1.1.3

9 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.1.2

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.0.0

10 months ago