This might be late for you but I hope this helps someone. I have written two tutorials for both SPA website and for Cordova how to set up Google Tag Manager / Google Analytics:
https://jannerantala.com/tutorials/quasar-framework-google-tag-manager-and-analytics-setup-for-an-spa-website/
https://jannerantala.com/tutorials/quasar-framework-google-analytics-setup-for-cordova-app/
J
Best posts made by jannerantala
-
RE: Trying to install Google Analytics. Very confused!
-
RE: how can i set a default header with the jwt-token in all the request after login
@thamibn I always set the Axios header after the login. Before the login all requests are made without the Bearer token:
this.$http.post('/login', { username: this.email, password: this.password }) .then(res=> { localStorage.token = res.token; this.$http.defaults.headers.common['Authorization'] = 'Bearer ' + localStorage.token; })
Latest posts made by jannerantala
-
RE: how can i set a default header with the jwt-token in all the request after login
@thamibn I always set the Axios header after the login. Before the login all requests are made without the Bearer token:
this.$http.post('/login', { username: this.email, password: this.password }) .then(res=> { localStorage.token = res.token; this.$http.defaults.headers.common['Authorization'] = 'Bearer ' + localStorage.token; })
-
RE: Trying to install Google Analytics. Very confused!
This might be late for you but I hope this helps someone. I have written two tutorials for both SPA website and for Cordova how to set up Google Tag Manager / Google Analytics:
https://jannerantala.com/tutorials/quasar-framework-google-tag-manager-and-analytics-setup-for-an-spa-website/
https://jannerantala.com/tutorials/quasar-framework-google-analytics-setup-for-cordova-app/