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 6102949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:40:22+00:00 2026-05-23T13:40:22+00:00

I have been going round and round trying to find a definitive answer. Basically,

  • 0

I have been going round and round trying to find a definitive answer. Basically, I want to add the Google Analytics event tracking to a form submit – I was hoping to add an onClick to it, but I am having a tough time finding out if all the browsers support it.

I asked the person who designed the form, and she said that the reason they didn’t use the button type is that is caused issues submitting the form in some browsers, but could not remember which ones.

So, will it work across browsers, or should I switch to button?

Relevant code below:

<input name="submit" id="submitme" type="image" 
  src="/graphics/creative/landing_pages/popup/ibd_signmeupbtn.gif" 
  alt="Sign Me Up!" 
  onClick="_gaq.push(['_trackEvent', 'Registrations', 'Register', 'Lightbox']);"
  tabindex="8"  />

EDIT I have _gaq defined. The real goal of this question is to make sure that using an onClick with an input image is OK to do.

  • 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-05-23T13:40:22+00:00Added an answer on May 23, 2026 at 1:40 pm

    Try wiring it up a little different

    <input name="submit" id="submitme" type="image" 
        src="/graphics/creative/landing_pages/popup/ibd_signmeupbtn.gif" 
        alt="Sign Me Up!" 
        onclick="SignMeUp();"
        tabindex="8"  />
    

    And create your function like so:

    <script type="text/javascript">
        function SignMeUp()
        {
            if (!!_gaq) // make sure _gaq is defined
                _gaq.push(['_trackEvent', 'Registrations', 'Register', 'Lightbox']);
        }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been going round and round with a linq to sql file while
I have been going through the book Learning WCF trying to get my head
I have been going back through my app trying to handle all the memory
I have been going crazy over a seemingly easy question with Python: I want
I have been going back and forth between C# and Java for the last
I've switched over to a Mac recently and, although things have been going quite
I have been tasked with going through a number of ColdFusion sites that have
I have been using C# for a while now, and going back to C++
I have been experimenting with woopra.com A web analytics tool. Which requires a piece
I've been going round in circles with this for a couple of days, and

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.