Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!

Omni.js: Modernized Adobe Omniture Analytics JavaScript API

Avatar

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