Register FAQ Search Today's Posts Mark Forums Read
Miva Merchant Community Forums
User Name
Password
agarvey
  #1  
Old Posted: 09-07-08, 02:25 PM
Mini Mivite
Joined Oct 2007
Posts: 24 agarvey is on a distinguished road
What to put in the search query in google analytics
We have google analytics and it is working just fine for us except for the site search tool. Because Miva does not change the URL, I don't know what to put in query parameters for the site search tool. Does anyone know?

PS I apologize for running this twice; I think it was getting lost in the last post that I had with my other question.
 
Reply With Quote
netblazon
  #2  
Old Posted: 09-08-08, 09:30 AM
Developer Partner
netblazon's Avatar
Joined Mar 2006
Posts: 314 netblazon is on a distinguished road
Re: What to put in the search query in google analytics
The variable name for the built-in search feature is Search. If you are using another search tool, just do a view source on the page with the search form and check the name of the textbox input field.

Susan Petracco
NetBlazon

1.866.400.2444

_____________________________________________

Miva Modules | Miva Merchant Consultants | AccurateTax.com | FeedExact.com

Find Miva Merchant Help at the DoublePlus Ecommerce Blog

Friend Me: LinkedIn | Facebook | Twitter | Digg | StumbleUpon | FriendFeed
 
Reply With Quote
agarvey
  #3  
Old Posted: 09-08-08, 11:59 AM
Mini Mivite
Joined Oct 2007
Posts: 24 agarvey is on a distinguished road
Re: What to put in the search query in google analytics
That is what I have in the field and it still isn't working (I put both Search and search). I double checked and made sure it was the name of the form and it is since I am using the Miva search function. Has anyone else had this problem? Website is www.nationalincontinence.com.

Thanks
 
Reply With Quote
netblazon
  #4  
Old Posted: 09-08-08, 12:01 PM
Developer Partner
netblazon's Avatar
Joined Mar 2006
Posts: 314 netblazon is on a distinguished road
Re: What to put in the search query in google analytics
Do you have it set to "Do Track Site Search", and "No, do not strip query parameters out of URL"?

Susan Petracco
NetBlazon

1.866.400.2444

_____________________________________________

Miva Modules | Miva Merchant Consultants | AccurateTax.com | FeedExact.com

Find Miva Merchant Help at the DoublePlus Ecommerce Blog

Friend Me: LinkedIn | Facebook | Twitter | Digg | StumbleUpon | FriendFeed
 
Reply With Quote
Dan - Kemper Strategic
  #5  
Old Posted: 09-08-08, 01:15 PM
Mega Mivite
Dan - Kemper Strategic's Avatar
Joined Sep 2006
Posts: 1,567 Dan - Kemper Strategic is an unknown quantity at this point
Re: What to put in the search query in google analytics
That will not work as Miva Merchant does not pass the "Search" query in the screen url. However you can pass the search query to Google Analytics using the proper custom template code.

New! - Google Analytics for Miva Merchant 5.5 Module: Only $49.95

KEMPER STRATEGIC E-BUSINESS
Miva Merchant SEO/SEM, Maintenance & Consulting

http://www.kemperstrategic.com
sales@kemperstrategic.com

 
Reply With Quote
agarvey
  #6  
Old Posted: 09-11-08, 07:15 PM
Mini Mivite
Joined Oct 2007
Posts: 24 agarvey is on a distinguished road
Re: What to put in the search query in google analytics
I fixed the problem. You do want to use the word "search" in google analytics and you do want to check the box for "no" as was suggested. The fix is to make it a "get" search instead of a "post". You can do this where the search box is declared. For me, it is in the global header.

Thanks everyone!
 
Reply With Quote
MacNichol
  #7  
Old Posted: 12-01-08, 05:17 PM
Mini Mivite
Joined Dec 2007
Posts: 38 MacNichol is on a distinguished road
Re: What to put in the search query in google analytics
Quote:
Originally Posted by agarvey
I fixed the problem. You do want to use the word "search" in google analytics...
Hello,

Do you mean don't use "search", but do use "Search"? In other words, capitalize the "S"?

Thank You.

 
Reply With Quote
agarvey
  #8  
Old Posted: 12-04-08, 05:20 PM
Mini Mivite
Joined Oct 2007
Posts: 24 agarvey is on a distinguished road
Re: What to put in the search query in google analytics
I don't know if the capitalization makes a difference. I think the main thing that matters is that you pass the field as a "get" Below is the code that I used. I took out the <td><tr> tags:
<form method="get" action="&mvt:global:sessionurl;">
<input type="hidden" name="Store_Code" value="&mvte:store:code;">
<input type="hidden" name="Screen" value="SRCH">

<a href="http:storename.com/mm5/merchant.mvc?Screen=SRCH&Store_Code=NI">
Search:
</a>
<input type="text" name="Search" size="18" value="&mvte:global:Search;">

<mvt:item name="buttons" param="Search" />

</form>
 
Reply With Quote
kayakbabe
  #9  
Old Posted: 12-05-08, 05:57 PM
Mighty Mivite
Joined Jun 2008
Posts: 565 kayakbabe is on a distinguished road
Re: What to put in the search query in google analytics
I'm pretty sure you do not have to change from post to get.
I like post better for many reasons.

From the ga analytics forum I found this from some people discussing this problem.

1. setup the search tracking just like you did, tell it to use the query string and also to strip it out.

2. use trackpageview() to create a virtual page containing in URL the requested parameter. Then you could easily use Site Search feature without a query string.

result: ga will use the trackpageview instead of the real url of the screen you are on.

All you need to do is use the mvt variable to insert into the ga code.
in your footer..

the whole url query string thing becomes a moot point.

You can do with storemorph inside the ga script something like
(this is part of a larger mvt if statement.. this is just a snippet that I'm goign to use)

<mvt:elseif expr="(g.screen EQ 'SRCH')">
pageTracker._trackPageview('/store/search.html?Search=&mvte:global:Search;');
<mvt:else>

I haven't tested this yet myself.. but I am going to tonight. I just stuck this into my footer code that outputs the ga script and the output looks right. I post here if I get good results or not.
Last edited by kayakbabe; 12-05-08 at 06:08 PM..
 
Reply With Quote
kayakbabe
  #10  
Old Posted: 12-08-08, 02:51 PM
Mighty Mivite
Joined Jun 2008
Posts: 565 kayakbabe is on a distinguished road
Re: What to put in the search query in google analytics
It's confirmed, you do not have to change your post to search on the form action
You CAN definitely use the google analytics trackpageview in order to make it work.
Just follow my directions above and wait 24 hours for the tracking to kick in.

It works great! I'm seeing all my insite searches. I put in some test searches just to make sure.
Last edited by kayakbabe; 12-08-08 at 03:10 PM..
 
Reply With Quote

Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 02:17 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.