Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

appswithlove/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

About

Google Analytics for Statamic V2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 68.7%
  • HTML 31.3%