Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Omni.js: Modernized Adobe Omniture Analytics JavaScript API

fatih_kadir_aki
Level 1
Level 1

Hi folks!

Nowadays I'm working with Adobe Omniture and saw that current analytics JavaScript API is kind of dirty, or you can make your code dirty. So I've decided to build a simple layer on current 1.2.1 version API and created Omni.js which is functional, very easy and customizable and tiny.

You can install it using bower.

bower install omnijs

After you installed and included it into your HTML; you can simply create an instance:

var s = omni("namespace") .route(/index.html$/, function () { this.set("pageName", "Index Page"); this.evar(1, "Opening Index Page"); }) .run();

This makes your code clear, readable and more managable.

You can check the Github Repo out to get more information!

Hope you like and use it 🙂 If you like here it is. It's also open for contributions 🙂

Thank you so much!

https://github.com/metglobal/omni.js

-- Fatih
 

0 Replies