Add Google Analytics tracking to the video streaming platform
Integrate Google Analytics by adding the gtag.js script to the client's index.html and updating the .replit file to include the javascript_google_analytics integration. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1/gjpMN2A
This commit is contained in:
parent
f97edf35f4
commit
756785ed15
2
.replit
2
.replit
@ -40,4 +40,4 @@ args = "npm run dev"
|
||||
waitForPort = 5000
|
||||
|
||||
[agent]
|
||||
integrations = ["javascript_database==1.0.0"]
|
||||
integrations = ["javascript_google_analytics==1.0.0", "javascript_database==1.0.0"]
|
||||
|
||||
@ -63,6 +63,15 @@
|
||||
<link rel="apple-touch-icon" href="/api/favicon?size=180&format=png" />
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
|
||||
<!-- Google tag (gtag.js) - Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-NNV14K77K3"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-NNV14K77K3');
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="root">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user