diff --git a/.meteor/packages b/.meteor/packages index 6130c3c..d6bd004 100644 --- a/.meteor/packages +++ b/.meteor/packages @@ -12,3 +12,5 @@ iron:router accounts-ui accounts-google accounts-facebook +reywood:iron-router-ga + diff --git a/.meteor/versions b/.meteor/versions index 81460b1..6312858 100644 --- a/.meteor/versions +++ b/.meteor/versions @@ -66,6 +66,7 @@ reactive-dict@1.0.4 reactive-var@1.0.3 reload@1.1.1 retry@1.0.1 +reywood:iron-router-ga@0.4.0 routepolicy@1.0.2 service-configuration@1.0.2 session@1.0.4 diff --git a/lib/router.js b/lib/router.js index cef4284..cbb833e 100644 --- a/lib/router.js +++ b/lib/router.js @@ -1,7 +1,8 @@ Router.configure({ layoutTemplate: 'layout', loadingTemplate: 'loading', - notFoundTemplate: 'notFound' + notFoundTemplate: 'notFound', + trackPageView: true }); Router.route('/', { diff --git a/settings.json b/settings.json new file mode 100644 index 0000000..bc3801d --- /dev/null +++ b/settings.json @@ -0,0 +1,7 @@ +{ + "public": { + "ga": { + "id": "UA-2700248-16" + } + } +}