Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!