Skip to content

Commit

Permalink
Connect Monetag
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyTapok-bit committed Jun 17, 2024
1 parent 979b449 commit 9b0fbff
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/.vuepress/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ const head = []
const PRODUCTION = true ?? process.env.PRODUCTION
const GTAG = process.env.GTAG
const ADSENSE = process.env.ADSENSE
const MONETAG = "6f9bca78ef751283975bfdda408ebda7"
const MONETAG_ZONE = 73276

const IS_GTAG = PRODUCTION && GTAG
const IS_ADSENSE = PRODUCTION && ADSENSE
const IS_MONETAG = PRODUCTION && MONETAG

// Google tag (gtag.js)
if (IS_GTAG) head.push([
Expand All @@ -32,4 +35,22 @@ if (IS_ADSENSE) head.push([
])
// End Google AdSense

// Monetag
if (IS_MONETAG) head.push([
"meta", {
name: "monetag",
content: MONETAG
}
])

if (IS_MONETAG_ZONE) head.push([
"script", {
src: "https://alwingulla.com/88/tag.min.js",
"data-zone": MONETAG_ZONE,
"data-cfasync": "false",
async: true
}
])
// End Monetag

export default head
1 change: 1 addition & 0 deletions src/.vuepress/public/sw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9b0fbff

Please sign in to comment.