summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/_router.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-08-05 12:23:06 +0200
committerJules Laplace <julescarbon@gmail.com>2020-08-05 12:23:06 +0200
commitd738bb120f86d491729a928cec275ff26c90cc09 (patch)
tree74d8354d28d4e837586c84b8aa2f338c78e7e41e /StoneIsland/www/js/lib/_router.js
parent371bbbb0a4dc3e6c44d3c4b91e330002c078cd78 (diff)
adding analytics to push notifications
Diffstat (limited to 'StoneIsland/www/js/lib/_router.js')
-rwxr-xr-xStoneIsland/www/js/lib/_router.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/_router.js b/StoneIsland/www/js/lib/_router.js
index 75f598e9..9feb262a 100755
--- a/StoneIsland/www/js/lib/_router.js
+++ b/StoneIsland/www/js/lib/_router.js
@@ -101,6 +101,7 @@ var SiteRouter = Router.extend({
}
// window.FirebasePlugin && window.FirebasePlugin.setScreenName(name)
+ analytics.send(name)
console.log("view >>", app.view)
app.header.set_back( !! app.view.back )
app.view.show()
@@ -128,6 +129,7 @@ var SiteRouter = Router.extend({
if (app.view && app.view.hide) {
app.view.hide()
}
+ analytics.send('store/' + code)
app.view = app.product
app.header.set_back( true )
app.product.load(code)