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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:56:29+00:00 2026-06-16T02:56:29+00:00

I have a search functionality set up in my website, which uses a third

  • 0

I have a search functionality set up in my website, which uses a third party extension retrieve the search results. The search terms are not passed as query parameters.

Below is my sample URL for my search results:
mysite.com/search/results/dGVzdA/

I cannot change the URL to pass the search terms as query parameters.

So I’m trying to send Async Tracking from the google analytics javascript :

<script>
var _gaq= _gaq || [];
_gaq.push(['_setAccount','UA-XXXXXXX-X']);
//Push search query into google analytics

if ({url_segment_1} == 'search' && {url_segment_2} == 'results') 
_gaq.push(['trackPageview'],['/search/?q=test']);
else
_gap.push(['trackPageview']);
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>   

The javascript logic seems to be executing fine, I’ve tested it by placing alert options. So is there anything that I’m implementing incorrectly with respect to _gaq.push().
Could someone throw light on the same

  • 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-16T02:56:30+00:00Added an answer on June 16, 2026 at 2:56 am

    A couple of errors:

    • It’s _trackPageview, with an initial underscore.
    • The argument for _trackPageview needs to be inside the array, like:

    _gaq.push(['_trackPageview','/search/?q=test']);

    [edit] There’s also typo: _gap.push should be _gaq.push

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

Sidebar

Related Questions

I have a website, I've created with a 'Custom Search' functionality. I set it
We have some search functionality that can return tens of thousands of results from
I have set up the full-text search functionality in SQL Server 2008 express. This
want to have search functionality as on this website http://www.carwale.com/new/search.aspx#budget=6&budget=8&fuel=2 here whenever the user
I have a search functionality on my site that is accessible from every page.
I have a search functionality that obtains data from an InnoDB table ( utf8_spanish_ci
Im looking for something like a search and replace functionality in Solr. I have
The functionality I'm looking for: I have a form that will search my 'Proposal'
I have search screen which has 10 fields and involves around 5 to 6
I have an application build in Codeigniter framework.which have functionality of multi language.It works

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.