Skip to content
ASP.NET Core lightweight server-side code that generator library that JavaScript client-side on the fly for Google Analytics Web API.
C# PowerShell Shell Batchfile
Branch: dev
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
sample
src
test
wiki/images
.gitattributes
.gitignore
Analytics.sln
Analytics.sln.licenseheader
LICENSE
NuGet.config
README.md
appveyor.yml
build.cmd
build.ps1
build.sh
korebuild-lock.txt
korebuild.json
run.cmd
run.ps1
run.sh

README.md

Wangkanai Analytics

Build status NuGet Pre Release

What is Wangkanai Analytics?

Wangkanai Analytics is a .NET Core lightweight server-side code that generator library that JavaScript client-side on the fly for Google Analytics analytics.js. The goal of the framework is to stay out of the way as much as possible and provide a super interaction with Google all from C#.

Installation

Add the NuGet package to your project.

PM> install-package Wangkanai.Analytics -pre

Add the service to your web app.

public void ConfigureServices(IServiceCollection services)
{
    // Add application services.
    services.AddAnalytics("UA-XXXX-Y");

    // Add framework services.
    services.AddMvc();    
}

Using IntelliSense

AddAnalytics IntelliSense

AddAnalytics TrackerId

Official Plugins extensions

public void ConfigureServices(IServiceCollection services)
{
    // Add application services.
    services.AddAnalytics("UA-XXXX-Y")
        .AddDisplayFeatures()
        .AddLinkAttribution()
        .AddLinker(); 

    // Add framework services.
    services.AddMvc();       
}
public void ConfigureServices(IServiceCollection services)
{
    // Add application services.
    services.AddAnalytics("UA-XXXX-Y")
        .AddEcommerce();        

    // Add framework services.
    services.AddMvc();
}
public void ConfigureServices(IServiceCollection services)
{
    // Add application services.
    services.AddAnalytics("UA-XXXX-Y")
        .AddEcommerceEnhanced(); 

    // Add framework services.
    services.AddMvc();       
}

Where it originated from?

This original library that was introduced in CodePlex. The library was for .NET Framework web application to render analytics.js javascript client-side to interact with Google API from .NET language web application within the server-side code environment. Both ASP.NET WebForm and ASP.NET MVC. Its was good, but we would like to see a much more extensible and ambust platform, so we are rewriting the entire framework.

How do i contribute?

Universal Analytics is a powerful and continuous improving platform. We would like to invite developers to help maintain and add features so that this library is keep aligned with most of the popular web analytics out there.

mvc showcase

You can’t perform that action at this time.