Adds Google Analytics to a WebPage
Step 1
import { GoogleAnalytics } from "mui-extended"; const myPage = () => { return ( <> <GoogleAnalytics /> {/* Page Content */} </> ); };
Step 2.
Enable and collect Analitics Id in Google Analytics Account.
Refer Google Support for help.
Step 3.
set environmental variable
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID
Write an email to opensource@sodaru.com