import { user_properties, params, user_id, method } from '../ga4-properties';
import { updateUser } from '../ga4-functions';
const action = {
    title: 'Sign Up',
    description: 'The method used for sign up.',
    defaultSubscription: 'type = "track" and event = "Signed Up"',
    platform: 'web',
    fields: {
        user_id: user_id,
        method: method,
        user_properties: user_properties,
        params: params
    },
    perform: (gtag, { payload }) => {
        updateUser(payload.user_id, payload.user_properties, gtag);
        gtag('event', 'sign_up', {
            method: payload.method,
            ...payload.params
        });
    }
};
export default action;
//# sourceMappingURL=index.js.map