Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
[1.1.11] Track filter page changes without state
Browse files Browse the repository at this point in the history
  • Loading branch information
marky291 committed Aug 10, 2019
1 parent 19af18e commit aaa68b5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
| and that deployments are loading the correct filesource.
|
*/
'version' => '1.1.10',
'version' => '1.1.11',

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"/js/app.js": "/js/app.js?id=d7fc268c3ecd987a842b",
"/js/app.js": "/js/app.js?id=6ebfc190e0d0167c7279",
"/css/app.css": "/css/app.css?id=154aa5a6741058a03501"
}
6 changes: 4 additions & 2 deletions resources/js/components/FilteredListingSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
},
methods: {
filterChanged: function() {
let filter = "api/servers/" + this.rates + "/" + this.mode + "/" + this.tag + "/" + this.sort + "/" + this.paginate;
ga('send', 'event', 'Filter Changed', 'viewing', filter);
let filter = "/api/servers/" + this.rates + "/" + this.mode + "/" + this.tag + "/" + this.sort + "/" + this.paginate;
this.$emit('filter:changed', filter);
ga('set', 'page', filter);
ga('send', 'pageview');
ga('send', 'event', 'Filter Changed', 'viewing', filter);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/layouts/frame.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</div>

<script src="{{ mix('/js/app.js') }}"></script>
@if (app()->environment('production'))
@if (app()->environment('local'))
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-117148224-4', 'auto');
Expand Down

0 comments on commit aaa68b5

Please sign in to comment.