Non-core contributed modules

New Block: Google Analytics

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9
  • Fix Version/s: None
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

Adds a block that embeds Google analytics code. Has configuration to set Google analytics account number.
You can add this manually to any course page or My Moodle page, and/or make it a sticky block.

1. Upload/unpack the googleanalytics folder to /moodle/blocks/
2. Go to the Notifications page to install the block
3. Configure the block at Modules->Blocks->ManageBlocks->Google_Analytics->Settings

Tested in 1.9.2+

Activity

Hide
Paul Vaughan added a comment -

1) I would add this to the plugins database on moodle.org

2) Is there any problem with the analytics code not being placed directly above the closing HTML tag?

Paul.

Show
Paul Vaughan added a comment - 1) I would add this to the plugins database on moodle.org 2) Is there any problem with the analytics code not being placed directly above the closing HTML tag? Paul.
Hide
Mark Webster added a comment -
Show
Mark Webster added a comment - Added at http://moodle.org/mod/data/view.php?d=13&rid=2145
Hide
Mark Webster added a comment -

Put in fix by Oriol (thanks - I'd missed a bracket) from http://moodle.org/mod/data/view.php?d=13&rid=2145&filter=1.

Updated Readme.txt

Show
Mark Webster added a comment - Put in fix by Oriol (thanks - I'd missed a bracket) from http://moodle.org/mod/data/view.php?d=13&rid=2145&filter=1. Updated Readme.txt
Hide
Mark Webster added a comment -

It should be integrated into the template, really. This is an option for those who cannot go this route.

Show
Mark Webster added a comment - It should be integrated into the template, really. This is an option for those who cannot go this route.
Hide
Jeffrey Silverman added a comment -

Is there any problem with adding an HTML sticky block and pasting the GA HTML+JS in?

Show
Jeffrey Silverman added a comment - Is there any problem with adding an HTML sticky block and pasting the GA HTML+JS in?
Hide
Wen Hao Chuang added a comment -

+1 to add this into the core if possible (given the codes will be cleaned up a little bit, commented, etc.)...

Show
Wen Hao Chuang added a comment - +1 to add this into the core if possible (given the codes will be cleaned up a little bit, commented, etc.)...

People

Vote (2)
Watch (5)

Dates

  • Created:
    Updated: