Skip to content

Commit

Permalink
Fix user register GA event track (#475)
Browse files Browse the repository at this point in the history
* Fix user register GA track

* run prettify
  • Loading branch information
aerrasti committed Jun 13, 2022
1 parent d022360 commit f02b1f3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions frontend/src/components/Web/Forms/register.tsx
Expand Up @@ -22,7 +22,7 @@ import * as Yup from 'yup';
import { ROUTE_SIGN_IN, ROUTE_PRIVACY_POLICY } from '@/app.config';
import i18nConfig from '@/i18n';
import { useAuth } from '@/contexts/AuthContext';
import { dataLayerPush } from '@/lib/analytics';
import { pushPageViewDataLayer } from '@/lib/analytics';
import { CREATE_USER } from '@/lib/gql/User';
import FormikForm from '@/ui/Form';
import Input from '@/components/Common/Fields/Input';
Expand Down Expand Up @@ -202,11 +202,7 @@ const Register = () => {
console.log('[STOOA] submit error', res);
} else {
await login(values.email, values.password).then(res => {
dataLayerPush({
dataLayerPush: 'GAPageView',
pageViewUrl: '/user-registered',
pageViewTitle: 'User registered'
});
pushPageViewDataLayer({ url: '/user-registered', title: 'User registered' });
});
}
};
Expand Down

0 comments on commit f02b1f3

Please sign in to comment.