mryarbles / omniturelibrary

Jquery omniture event library and generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Omniture Library

This is a utility to make the implementation of omniture easier.

Basic Usage

Tutorial: http://tmspreview.com/tmslibrary/tutorial/

1) Include the library js file, analytics library, and omniture s_code.js.

[script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> [script src="analytics.js"></script> [script src="omniture.library.example.js"></script> [script src="s_code.js"></script>

2) Instantiate the tracking object. library is object from the omniture.library.example.js file. s is the Omniture object.

var omni = new ssla.analytics.Omniture(library,s);

3) Send event

omni.sendId();

4) To send a "custom" event.

var obj = omni.getItem("custom"); var section = "Game"; var p46 = obj.prop46; // split the prop46 string and join it with the custom section name. obj.prop46 = prop46.split("[section]").join(section); var n = obj.name; obj.name = n.split("[section]").join(section.toLowerCase()); omni.send(obj);

<script src="jquery.omniturecontroller.js"></script>

About

Jquery omniture event library and generator


Languages

Language:CSS 46.1%Language:PHP 30.0%Language:JavaScript 23.4%Language:HTML 0.5%