madhon / GAT

GAT is a library for google analytics based page tracking for any desktop or mobile application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GAT

This is a library for google analytics based page tracking for any desktop or mobile application

To use the GAT library, create an instance of AnalyticsSession every time you run your application.

There are two modes of tracking

  • Non persistent - meaning that each time you create a new session it will be treated as a new user as well
  • Persistent - if your application can persist three specific tracking values then you can ensure user uniqueness
    • "First session timestamp"
    • "Current visit count (previous visit count + 1)"
    • "Random number created on first visit"

Usage:

var session = new AnalyticsSession("DOMAIN.COM", "UA-XXXXXXXX-X");* // non persistent
var session = new AnalyticsSession("DOMAIN.COM", "UA-XXXXXXXX-X", rndNumber, visitCount, firstVisitTimestamp);* // persistent

var page = session.CreatePageViewRequest("/Root/MyPage", "MyPage");
page.Send();

About

GAT is a library for google analytics based page tracking for any desktop or mobile application

License:Other


Languages

Language:C# 100.0%