debian-mirror-gitlab/app/assets/javascripts/pages/registrations/new/index.js
2022-07-16 19:58:13 +02:00

16 lines
557 B
JavaScript

import { trackNewRegistrations } from '~/google_tag_manager';
import NoEmojiValidator from '~/emoji/no_emoji_validator';
import LengthValidator from '~/pages/sessions/new/length_validator';
import UsernameValidator from '~/pages/sessions/new/username_validator';
import Tracking from '~/tracking';
new UsernameValidator(); // eslint-disable-line no-new
new LengthValidator(); // eslint-disable-line no-new
new NoEmojiValidator(); // eslint-disable-line no-new
trackNewRegistrations();
Tracking.enableFormTracking({
forms: { allow: ['new_user'] },
});