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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:11:43+00:00 2026-05-26T22:11:43+00:00

I use following sample URL pattern to search pattern on my web site. http://www.mysite.com/search/

  • 0

I use following sample URL pattern to search pattern on my web site.

http://www.mysite.com/search/someword
No query strings, just clean URL..

How can set this URL to google analytics site search system?

  • 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-26T22:11:43+00:00Added an answer on May 26, 2026 at 10:11 pm

    In theory, you should be able to create a profile filter to convert the URLs to use a query string. In practice, it turns out it’s not possible, because Site Search gets processed before filters get processed.

    Instead, what I’ve found that works is to just manipulate it in JavaScript so that you “fake” a query string directly from the browser.

    Something like:

    if(!location.pathname.match(/^\/search/)){
        _gaq.push(["_trackPageview"]);
    }
    else{
        _gaq.push(["_trackPageview", location.pathname.replace("/search/","/search?q=")]);
    }
    

    This would “fake” a query string with a key of q that you could then easily use the Site Search feature with.

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

Sidebar

Related Questions

I'm using asp.net mvc3 I have a URL pattern like http://mysite.com/product/ {id} Everything is
I need to test an API of following spec URL: http://myapp.com/api/upload/ Method: POST Parameters:
How can you use the following sample data either with a foreach or while
In Ruby 1.9, I can use its class variable like the following: class Sample
i use the following code to load image to a cell $(cell).css(background-image, url(+iconImage+)); As
I am trying to use RegEX to match a URL pattern. I found an
I am able to use the MVCContrib Grid Pager as in the following sample
Please consider the following simple use case: public class Foo { public virtual int
for example i use following command to find a record SELECT `users`.`mail` FROM `users`
I would like to use following sql to avoid constructing sql dynamically: SELECT CommentID,

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.