This repository has been archived by the owner on Aug 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Channel events through flash instead of rendering them to the page.
All methods except for events are now ignored.
- Loading branch information
Duarte Henriques
committed
Oct 8, 2012
1 parent
c2e5ad1
commit 2842dfc
Showing
6 changed files
with
21 additions
and
57 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
<script type="text/javascript"> | ||
var Analytical = { | ||
track: function(page) { | ||
<%= raw analytical.now.track('__PAGE__').gsub(/"__PAGE__"/,'page') %> | ||
}, | ||
event: function(name, data) { | ||
if (typeof data === 'undefined') { data = {}; } | ||
<%= raw analytical.now.event('__EVENT__', {}).gsub(/"__EVENT__"/,'name').gsub(/"?\{\}"?/,'data') %> | ||
if (typeof data === 'undefined') { | ||
data = {}; | ||
} | ||
<%= raw analytical.now.event('__EVENT__', {}).gsub(/"__EVENT__"/, 'name').gsub(/"?\{\}"?/, 'data') %> | ||
} | ||
}; | ||
</script> |
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
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
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
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
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