PageSourceSearch

http://mitdev.com/MITDEV%20website%20-%20Home_files/Tracking.js

js mitdev.com collected 2026-10-09 03:56:28 UTC 3,618 bytes, 101 lines download raw bytes

1var Tracking = {};
2
3var _gaq = _gaq || [];
4Tracking.Started = Array(); 
5
6/**
7Start the IM internal tracking.
8*/
9Tracking.StartImTracking = function()
10{
11	var trackerUid = '';
12	Tracking.Start(trackerUid, 'UA-21520422-1', '.imcreator.com');
13}
14
15
16/**
17Track an IM event in real-time.
18Note: we use trackPageview instead of the events API, since events cannot be used in a funnel. See: http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=6f64144370bbe0a1&hl=en
19@param {String}		eventString		A unique string which represnets this event. e.g. PublishClicked or ElementAdded?Key=PictureBox
20*/
21Tracking.TrackImEvent = function(eventString)
22{
23	var trackerUid = '';
24	Tracking.TrackEvent(trackerUid, eventString);
25}
26
27
28/**
29Start tracking the specified website.
30@param {String}		trackerUid		An arbitrary string which uniquely represents the website we are tracking.
31@param {String}		gaAccount		The Google Analytics tracking ID. e.g. UA-12345678-1
32*/
33Tracking.Start = function(trackerUid, gaAccount)
34{
35	
36	
37	Tracking.Started[trackerUid] = 1;
38	//alert("Start | " + trackerUid + " | " + gaAccount);
39	//_gaq.push([trackerUid + '._setAccount', gaAccount]);
40
41	  _gaq.push(['_setAccount', 'UA-21520422-1']);
42	  _gaq.push(['_setAllowLinker', true]);
43	  _gaq.push(['_addIgnoredRef', 'imcreator.com']);
44	  _gaq.push(['_addIgnoredRef', 'i-m.co']);
45	  _gaq.push(['_addIgnoredRef', 'im-creator.appspot.com']);
46	  _gaq.push(['_addIgnoredRef', 'im-creator-hr.appspot.com']);
47	  _gaq.push(['_setDomainName', '.imcreator.com']);
48	  _gaq.push(['_trackPageview']);
49	  
50	  
51	  setTimeout("_gaq.push(['_trackEvent', '15_seconds', 'read'])", 15000);
52	  
53	
54	
55	(function()
56	{
57		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
58		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
59		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
60	})();
61
62}
63
64
65/**
66Track a page view in real-time.
67@param {String}		trackerUid		An arbitrary string which uniquely represents the website we are tracking.
68@param {String}		page			A unique string which represents this page.
69*/
70Tracking.TrackPageView = function(trackerUid, page)
71{
72	if (!Tracking.Started[trackerUid])
73	{
74		debug.error("Not ready yet:" + trackerUid);
75	}
76	//alert("TrackPageView | " + trackerUid + " | " + page);
77	if ((window.location.href.indexOf('localhost') != -1) || (window.location.href.indexOf('gotdns.com') != -1)) return;
78	_gaq.push([trackerUid + '._trackPageview', page]);
79}
80
81/**
82Track an event in real-time.
83Note: we use trackPageview instead of the events API, since events cannot be used in a funnel. See: http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=6f64144370bbe0a1&hl=en
84@param {String}		trackerUid		An arbitrary string which uniquely represents the website we are tracking.
85@param {String}		eventString		A unique string which represents this event. e.g. PublishClicked or ElementAdded?Key=PictureBox
86*/
87Tracking.TrackEvent = function(trackerUid, eventString)
88{
89	if (!Tracking.Started[trackerUid])
90	{
91		debug.error("Not ready yet:" + trackerUid);
92	}
93	//alert("TrackEvent | " + trackerUid + " | " + eventString);
94	if (eventString.indexOf('fb_gen/') == 0)
95	{
96		console.log("TrackEvent | " + trackerUid + " | " + eventString);
97	}
98	if ((window.location.href.indexOf('localhost') != -1) || (window.location.href.indexOf('gotdns.com') != -1)) return;
99	_gaq.push([trackerUid + '._trackPageview', '/events/' + eventString]);
100}
101

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.