Skip to content

Commit

Permalink
feat: add gtag
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio La Barbera committed Sep 11, 2024
1 parent 774df74 commit 2fde120
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VITE_ENV="development"
VITE_TELEGRAM_BOT_URL=""
VITE_TELEGRAM_MANIFEST_URL=""
VITE_TON_CONTRACT_ADDRESS=""
VITE_TON_CONTRACT_ADDRESS=""
VITE_GTAG_ID=""
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ VITE_ENV="production"
VITE_TELEGRAM_BOT_URL="https://t.me/x2lotterybot"
VITE_TELEGRAM_MANIFEST_URL="https://gradoally.github.io/x2lottery/tonconnect-manifest.json"
VITE_TON_CONTRACT_ADDRESS="EQCnuaUFX1fxduNk5QvUMlexRmwHM08jfO5_zpQpkXjeWbL7"
VITE_GTAG_ID="G-0R6KDGMBJS"
16 changes: 16 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
/>

<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=%VITE_GTAG_ID%"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "%VITE_GTAG_ID%");
</script>

<title>x2Lottery</title>
</head>
<body class="bg-gray-950 text-white h-screen select-none">
Expand Down

0 comments on commit 2fde120

Please sign in to comment.