mirror of
				https://github.com/valentineus/popov.link.git
				synced 2025-11-04 06:49:45 +03:00 
			
		
		
		
	Add Analytics component to BaseLayout
This commit is contained in:
		
							
								
								
									
										5
									
								
								src/components/Analytics.astro
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								src/components/Analytics.astro
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					const id = "T5X0z12SoASBV8Dv";
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<script is:inline src={`https://appmetrix.com/pixel/${id}`}></script>
 | 
				
			||||||
@@ -1,4 +1,5 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
 | 
					import Analytics from "../components/Analytics.astro";
 | 
				
			||||||
import Head from "../components/Head.astro";
 | 
					import Head from "../components/Head.astro";
 | 
				
			||||||
import Header from "../components/Header.astro";
 | 
					import Header from "../components/Header.astro";
 | 
				
			||||||
import "../scss/global.scss";
 | 
					import "../scss/global.scss";
 | 
				
			||||||
@@ -19,5 +20,6 @@ const { title, description } = Astro.props;
 | 
				
			|||||||
		<main>
 | 
							<main>
 | 
				
			||||||
			<slot />
 | 
								<slot />
 | 
				
			||||||
		</main>
 | 
							</main>
 | 
				
			||||||
 | 
							<Analytics />
 | 
				
			||||||
	</body>
 | 
						</body>
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user