Skip to content

Commit

Permalink
chore: move to env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragon-Fish committed Oct 23, 2023
1 parent 17363df commit 4dae973
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
VITE_ADSENSE_PUB_ID =
VITE_GOOGLE_ANALYTICS_ID =
VITE_GOOGLE_SEARCH_CONSOLE_VERIFICATION =
18 changes: 18 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PixivNow</title>

<!-- Google tag (gtag.js) -->
<!-- <script
async
src="https://www.googletagmanager.com/gtag/js?id=%VITE_GOOGLE_ANALYTICS_ID%"
></script>
<script>
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())
gtag('config', '%VITE_GOOGLE_ANALYTICS_ID%')
</script> -->
<!-- Google Search Console -->
<meta
name="google-site-verification"
content="%VITE_GOOGLE_SEARCH_CONSOLE_VERIFICATION%"
/>
<!-- Google AdSense -->
<script
async
Expand Down
1 change: 0 additions & 1 deletion public/google7c0ecff80d72fc96.html

This file was deleted.

0 comments on commit 4dae973

Please sign in to comment.