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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:30:04+00:00 2026-05-21T17:30:04+00:00

I have several controller actions in my MVC3 site that use an ID in

  • 0

I have several controller actions in my MVC3 site that use an ID in the URL, like so:

/mobile/businessprofile/100000
/mobile/setreminders/100000
/mobile/somethingelse/100000

I want to tell Google to ignore the ID part, but the Google Analytics filter system is really confusing and there’s no way to test your filter ahead of time. How might I go about this?

  • 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-21T17:30:05+00:00Added an answer on May 21, 2026 at 5:30 pm

    Method 1: do it on-page with javascript

    You can do it in your page code by specifying a value in your _trackPageview push.

    Example:

    _gaq.push(['_trackPageview',window.location.pathname.replace(/\d+$/,'')]);
    

    .

    Method 2: do it with a filter

    I assume based on your post you know how to actually go in and create a filter, you just don’t know what to use as values…

    Filter Name: whatever you wanna call it

    Filter Type: Custom filter > Search and Replace

    Filter Field: Request URI

    Search String: /[0-9]+$

    Replace String: /

    Case Sensitive: No (but it doesn’t matter which you choose)

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

Sidebar

Related Questions

I have a controller decorated with an AuthorizeAttribute. The controller contains several actions that
I have a controller with several actions that all return a set of data
Several of my controller actions have a standard set of failure-handling behavior. In general,
I have a view controller based app that contains several views that I display/hide
I have a view controller class that has to implement several protocols. Too keep
I have several controllers that require a correct user for their edit/update/delete actions. What
I have several views in an MVC3 project that allow a user to enter
How should one have several different controller' actions set a common instance variable for
I have an ASP MVC3 application that has several HttpPost ActionResult methods. During a
I have a high level controller class that is in charge of managing several

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.