Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

184
Visualizações
Why do I get Unknown target error when attempting to send a Google Universal Analytics Event with javascript

I am attempting to send an event to Google Universal Analytics:

ga('send', {
    hitType: 'event',
    eventCategory: 'calculator-interaction',
    eventAction: 'click',
    eventLabel: 'calculate-button'
});

but I am getting the following error:

Running command: ga("send", [object Object])
analytics.js:31 Command ignored. Unknown target: undefined

The Google Universal Analytics is being included in the page via Google Tag Manager if that makes a difference?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Ga needs a tracker object to send commands. Are you using ga('create', 'UA-XXXXX-Y', 'auto')?

If yes, you might be specifying a named tracker instead. In this case, you will need to target it specifically by calling ga('name_of_the_tracker.send', options)

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda