Created
December 27, 2010 04:48
-
-
Save bradhintze/755870 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var d = document; | |
var s = d.createElement('script'); | |
s.text = "KOBJ_config={'a60x22:kynetx_app_version':'dev','rids':['a60x22']};"; | |
d.body.appendChild(s); | |
var l = d.createElement('script'); | |
l.src = 'http://init.kobj.net/js/shared/kobj-static.js'; | |
d.body.appendChild(l); | |
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="javascript:(function(){var d=document;var s=d.createElement('script');s.text="KOBJ_config={'a60x22:kynetx_app_version':'dev','rids':['a60x22']};";d.body.appendChild(s);var l=d.createElement('script');l.src='http://init.kobj.net/js/shared/kobj-static.js';d.body.appendChild(l);})()">dev_Web events</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruleset a60x22 { | |
meta { | |
name "Web events" | |
description << | |
demonstrating web events and the urls that go with them | |
>> | |
author "Mike Grace" | |
logging on | |
} | |
rule should_not_run { | |
select when pageview "shouldnotselectbecauseofthiscrazyregex" | |
{ | |
notify("addedNumber",addedNumber) with sticky = true; | |
} | |
} | |
rule should_run { | |
select when pageview ".*" | |
{ | |
emit <| | |
console.log("wohoo!"); | |
|>; | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 2010/12/12 01:29:09 DEBUG Rules.pm a60x22 [global] Found 2 rules for RID a60x22 | |
// 2010/12/12 01:29:09 DEBUG Events.pm a60x22 should_run Adding to schedule: a60x22 & should_run | |
// 2010/12/12 01:29:09 DEBUG Scheduler.pm a60x22 should_run Schedule iterator returning should_run with current RID count 0 and current rule count 1 | |
// 2010/12/12 01:29:09 DEBUG Rules.pm a60x22 should_run Getting ruleset a60x22 for http://example.com/ | |
// 2010/12/12 01:29:09 DEBUG Repository.pm a60x22 should_run Using cached ruleset for a60x22 (dev) with key ruleset:dev:a60x22 & optimization version 7 | |
// 2010/12/12 01:29:09 DEBUG Rules.pm a60x22 should_run Found 2 rules for RID a60x22 | |
// 2010/12/12 01:29:09 INFO Rules.pm a60x22 should_run Processing rules for site a60x22 | |
// 2010/12/12 01:29:09 DEBUG Rules.pm a60x22 should_run Global vars: | |
// 2010/12/12 01:29:09 DEBUG Rules.pm a60x22 should_run Rule should_run is active | |
// 2010/12/12 01:29:09 DEBUG Rules.pm a60x22 should_run [selected] should_run | |
// 2010/12/12 01:29:09 DEBUG Rules.pm a60x22 should_run | |
//------------------- begin rule execution: should_run ------------------------ | |
// 2010/12/12 01:29:09 DEBUG Rules.pm a60x22 should_run Rule not pre optimized... | |
// 2010/12/12 01:29:09 DEBUG Rules.pm a60x22 should_run [rules::optimize_pre] foreach vars: | |
// 2010/12/12 01:29:09 INFO Rules.pm a60x22 should_run fired | |
// 2010/12/12 01:29:09 DEBUG Actions.pm a60x22 should_run blocktype is every | |
// 2010/12/12 01:29:09 DEBUG Actions.pm a60x22 should_run actions list contains 1 actions | |
// 2010/12/12 01:29:09 DEBUG Scheduler.pm a60x22 should_run Moving to next RID | |
// 2010/12/12 01:29:09 DEBUG Scheduler.pm a60x22 should_run Resetting schedule | |
// 2010/12/12 01:29:09 DEBUG Rules.pm a60x22 should_run Finished processing rules for a60x22 | |
// 2010/12/12 01:29:09 DEBUG AST.pm a60x22 should_run Generating JS for a60x22 | |
// 2010/12/12 01:29:09 DEBUG AST.pm a60x22 should_run Generating resource statement for a60x22 | |
// 2010/12/12 01:29:09 DEBUG Log.pm a60x22 should_run [logging] Storing logging data for a60x22 | |
// 2010/12/12 01:29:09 DEBUG Log.pm a60x22 should_run results for should_run | |
// 2010/12/12 01:29:09 DEBUG Log.pm a60x22 should_run TXN_ID: E352BF86-05C9-11E0-8A2A-ECC731FEA127 | |
// 2010/12/12 01:29:09 DEBUG Session.pm a60x22 should_run Cleaning up session | |
// 2010/12/12 01:29:09 INFO Response.pm a60x22 should_run Event processing finished | |
// 2010/12/12 01:29:09 DEBUG Response.pm a60x22 should_run __FLUSH__ | |
// 2010/12/12 01:29:09 DEBUG Response.pm a60x22 should_run Called with GET /blue/event/web/pageview/a60x22/129214254756746356898872181773?kvars=%7B%7D&caller=http%3A%2F%2Fexample.com%2F&referer=&title=Example+Web+Page&endpoint=[object%20Object]&a60x22:kynetx_app_version=dev HTTP/1.0 | |
// 2010/12/12 01:29:09 DEBUG Response.pm a60x22 should_run Returning javascript from evaluation | |
// KNS Sun Dec 12 08:29:09 2010 | |
KOBJ.registerClosure('a60x22', | |
function($K) { | |
(function() { | |
(function() { | |
function callBacks() {}; | |
console.log("wohoo!"); | |
; | |
callBacks(); | |
} ()); | |
} ()); | |
KOBJ.logVerify = KOBJ.logVerify || function(t, a, c) {}; | |
KOBJ.logVerify('E352BF86-05C9-11E0-8A2A-ECC731FEA127', 'a60x22', 'cs.kobj.net'); | |
}, | |
'129214254756746356898872181773' | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://cs.kobj.net/blue/event/web/pageview/a60x22/129214254756746356898872181773?kvars=%7B%7D&caller=http%3A%2F%2Fexample.com%2F&referer=&title=Example+Web+Page&endpoint=[object%20Object]&a60x22:kynetx_app_version=dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment