Skip to content

Commit

Permalink
Add google analytics (#667)
Browse files Browse the repository at this point in the history
* Add ga script

* 1.12.10

* Fix github actons build
  • Loading branch information
garethfuller authored Aug 11, 2021
1 parent 03ca7dc commit 936ab14
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ VUE_APP_IPFS_NODE=ipfs.fleek.co
VUE_APP_NETWORK=42
VUE_APP_BLOCKNATIVE_DAPP_ID=032e2fb8-6c66-46a5-bf1c-a049ac7eded2
VUE_APP_FATHOM_SITE_ID=xxx
VUE_APP_GA_ID=xxx
SUBGRAPH_URL=https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-kovan-v2
1 change: 1 addition & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

env:
VUE_APP_FATHOM_SITE_ID: xxx
VUE_APP_GA_ID: xxx

jobs:
Version:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@balancer-labs/frontend-v2",
"version": "1.12.9",
"version": "1.12.10",
"engines": {
"node": "14.x",
"npm": ">=7"
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 @@
app_id: "odpifrqb",
};
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-EQ0ETJWLKD"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
// https://developers.google.com/gtagjs/devguide/consent#in-page-code
gtag('consent', 'default', {
'ad_storage': 'denied',
'analytics_storage': 'denied'
});
gtag('config', '<%= VUE_APP_GA_ID %>', { 'anonymize_ip': true });
</script>
<script>
// We pre-filled your app ID in the widget URL: 'https://widget.intercom.io/widget/odpifrqb'
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/odpifrqb';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);};if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();
Expand Down

3 comments on commit 936ab14

@vercel
Copy link

@vercel vercel bot commented on 936ab14 Aug 11, 2021

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 936ab14 Aug 11, 2021

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:

app – ./

app.balancer.fi
pm2.vercel.app
app-balancer.vercel.app
app-git-master-balancer.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 936ab14 Aug 11, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.