-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add trackers 1. add twitter tracker 2. add google analytics tracker * refactor: uglify twitter.js
- Loading branch information
Showing
6 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
window.dataLayer = window.dataLayer || [] | ||
function gtag() { | ||
dataLayer.push(arguments) | ||
} | ||
gtag('js', new Date()) | ||
|
||
gtag('config', 'G-WVH440CNZ3') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
!function(e,t,n,s,u,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments); | ||
},s.version='1.1',s.queue=[],u=t.createElement(n),u.async=!0,u.src='https://static.ads-twitter.com/uwt.js', | ||
a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(u,a))}(window,document,'script'); | ||
twq('config','o6uy5'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
// https://github.com/vercel/vercel/discussions/5230 | ||
// VERCEL_URL doesn't work on custom domains, so we need NEXT_BASE_URL | ||
|
||
const DOMAIN = process.env.NEXT_BASE_URL || process.env.VERCEL_URL | ||
export const BASE_URL = DOMAIN ? `https://${DOMAIN}` : '/' | ||
// https://github.com/vercel/vercel/discussions/5230 | ||
// VERCEL_URL doesn't work on custom domains, so we need NEXT_BASE_URL | ||
|
||
const DOMAIN = process.env.NEXT_BASE_URL || process.env.VERCEL_URL | ||
export const IS_PROD = process.env.NEXT_PUBLIC_VERCEL_ENV === 'production' | ||
export const BASE_URL = DOMAIN ? `https://${DOMAIN}` : '/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15a6cf2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nervos-official-website – ./
nervos-official-website-magickbase.vercel.app
nervos-official-website-git-main-magickbase.vercel.app
nervos-official-website.vercel.app
nervos.org
www.nervos.org