simple mixtracking
This commit is contained in:
parent
cf884fb1c9
commit
d8470d303a
3 changed files with 10 additions and 1 deletions
|
|
@ -67,6 +67,12 @@ var app = {
|
||||||
delete window.preloads[prop] //prevent dirty state across navigates
|
delete window.preloads[prop] //prevent dirty state across navigates
|
||||||
|
|
||||||
return(preload)
|
return(preload)
|
||||||
|
},
|
||||||
|
|
||||||
|
/* mixpanel wrapper function */
|
||||||
|
track : function() {
|
||||||
|
if(!window.mixpanel) { return }
|
||||||
|
window.mixpanel[arguments[0]](_.toArray(arguments).slice(1))
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,9 @@ app.views.Post.CanvasFrame = app.views.Post.SmallFrame.extend({
|
||||||
app.page.stream.trigger("reLayout")
|
app.page.stream.trigger("reLayout")
|
||||||
//trigger moar relayouts in the case of images WHOA GROSS HAX
|
//trigger moar relayouts in the case of images WHOA GROSS HAX
|
||||||
_.delay(function(){app.page.stream.trigger("reLayout")}, 200)
|
_.delay(function(){app.page.stream.trigger("reLayout")}, 200)
|
||||||
|
|
||||||
|
// track the action
|
||||||
|
app.track("track", "Resize Frame")
|
||||||
},
|
},
|
||||||
|
|
||||||
killPost : function(){
|
killPost : function(){
|
||||||
|
|
|
||||||
|
|
@ -15,4 +15,4 @@ describe("app", function() {
|
||||||
expect(app.user().get("name")).toEqual("alice");
|
expect(app.user().get("name")).toEqual("alice");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue