Skip to content

Commit

Permalink
chore(ga): Add Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenme committed Feb 21, 2019
1 parent 0a5fa07 commit 73432e2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hacker-tab-extension",
"version": "1.0.1",
"version": "1.0.2",
"description": "Chrome extension for hackers",
"license": "MIT",
"keywords": [
Expand Down
13 changes: 13 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@
background-size: 100%;
}
</style>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-134959994-1"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());

gtag('config', 'UA-134959994-1');
</script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Hacker Tab",
"author": "Hu Chen",
"version": "1.0.1",
"version": "1.0.2",
"description": "Replace new tab screen with GitHub trending projects.",
"incognito": "split",
"icons": {
Expand Down

1 comment on commit 73432e2

@vercel
Copy link

@vercel vercel bot commented on 73432e2 Feb 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully aliased the URL https://hacker-tab-extension-pmaqqxmimy.now.sh to the following alias.

Please sign in to comment.