Skip to content

jrc9designstudio/statamic-google-analytics

Repository files navigation

Google Analytics for Statamic 2

Requirement: Statamic v2.x
Version: 1.0.4

What is this?

Add Google Analytics support to Statamic 2 and configure tracking from the Control Panel

Installation

  • Rename the folder GoogleAnalytics and copy it to your site/addons folder

Usage

  • Use the settings to configure your tracking id and other Google Analytics settings or create a settings file in site/settings/addons/google_analytics.yaml
tracking_id: UA-*******-*
async: false
beacon: false
display_features: false
link_id: false
track_uid: false
ignore_admins: false
debug: false
trace_debugging: false
disable_sending: false

  • Manually add the tag to your theme layout file just before your close </head> tag.
  {{ google_analytics }}

Environment Support

Note

  • uBlock Origin, and possibly other addons of this type can cause the settings not to save properly for this addon. If you disable the plugin for your domain the settings should save fine.

Made with ❤️ by JRC9 Design Studio