FEAT: add umami tracking script
This commit is contained in:
		
							
								
								
									
										6
									
								
								app.vue
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								app.vue
									
									
									
									
									
								
							| @@ -3,8 +3,10 @@ | |||||||
| </template> | </template> | ||||||
|  |  | ||||||
| <script setup> | <script setup> | ||||||
| // @todo : laod datas as plugin/middleware (cant load pinia in plugin/middleware) ? | console.log('laucnh usehead') | ||||||
| onMounted(async ()=>{ | useHead({ scripts: [{ src: 'https://umami.erudi.fr/script.js', 'data-website-id': '727afcbf-3cb1-4874-8228-88d147e19ad8', defer: true }] }) | ||||||
|  | // @todo : load datas as plugin/middleware (cant load pinia in plugin/middleware) ? | ||||||
|  | onMounted(async () => { | ||||||
|   const dataStore = await useDataStore() |   const dataStore = await useDataStore() | ||||||
|   await dataStore.loadData() |   await dataStore.loadData() | ||||||
| }) | }) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user