Skip to main content
158 votes
5 answers
145k views

Regular expression for a string containing one word but not another

I'm setting up some goals in Google Analytics and could use a little regex help. Lets say I have 4 URLs http://www.anydotcom.com/test/search.cfm?metric=blah&selector=size&value=1 http://www....
Chris Stahl's user avatar
  • 1,812
21 votes
14 answers
33k views

How to Block Spam Referrers like darodar.com from Accessing Website?

I have several websites that get daily around 5% of visits from spam referrers. There is one strange things I noticed about this referrers: they show in Google Analytics, but I cannot see them in my ...
Catalin Marcu's user avatar
669 votes
35 answers
796k views

No matching client found for package name (Google Analytics) - multiple productFlavors & buildTypes

Context: I'm trying to set up Google Analytics for my app. (having 4 custom buildTypes and more than a few productFlavors) It works fine when I select the Build Variant which has the applicationId ...
Viral Patel's user avatar
  • 33.3k
136 votes
3 answers
59k views

What does google-services.json really do?

I work on adding Google Analytics and GCM services to my current app. On the guide for both services implementation, google asks developer to generate a json file: google-services.json and put it ...
Arthur Wang's user avatar
  • 3,158
64 votes
9 answers
74k views

Track event in google analytics upon clicking form submit

I need to track an event in google analytics when someone fills out a form and clicks submit. The resulting page that comes up is a standard dashboard-type page, so in order to track the event on ...
at.'s user avatar
  • 52.5k
200 votes
6 answers
154k views

Which browsers support <script async="async" />?

On December 1, 2009, Google announced support for asynchronous Google Analytics tracking. The asynchronous tracking is achieved using the async directive for the <script> tag. Which browsers ...
knorv's user avatar
  • 50.1k
324 votes
12 answers
224k views

Can you test google analytics on a localhost address?

I have to test out my new GA account on my local machine. Will this work just by copying the standard snippet supplied by Google onto the page ? I don't want to spend 24 hours waiting to see if it ...
edwardmlyte's user avatar
  • 16.5k
45 votes
13 answers
73k views

UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define

When I add the configurations for google analytics to my Android project and build the project I get the following error: :app:transformClassesWithDexForDebug UNEXPECTED TOP-LEVEL EXCEPTION: com....
Michael's user avatar
  • 33.2k
23 votes
3 answers
14k views

NoClassDefFoundError when GoogleAnalyticsTracker.getInstance()

I'm tring to use com.google.android.apps.analytics.GoogleAnalyticsTracker but got NoClassDefFoundError when GoogleAnalyticsTracker.getInstance(); I'm sure that libGoogleAnalytics.jar is included in ...
Kurosawa Hiroyuki's user avatar
5 votes
2 answers
3k views

How to access object property with invalid characters

I am writing an Angular app that interfaces with a Google Analytics API already in use. The data returned by Google is prefixed with "ga:" as in the example "ga:newVisits". If I use the expression {{...
VSack's user avatar
  • 479
103 votes
8 answers
71k views

How to test android referral tracking?

I'm implementing some code to do my own referral tracking on downloads from the Android market. See Android referral tracking does not work for an idea of what my app is doing. How can I test if ...
emmby's user avatar
  • 100k
29 votes
1 answer
25k views

Why are porn sites appearing in my Google Analytics data?

I deployed a web app a couple of days ago and installed Google Analytics on it to track activity. Almost everyday, I have at least one recorded pageview pointing to a site like www.pornhub-forum.ga/...
opensas's user avatar
  • 63.1k
173 votes
15 answers
110k views

Analytics Google API Error 403: "User does not have any Google Analytics Account"

I'm creating an script, based on Google Analytics step-by-step guide from this page: https://developers.google.com/analytics/resources/tutorials/hello-analytics-api Authorization is done without ...
user989501's user avatar
  • 1,843
28 votes
3 answers
44k views

Chrome extension adding external javascript to current page's html

I am adding some external JavaScript to the end of the page via my chrome extension. The external JavaScript then tries to post some data back to the server, however that is not taking place. The ...
Vish's user avatar
  • 4,492
223 votes
21 answers
122k views

Tracking Google Analytics Page Views with AngularJS

I'm setting up a new app using AngularJS as the frontend. Everything on the client side is done with HTML5 pushstate and I'd like to be able to track my page views in Google Analytics.
dj2's user avatar
  • 9,621

15 30 50 per page
1
2 3 4 5
100