moe/google-analytics

Very basic module which was designed to load Google Analytics in a standard manner on all websites.

Installs: 640

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Type:silverstripe-module

v1.0.1 2015-07-30 02:50 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:28:35 UTC


README

Very basic module which was designed to load Google Analytics in a standard manner on all websites.

Features

  • A single text field can accept both Google Tag Manager and Universal Analytics codes
  • Javascript is loaded into the template with no changes required to theme files
  • Removes the default CWP GA text field to avoid confusion

Installation

Composer

Make sure you've removed all Google Analytics code from your template

Ideally composer will be used to install this module. composer require "moe/google-analytics:@stable"

CMS Setup/Usage

Set Google code

  • In the CMS under settings is a tab called "Google Analytics" There is a single text field in this tab which accepts either a Universal or Tag Manager formatted code