2017 © Pedro Peláez
 

silverstripe-module viewcounter

Tracks SilverStripe page views/visitors/hits in a simple counter record

image

chillu/viewcounter

Tracks SilverStripe page views/visitors/hits in a simple counter record

  • Monday, February 22, 2016
  • by chillu
  • Repository
  • 1 Watchers
  • 3 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Simple View Counts for SilverStripe records

Build Status, (*1)

Tracks page views in a simple counter record, and the behaviour is applied to any DataObject subclass through an extension. This approach of a separate counter record is particularly handy if you apply it to Versioned objects like SiteTree, since you can store the view data independently of staging and live concerns., (*2)

Views are limited by session. This is a slightly simplistic approach, since it doesn't use other criteria such as the current IP address or browser cookies to prevent abuse. Common web crawlers and search engine bots are excluded from view counts., (*3)

Usage

Add the following to your YAML config (e.g. mysite/_config/config.yml):, (*4)

MyRecordClass:
    extensions:
        - ViewCountableExtension

Views stored in a ViewCount record which relates to your record class. If applying the extension to a SiteTree subclass, views are automatically tracked. For other classes, call trackViewCount() in your own controller init() method., (*5)

The Versions

22/02 2016

dev-master

9999999-dev http://silverstripe.org

Tracks SilverStripe page views/visitors/hits in a simple counter record

  Sources   Download

BSD-3-Clause

The Requires

 

analytics tracking silverstripe