Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit f759941

Browse files
committed
Invoke ga page change event
1 parent ac7d4a3 commit f759941

File tree

1 file changed

+3
-0
lines changed
  • velog-frontend/src/containers/base

1 file changed

+3
-0
lines changed

velog-frontend/src/containers/base/Core.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ class Core extends Component<Props> {
5757
listenHistory = () => {
5858
const { history } = this.props;
5959
this.unlisten = history.listen((location, type) => {
60+
if (window.gtag) {
61+
window.gtag('config', 'UA-125599395-1', { page_path: location.pathname });
62+
}
6063
CommonActions.changeRoute({
6164
type,
6265
...location,

0 commit comments

Comments
 (0)