Re: Internal Site Search Data in Google Analytics
Last week I installed this patch on our 4.4.5 site and set the Google query value to "q". No search terms are being reported by Google Analytics. Has anyone had success with the patch?
Quote:
|
Originally Posted by qualiteam
For 4.4.x you can try altering the "skin/common_files/modules/Google_Analytics/ga_code.tpl" template and replace this code:
Code:
pageTracker._trackPageview();
with this:
Code:
{if $main eq "search"}
searchterms='{$search_prefilled.substring|escape}';
searchterms=searchterms.toLowerCase().replace(/\s/g,'+');
pageTracker._trackPageview('/search?q='+searchterms);
{else}
pageTracker._trackPageview();
{/if}
The second step (from the reported instructions) is still required.
|
__________________
Thomas / USA
XCart V4.4.5 Gold
XCart Mobile V1.4.12
XCart X-PDF
XCart X-HotProducts
AlteredCart Checkout One (One Page Checkout)
BCSE Back In Stock
CFL Holiday Message
CFL System Message
Smack Digital (WebsiteCM) Remember Anon Carts
xcartmods Testimonials
xcartmods reCAPTCHA for X-Cart Classic
Unix, PHP 7.0 (patched 5.4).
MySQL 5.6
|