Skip to content

Commit a798d4e

Browse files
authored
added google analytics key in env add change in html file
1 parent 567cef8 commit a798d4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Contact from './component/Contact'
55
import Header from './component/Header';
66
import Footer from './component/Footer';
77
import ReactGA from 'react-ga';
8-
const TRACKING_ID = "UA-180090671-1"; // OUR_TRACKING_ID
8+
const TRACKING_ID = process.env.REACT_APP_G_ANALYTICS_ID // OUR_TRACKING_ID
99
ReactGA.initialize(TRACKING_ID);
1010
ReactGA.pageview(window.location.pathname);
1111
function App() {

src/component/SocialMedia.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const SocialMedia = () => {
3434
<h2 className='text-center font-bold text-xl underline'>Social media</h2>
3535
<div className='flex justify-center gap-x-2'>
3636
{SocialIcons.map((item) => (
37-
<div className='cursor-pointer' onClick={() => openUrl(item.url)}><img className='w-10 h-10' alt={item.name} src={item.img} /></div>
37+
<div key={item.id} className='cursor-pointer' onClick={() => openUrl(item.url)}><img className='w-10 h-10' alt={item.name} src={item.img} /></div>
3838
))}
3939
</div>
4040
</div>

0 commit comments

Comments
 (0)