Skip to content

Commit

Permalink
send hostname to google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Aug 22, 2024
1 parent 1d21abe commit dfa600a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/components/GoogleAnalytics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const GoogleAnalytics = () => {
function gtag(){window.dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', ga4Tag);
gtag('config', ga4Tag, {
'page_title': window.location.host
} );
}, []);

return (
Expand Down

0 comments on commit dfa600a

Please sign in to comment.