Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LIVENATION.omniture = new Class({
- accepted_properties: ['pageName','channel','pageType','prop1','prop2','prop3',
- 'prop4','prop5','prop6','prop7','prop8','prop9','prop10','prop11','prop12','prop13',
- 'prop14','prop15','prop16','prop17','prop18','prop19','prop20','prop21','prop22',
- 'prop23','prop24','prop25','prop26','prop27','prop28','prop29','prop30','campaign',
- 'state','zip','events','products','purchasID','eVar1','eVar2','eVar3','eVar4',
- 'eVar5','eVar6','eVar7','eVar8','eVar9','eVar10','eVar11','eVar12','eVar13','eVar14',
- 'eVar15','eVar16','eVar17','eVar18','eVar19','eVar20','eVar21','eVar22','eVar23','eVar24',
- 'eVar25','eVar26','eVar27','eVar28','eVar29','eVar30','eVar31','eVar32','eVar33','eVar34',
- 'eVar35','linkTrackVars','linkTrackEvents'],
- initialize: function(){
- self = this;/*
- this commented code can be uncommented to provide for a JavaScript-only implementation of Omniture
- self.accepted_properties.each(function(value, index){
- if($type(LIVENATION.registry.omniture[value]) == 'string'){
- s[value] = LIVENATION.registry.omniture[value];
- } else {
- s[value] = ''; // set to blank if not specified
- }
- });
- self.send();*/
- },
- send: function(property_hash, /*optional*/ anchor, /*optional*/ link_name){
- var self = this;
- if ($defined(anchor) && $defined(anchor.get) && anchor.get('tag') == 'a'){
- s.linkTrackVars = '';
- s.linkTrackEvents='None';
- $each(property_hash, function(value, key){
- if(self.accepted_properties.contains(key)){
- s[key] = value;
- s.linkTrackVars += key + ',';
- }
- });
- s.tl(anchor,'o', link_name);
- } else {
- s.t();
- }
- }
- });
Add Comment
Please, Sign In to add comment