Code Monkey home page Code Monkey logo

tracking's Introduction

Tracking pro Nette Framework

Nastaveni

config.neon

extensions:
    tracking: NAttreid\Tracking\DI\TrackingExtension

Možné nastavení

tracking:
    trackUrl: 'track'
    clickUrl: 'clickTrack'
    minTimeBetweenVisits: 30 # v minutach
    onlineTime: 3 # v minutach
    anonymizeIp: false
    trackBot: false # ukládat i roboty?

A přidat do orm model trackingu. V příkladu je extension orm pod nazvem orm

orm:
    add:
        - NAttreid\Tracking\Model\Orm

Použítí

/** @var \NAttreid\Tracking\Tracking @inject */
public $tracking;

Klient

<script async type="text/javascript" src="/js/tracking/nTracker.min.js"></script>

Trackování kliků

Do html elementu přidate atribut data-nctr="nazev_ktery_chcete_logovat". Pro doplňující informace slouží atribut data-ncval="hodnota" a pokud chcete hodnoty slučovat nebo průměrovat, tak k tomu slouží atributy data-ncavg="hodnota" a data-ncsum="hodnota"

<a href="/test" data-nctr="testingPage" data-ncval="test" data-ncavg="5" data-ncsum="10">Test</a>

tracking's People

Contributors

attreid avatar

Watchers

James Cloos avatar  avatar

tracking's Issues

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.