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

  • SEARCH
  • Home
  • 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 7845263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:10:11+00:00 2026-06-02T17:10:11+00:00

I have an account registration form where a user can select their account type.

  • 0

I have an account registration form where a user can select their account type. I have a goal set up in google analytics that has a signup funnel starting with the signup form and ending with the thank you page. I would also like to be able to track the number of account types in the goal or another goal altogether.

In the code below I have some radio buttons to choose the account type and then there is obviously a submit button after various other form fields.

My site is Magento/PHP.

<label><input type="radio" name="account_type" value="personal">Personal</label>
<label><input type="radio" name="account_type" value="business">Business</label>
[...]
<button role="button" title="Apply" type="submit">Apply</button>

I would be grateful for any advice. Thank you.

  • 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-02T17:10:12+00:00Added an answer on June 2, 2026 at 5:10 pm

    On your “thank you” page, in addition to the regular on-page code, you can also set a custom variable with the information. Alternatively, you can pop it when the visitor makes their selection (during click event) or on form submit (js callback function on submit button) but ideally since you will want to only pop it upon a successful form submission, the best way is to track it on the thank you page.

    Example “thank you” page code:

    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', '[your account id here]']);
      _gaq.push(['_setCustomVar',1,'Account Type','[radio button value here]',2]);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>
    

    Edit:

    The above method is to set a custom variable with the desired info. This will introduce new dimensions and metrics to use in your reports. IMO the above is the best way to go about tracking this sort of thing.

    However, in the comments below, greg mentioned that you might be asking how to track this as part of your goal. One thing you can do is invoke a _trackPageview on it, using a custom URL. For example (and this is just an example, to demonstrate the principle…ideally you will probably want to call this somewhere else, like in a wrapper function that grabs the form value…)

    <button onclick="_gaq.push(['_trackPageview','/forms/accountType/[radio button value here]']);" role="button" title="Apply" type="submit">Apply</button>

    If you track it like this, then you will be able to include this virtual page name as a step in your current goal funnel. HOWEVER, NOTE that this method will increase your page views and screw with your other metrics; you will have to remember to exclude these page views from all your other reports!

    Another alternative is to track it as an event, and you can make a separate goal based off the event. Example:

    _gaq.push(['_trackEvent', 'Forms', 'Account Type', '[radio button value here]']);

    You can put it in an onclick like the 2nd code example above, or you can put it on the “thank you” page, like in the 1st code example above (I suggest putting it on the thank you page).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have registration form where users can register their accounts with subdomain i.e. .mysite.com
I have a database where you can select articles etc, users have an account,
I needed to create a custom select list for the user registration page that
I have setup a wordpress site on godaddy account. The registration form does not
i have an account number that is stored in as a query string. How
I have an Account model with the following : has_one :primary_user, :class_name => User,
I have created custom registration form in drupal 6. i have used changed the
On my website, I have user accounts that are configurable with forms that allow
I am trying to design a user registration form using code igniter 2.1.0. I
I have a working web application which already has a login and registration system.

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.