From 7a93851badd6823a41e69716237e3020b7b6a31c Mon Sep 17 00:00:00 2001 From: Birdman Date: Fri, 4 Feb 2022 17:29:51 -0600 Subject: [PATCH] Add ID as env variable --- pages/_app.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/_app.tsx b/pages/_app.tsx index b9efb77..6b3f5ef 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -18,7 +18,7 @@ import Layout from '../components/Layout'; function MyApp({ Component, pageProps }: AppProps) { // Production MixPanel -> Bankless DAO - const MIX_PANEL_ID = '0715c4ae0cba2709f3d752f073ef2824' + const MIX_PANEL_ID = process.env.MIX_PANEL_ID const DEBUG = false // Development MixPanel -> Bankless DAO Dev @@ -42,11 +42,11 @@ function MyApp({ Component, pageProps }: AppProps) { (function(f,b){if(!b.__SV){var e,g,i,h;window.mixpanel=b;b._i=[];b.init=function(e,f,c){function g(a,d){var b=d.split(".");2==b.length&&(a=a[b[0]],d=b[1]);a[d]=function(){a.push([d].concat(Array.prototype.slice.call(arguments,0)))}}var a=b;"undefined"!==typeof c?a=b[c]=[]:c="mixpanel";a.people=a.people||[];a.toString=function(a){var d="mixpanel";"mixpanel"!==c&&(d+="."+c);a||(d+=" (stub)");return d};a.people.toString=function(){return a.toString(1)+".people (stub)"};i="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" "); for(h=0;h