Skip to content

Instantly share code, notes, and snippets.

@rcapeto
Last active June 12, 2023 15:08
Show Gist options
  • Save rcapeto/ca0abd5efc63663d38ca6b2d4535ae27 to your computer and use it in GitHub Desktop.
Save rcapeto/ca0abd5efc63663d38ca6b2d4535ae27 to your computer and use it in GitHub Desktop.

Mapeamento dos eventos [ FGTS ]

Clique botão autorização

Captura de Tela 2023-06-12 às 10 50 06

  • Disparos
 insider.pushPipeline<string>(
  {
    screen: "habilitar",
    status: "iniciado",
    flow: "integracao",
  },
  [
    { key: "convenio", value: "fgts" },
    { key: "produto", value: "saque_aniversario" },
  ],
);

// dispatch firebase/analytics
 analytics().logEvent("integracao_senha_meuinss_iniciado", {
   convenio: "inss",
   produto: "portabilidade",
});
Evento Valor
event_type integracao_senha_meuinss_iniciado
event_name undefined
event_name [Insider] funil_integração_habilitar_iniciado

Liberar oportunidades

Captura de Tela 2023-06-12 às 11 02 54

Disparos ao entrar na tela:

 recordEvents({ action: analyticsEvents.ABTEST.FGTS_AUTHORIZATION.VIEW });
 recordEvents({ action: analyticsEvents.REGISTER.FGTS_UNIQUE_INTEGRATION });
Evento Valor
event_type fgts_fgts_unique_integration e fgts_VisualizouNovaAutorizacao

Disparos ao clicar Iniciar Liberação

insider.pushInteraction<string>(
  {
    flow: "integracao",
    screen: "faseunica",
    element: "iniciarliberacao",
    action: "click",
  },
  [
    { key: "convenio", value: "fgts" },
    {
      key: "produto",
      value: "saque_aniversario",
    },
  ],
);
Evento Valor
event_name [Insider] funil_integracao_faseunica_iniciarliberacao_click

Disparo ao clicar Já realizei esses passos

insider.pushInteraction<string>(
  {
    flow: "integracao",
    screen: "faseunica",
    element: "jarealizeipassos",
    action: "click",
  },
  [
    { key: "convenio", value: "fgts" },
    { key: "produto", value: "saque_aniversario" },
  ],
);
Evento Valor
event_name [Insider] funil_integracao_faseunica_jarealizeipassos_click

Disparo ao clicar Receber notificações

Captura de Tela 2023-06-12 às 11 17 25

// Disparo firebase/analytics
logAnalytics({
   event_name: 'fgts:botao_receber_notificacoes',
   event_type: 'interaction',
   event_screen_id: 'authentication_fgts_check_error_page',
 });

Disparo ao clicar Simular antecipação

Captura de Tela 2023-06-12 às 11 31 55

insider.pushPipeline<string>(
   {
     screen: "contrato",
     status: "iniciado",
     flow: "simulacao",
   },
   [
    { key: "convenio", value: "fgts" },
    { key: "produto", value: "saque_aniversario" },
  ],
 );
Evento Valor
event_name [Insider] funil_simulacao_contrato_iniciado

Simulação

Disparos ao entrar na tela:

Captura de Tela 2023-06-12 às 11 52 25

useInsiderEvents(
  {
    flow: "simulacao",
    screen: "previa",
    status: "iniciado",
  },
  undefined,
  true,
)

 useDidMount(() => {
    recordEvents({ action: analyticsEvents.CONTRACT.FGTS_SIMULATION.VIEW });
  });
Evento Valor
event_type fgts_FGTS_StartSimulation e fgts_VisualizouNovaSimulacao
event_name [Insider] funil_simulacao_previa_iniciado

Disparo ao clicar em Mudar Valor:

 insider.pushPipeline<string>(
   {
     screen: "mudarvalor",
   },
  [
    { key: "convenio", value: "fgts" },
    { key: "produto", value: "saque_aniversario" },
  ],
 );
Evento Valor
event_name [Insider] funil_simulacao_mudarvalor_iniciado

Disparo ao clicar em Confirmar

Captura de Tela 2023-06-12 às 12 02 41

insider.pushPipeline<string>(
   {
     screen: "mudarvalor",
     status: "concluido",
   },
   [
     { key: "valor_receber", value: `${v}` },
     { key: "convenio", value: "fgts" },
     { key: "produto", value: "saque_aniversario" },
   ],
 );
Evento Valor
event_name [Insider] funil_simulacao_mudarvalor_concluido

Disparo ao clicar Ver Resumo

Captura de Tela 2023-06-12 às 12 07 29

insider.pushPipeline<string>(
  {
    status: "concluido",
  },
  [
   { key: "convenio", value: "fgts" },
   { key: "produto", value: "saque_aniversario" },
  ],
);
Evento Valor
event_type fgts_FinalizarSimulacao
event_name [Insider] funil_simulacao_contrato_concluido
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment