Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8058519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:22:53+00:00 2026-06-05T09:22:53+00:00

This is what i send to Google Analytics: // Default values? var label =

  • 0

This is what i send to Google Analytics:

// Default values?
var label = undefined;
var action = undefined;

// Assign some values
label = 'something';
action = 666;

// Send GA event
window._gaq.push(['_trackEvent','My Category', 'My Event Name', label, action]);

My question is: Am I right assigning default values as undefined as sometimes my label and action variables will not contain anything? Will event still be sent properly across all browsers?

Thanks for any help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:22:55+00:00Added an answer on June 5, 2026 at 9:22 am

    Just don’t set them and send a 2 items array.

    There are exemples in the official documentation : https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApi_gaq#_gaq.push

    _gaq.push(['t2._setAccount', 'UA-65432-2']);
    _gaq.push(['t2._setDomainName', 'foo.com']);
    _gaq.push(['t2._trackPageview']);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I send data in this way: <form method=post enctype=text/plain action=Func> And I have a
This is my code to send mail (test code): //sending mail var message =
I need to make something like google-analytics, I mean that it has to be
I want track offline event using Google Analytic and Local Storage. this is my
i'm using google event tracking on our website, and would like to send the
I send this request to google.com, GET /HTTP/1.1 Host: www.google.com Connection: keep-alive Cache-Control: max-age=0
I just send some coordinates to the android emulator. I used this commands for
I'm using google analytics for android with a dispatch interval (ie. tracker.startNewSession(xxxx, 10, this);
I have a url string like this: http://www.google.com/cse?cx=017840637368510444960:ny1lmky7r-0&client=google-csbe&output=xml_no_dtd&q=simon+g I need to send this url
Tag this with send-me-the-codez if you will. I've been asked to assist in putting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.