Code Monkey home page Code Monkey logo

googleanalytics's Introduction

About Google Analytics

The Google Analytics plugin allows users to insert a Google Analytics Tracking Code (GATC) into each page of their Omeka website. The GATC is a small chunk of Javascript generated by Google Analytics that connects the website back to the Analytics platform and tracks a wide range of statistics about how many people are visiting the site, where they come from, and how they interact with content.

Download

You can download the plugin from github.

#Features

The plugin adds a simple configuration form to the administrative interface of Omeka that allows users to paste in the tracking code for the corresponding site account in Google Analytics.

Technical Notes / Needed Features

Right now, the plugin makes use of the "public theme header" hook to print the GATC. Because of the location from which the hook is fired in the template rendering process, this causes the tracking code to output in the middle of the &lthead&rt tag. This is generally fine, although ideally the tracking code would be located at the very end of the document, just before the close of the <body> tag, so as to avoid any hanging during page load if there is higher than normal latency when the script tries to dial back to Google. Omeka does not currently fire a plugin hook at that location in the template rendering process, and a different solution would need to be used.

#Installing and Configuring

Getting the Tracking Code

  • Once a Google Analytics account has been registered for the site, go to [Google Analytics] and click on the "Access Analytics" button.
  • Click on the name of the account for the Omeka website.
  • From the "Overview" page, click on the "Edit" link in the rightmost column of the "Website Profiles" box.
  • Click on the "Check Status" link at the top right of the "Main Website Profile Information" box.
  • Copy the tracking code to the clipboard.

Inserting the Tracking Code into Omeka

  • In the Omeka administration, click on the "Settings" button at the top right of the screen.
  • Click on the "Plugins" tab.
  • Click on the blue "Configure" button for the Google Analytics plugin.
  • Paste the tracking code into the box and click "Save Changes."

googleanalytics's People

Contributors

davidmcclure avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.