google-analytics,e-commerce,event-tracking , How to Track Store Locator Search terms in Google Universal Analytics

How to Track Store Locator Search terms in Google Universal Analytics


Tag: google-analytics,e-commerce,event-tracking

I am in the process of setting up enhanced Ecommerce for GA and have had a few requests of additional of what else the client would like to see in their reports. Once of which is

"Where can i see a report if the locations that a use types in when they use the store locator"

There is already an internal search functionality thats been set up and is tracking the search terms people are typing when looking for products, but i'm not sure if i would need to set this up as a second search terms report or if it's something different?

The URL of the page is different to the internal search results and is|GB|0|0|0

Any insight into this would be really helpful.

Thanks, Roxi


As to me knowledge, you are not able to use bookmarks (#something) in GA for internal site search setup. Only GET and POST parameters are allowed. In your situation I think the best solution is to use GA events to send the data about used location each time the user is using this functionality. You need to include addition ga() function call to track those events. Info about how to set it up you could find here: event tracking. After setting things up, you will see all the info about number and type of called events in Behavior -> Events reports section in GA.

Example code:

<button onlick="var hash_location=window.location.hash;ga('send','event','Locator',has_location)">Click me</button>

With such function new event will be send to GA with Event Category=Locator and Event Action=hash in the url. You have some complicated hash, so most probably you need to extract first some info from this using regular expression. Example to get first item from |-separated list in the hash:

var pattern = new RegExp('[^#|]+');
var hash_location = pattern.exec(window.location.hash)[0];


Using Google analytics for Logged in User to get Session Duration

I have Community running in PHP, I want to use Google Anayltics to determine, which page has most visit by which username / IP address. Is it possible using Google Analytics ? Can i configure my google analytics to get session duration for each username [if available ] or IP...

Google Analytics: filter to show full URI in reports, but only for subdomain

I need to track a subdomain under an existing property that is already tracking my domain. From the user's perspective they look like one site and I need to see the flow of traffic between them, so they should ideally be under the same property. I'm trying to configure things...

Updating fields of model using forms and views on Django 1.7

In my Product model is class Product(models.Model): productName = models.CharField(max_length=20, default='1',blank=False,null=False, primary_key = True) userPhone = models.CharField(max_length=20, default='1') userid = models.ForeignKey(Account, default='1',null=True) productDesc = models.TextField(blank=False,null=False, default='1') productCategory = models.ForeignKey(Category, null=False, default='1') productPrice = models.DecimalField(default='0',blank=False,null=False, max_digits=6, decimal_places=2) picture =...

How to find demographics (and other audience information) for a single page in Google Analytics?

So Google Analytics has the Audience section, and then under Demographics they tell you age, gender, etc. But that is for the entire site. Can you show that kind of information for a specific page? Eg I'd like to see the age, gender of people who visit my home page....

Regex for value less than X

I have a website which uses google analytics to collect event values (annual salaries). I want to see the average event value, but it is often skewed by people entering exceptionally large values. I want a regex which will filter out values above 5 million (5000000). Or, if it’s easier,...

Prestashop 1.6 product_list: get number of attached attribute combinations

I'm building my first prestashop. I have a couple of products with attribute combinations that have an impact on the price. In list views, I would like to detect if a product has more than one combination attached to it, in order to display a 'from' before the price. I...

Fetching Google Analytics profiles using Garb

I use Garb(0.9.8) to fetch data from Google Analytics from our server directly using OAuth1. As Google only supports OAuth2 now so I switched to Signet gem and used a service account to get a access_token from the server directly as we need only server to server interaction. key =...

Having both crashlytics and Google Analytics in the same apps

I'm using Crashlytics for bugs reports in my app, but I need some Google Analytics features, is it bad practice to have both, will it affect a lot my performance ( and life battery?) I know it is kind of subjective, but what I need to know is if it...

Google Analytics Unity Not Sending Hits

Does anyone have experience of working with the Unity Google Analytics Plugin? So far I've had no luck at all in sending hits. The method I'm using is to place the initialised GAv3 prefab into Assets/Resources and then to use this code attached to the camera in each scene to...

Using more than one field with IN ( ) for a sub-query

In Google BigQuery, I would have to do something like: SELECT hits.item.productName FROM [‘Dataset Name’ ] WHERE date, visitId, fullVisitorId IN ( SELECT date, visitId, fullVisitorId FROM [‘Dataset Name’ ] WHERE hits.item.productName CONTAINS 'Product Item Name A' AND totals.transactions>=1) However, this does not seem to be supported. What alternatives do...

Dx trouble writing output: already prepared… - Error in console

braintree-api-1.6.1-full.jar android:minSdkVersion="14" android:targetSdkVersion="18" I need to implement braintree inside my android app which has no issues, but as I copy the braintree jar file, into my projects libs folder and import the necessary classes, my app crashes. Full error message in console: Dx trouble writing output: already prepared [2015-06-18...

Swift 1.2: GAI -> Cannot invoke 'send' with an argument list of type '(NSMutableDictionary!)'

I'm trying to convert this into Swift 1.2: GAI.sharedInstance().defaultTracker.send(GAIDictionaryBuilder.createEventWithCategory("ui_action", action: "app_launched",label:"launch",value:nil).build()) This is my best attempt: let build = GAIDictionaryBuilder.createEventWithCategory("ui_action", action: "app_launched",label:"launch",value:nil) GAI.sharedInstance().defaultTracker.send(build: [NSObject : AnyObject]) But it keeps on resulting into this: Cannot invoke 'send' with an argument list of type '(NSMutableDictionary!)' Could someone...

403 Error when trying to remove products from Cart

I am using a cPanel host and running PHP 5.5. Opencart version 1.5.1. When I try to remove a product from the cart I am getting a 403 forbidden error. This only seems to happen with products that have a lot of options and include text input options. I have...

GA Ecommerce tracking data not being sent

I have the following ecommerce tracking code. I am making use of multiple trackers. The pageviews are getting tracked correctly but when I view the ecommerce reports no data is coming through. What am I missing? (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] =...

How to track traffic by domain in Google Analytics?

I am using Google Analytics in an embedded form. This form will be placed on various websites, and I want to track the traffic with GA. Creating a new property in GA for each website that embeds the form is not an option. As such, I'm looking to track traffic...

Google Analytics API Multiple Queries - Second Function?

This is a rather newbie question, please bear with me... I have successfully authorised my Google Analytics API account and am making the following call, which successfully prints the bounce rate. I want to add more queries on for things such as pageviews and sessions, how do i do this?...

Referring to an ENV variable through javascript

I'm trying to set up Google Analytics, and refer to different tracking ids based on environment. I have a sandbox version of google analytics that has one id, running in a staging environment, and a production version of Google Analytics that has another id, running in a production environment. I'm...

Android: Couldn't find GA library on maven

I am trying to add a library dependency from my Android Studio for below: '' However, I couldn't find the package.I even searched for it on but couldn't find it.However in the google docs it is mentioned Can someone point the mistake I am doing?Meanwhile I acheived my...

Google analytics not registering my app as a source of traffic to other sites

I am working on an app which is a essentially an aggregator of links to other websites. However, instead of linking directly to websites, the links on my app point to an endpoint on my app -- /redirect/:uuid, which in turn performs a 301 redirect to the respective sites: User...

Google Analytics duplicate transaction id multiple domains

I am implementing Google Analytics (via GTM) on multiple ecommerce sites. I need to record transactions to the client's google analytics account as well as to our single master analytics account, which accrues data for multiple sites. I am wondering if there will be any issues sending duplicate transaction ids...

Universal Analyitics not tracking links that lead to popups

I recently took over a small school website that was using some really convoluted analytics like a mix of UA and GA. So I stripped out all of the old analytics code, made a new account, and got everything running with UA. I'm only tracking link clicks so the code...

Use data import for update revenue

I have problem with integration our crm system with google analitycs. We want to use offline revenue tracking. We use google tag manager. I setup new Ecommerce tag, and as i see - it works fine. After that I created new data in admin panel with this options My example...

Call JS function on form submit before http request occurs

I want to pass a selected checkbox value, when a user submits (POSTs) a form, to Google Analytics to track as a custom metric within Google Analytics dashboard. The user will submit their choice to the server which will first call the JS sendDataToGA(selectedOption) { function to pass that data...

Custom dimension in collective.googleanalytics report

I'm using collective.googleanalytics ( to add some GA reports to a plone site. How can I use custom dimensions (like ga:dimension1 or ga:dimension2) in a new google analytics report? I can't see any related option in Query Dimensions field....

Titanium Missing Google Analytics when Starting App

I am using Titanium 3.5.1 to finish development on an app started by a colleague. The app works fine for him and runs in the Android Emulator just fine. Also another colleague installed Titanium 3.5.1 on his Mac and started the app up just fine, no changes at all. For...

How to get custom dimensions of a custom data source via management API?

Google Management API provides methods to get list of custom data sources and custom dimensions. However, I need to get the list of custom dimensions that belong to a custom data set, but can't find how. Is it possible at all?...

Google Analytics with two property ID's: double counting page views?

I've always used one Javascript GA tracking script on my page, for version of my website. It used the property ID UA-XXXXXX-1. However, I read somewhere that pages viewed on your domain (without www.) won't get tracked properly this way. So I added a second property, without the...

Submit App with cocoapods to itunesconnect

I have an Xcode Workspace with my app and cocoapods for Google Analytics. I would like to upload the app to the app store with Google Analytics. Should I just click archive in the menu at the top and upload as I usually do or do I need to do...

Why Google Analytics show bounce rate 100% and avg time more then 1min

How is possible to have on a page a bounce rate = 100% and for the same page an average time on page > 1min ? screenshot here...

Google Analytic - Ecommerce Product Lists

I'm using Enhanced Ecommerce tracking in my website, but for some reason product lists views are not being registered. Here is a screenshot from analytics When I print a listing, I set the list name in the "category" attribute of each product, like this: ga('ec:addImpression', { 'id': 15, 'name': "Product...

Install multiple Pods in swift

I currently have the Google Places Pod in my Xcode workspace. I would also like to use Google analytics. Should I just add pod 'Google/Analytics', '~> 1.0.0' to my Podfile and run pod install again the same as I did the first time? Thanks...

google analytics code on landing page and cookie law

New EU cookie law do not allow page to set cookies on first load and until user make any action, scroll is consider as implicit acceptance I'm not sure if ga('set', 'anonymizeIp', true); is enough to allow google analytics to be considered as non profiling cookie how can i activate...

Is it a good practise store the checkout steps fields in php $_SESSION?

I have my e-commerce site with three checkout steps, each button to continue is a POST action and redirect to the next step: if the user navigates by the checkout steps (click on the previous button for example), the form fields don´t show the data posted previously. This form fields...

Send events to two separate google analytics accounts?

Is it possible to send a tracking event to two separate google analytics accounts?

Multi tenant Google Analytics

I have a multi tenant site that serves two domains: "" and "". I want to setup Google Analytics so as to have separate information for these two domains, for example, I would like to see visitors, etc, for each tenant independently of the other. Do I need two different...

How to specify what “list” the product was added to cart from? Enhanced Ecommerce

Trying to implement Google Analytics Enhanced Ecommerce tracking for my website. How to specify what "list" the product was added to cart from? Here is the standard tracking code for adding the product to basket: // Called when a product is added to a shopping cart. function addToCart(product) { ga('ec:addProduct',...

Tracking AppView events in GA via Google Tag Manager from iOS

I am trying to get GA Screens working via Google Tag Manager on iOS. I've configured GTM Tag with the tracking type App View and I am able to see that events are coming but screen name is always (not set) I was trying to set different variables/parameters in GTM...

Mailchimp Ecommerce360 Javascript Implementation

Wondering if anyone can provide an example of how to pass a request to the /ecomm/order-add function of the Mailchimp API using javascript. This is critical for making use of Mailchimp's Ecommerce360 tracking. Here is documentation from Mailchimps API:

Google Universal Analytics - track multiple events on a single link click

Google suggests this to track outbound links: ga('send', 'event', 'outbound', 'click', url, { 'hitCallback': function () { document.location = url; } }); It uses "hitCallback" to redirect the user to page once the event has been successfully tracked. What is the syntax for tracking multiple events per click? I'd prefer...

Cross-Domain iFrame Tracking with Google Analytics

I have a site (rails 3.2) that displays 3rd party news articles within an iframe. One page contains one iframe. I have Google Analytics setup. For this I use The tracking script is in the head section of the container page. We have no affiliation with the 3rd party...

GA query to return unique count number

In Google Analytics I have set up set a custom dimension that contains a string of tags (ga:dimension1). Data Example: "tag1,tag2,tag3". I also use events. I use Query Explorer to test some custom reports. For tag2 it is working like this: metrics: ga:totalEvents dimensions: ga:dimension1 sort: ga:totalEvents filters: ga:dimension1=~(tag2) I...

Supplier login when using spree-drop-ship

I'm working on a marketplace website. The idea is to allow for suppliers to login, add their products, view orders, generate reports etc. I'm using Spree Commerce, and I see everyone suggesting to use spree-drop-ship extension to achieve all/part of above.(it's not really clear from the documentation, all the features...

Does cURL increase bounce rate on Google Analytics report?

While developing website up time monitoring application, I do send a cURL request to see whatever the site is running or down, If down then it also try to detect the reason. Therefore I send a cURL request. But my question is, does Google Analytics count it under bounce rate?...

Google Analytics Ecommerce tracking doesn´t track

I have an AngularJS1.0.7 web application. I integrated Google Analytics and now I´m trying to enable ecommerce tracking. However for some reason is not working. I don´t want to paste all my code, but just let me know if you need it. I installed GA debug extension in Chrome, so...

Why isn't my Google Tag Manager event listener being installed?

I have a very simple Google Tag Manager trigger that looks like this: I also have a corresponding tag that uses this trigger. I have published my container, and the tag shows up when previewing/debugging the container: I also see my link's id in the response from GTM. However, I...

How to include Google Analytics in my app

I am trying to include Google Analytics in my app, but after following Google's guide I ended up no where. For some reason I did not see any activity in my Google's Analytics account. So here I am, asking for a simple guide to follow. Please if anybody knows a...

Why do I see results on my Google Analytics portal even before I run my app?

I got a new Google Analytics ID for my Android app (a game) in development (unreleased) around a week ago. Only today, I integrated Google Analytics SDK into my game, tested it and made it send events. For the first time, I opened my Google Analytics portal for my game...

How can I pull data from Google Analytics to see the top pages visited from the current page?

I would like to create a small sidebar on each page of my website that contains related/popular pages with perhaps the top five pages users visit after reading the current page. I could track and record user movements across the site myself and build the list that way, but as...

Google Analytics Event Tracking Form select

i´m trying to track the selected option values. I´m getting this error in console when i track the form: Expected a number value for the field: "eventValue". but found: "string". html code: <select name="fornoyd_service_nybil" id="liste_nybil" class="liste"> <option value=""></option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option...