google-analytics

How to correctly use google analytics measurement protocol?

随声附和 提交于 2019-12-05 02:25:50
I'm learning to use google analytics for apps. For test purpose i have created a new google account, enabled analytics for apps and issued following command from terminal to test is it working: curl "http://www.google-analytics.com/collect?v=1&tid=UA-12345678-1&cid=123&an=myapp&t=event&ec=action&ea=click" Unfortunately, this request don't affect any numbers i see on analytics page - it's all zeroes. Any request to google analytics results in "200 OK" and 1x1 pixel gif image, so i can't figure out the problem: is the request incorrect, or i need to somehow preconfigure google analytics, or it

Google Analytics - Tracker Object from Activity

删除回忆录丶 提交于 2019-12-05 02:12:56
问题 I am creating the Google Analytics Tracker object from an Activity. The issue is that I am getting an error in the cast operation done on this.getApplication(). Please let me know how to create a tracker object from an Activity. public void sengToGoogleAnalytics() { Tracker t = ((AnalyticsSampleApp) this.getApplication()).getTracker(TrackerName.APP_TRACKER); t.setScreenName(getString(R.string.memoryhome)); t.send(new HitBuilders.AppViewBuilder().build()); } Log 06-11 11:49:59.510: E

Multi-domain setup on Google Analytics

孤街醉人 提交于 2019-12-05 02:12:36
问题 We have a dozen or so sites, as well as the occasional subdomains so: example.com example.co.uk us.example.com etc We have been using separate GA codes for each site. This works fine, but it means that adding a new site means getting a new code and we can't tell overall stats (e.g. how many people have visited all sites etc). If we went the one code route and set up separate profiles for each domain/subdomain: 1) Should we use _setDomainName("none") or _setDomainName("www.example.com") and

jQuery being loaded into gtm.js from Google Tag Manager

半世苍凉 提交于 2019-12-05 02:11:30
问题 I've been having an issue where jQuery v1.9.1 is being included into the top of the gtm.js file. It causes a few issues and can blow away jQuery plugins that are already loaded on jQuery.fn. Regression testing is also a concern. I checked and I don't appear to have any custom tags in the Google Tag Manager that loads jQuery. Ultimately I want to have control over the host domain and version of jQuery loaded. Is there a configuration setting in the GTM interface or some other way that I can

Is Firebase now mandatory for use of Google Analytics Mobile Properties?

故事扮演 提交于 2019-12-05 02:11:16
Is Firebase now required for setting up Google Analytics for Mobile? In the past, when I've setup Google Analytics for Mobile, I've selected "Mobile" from the Create New Property view and gotten the standard Analytics key (e.g., "UA-BLAHBLAH-BL"). However, when I went to setup a new property today, that is not what is happening. Instead, I am seeing this: It appears that there is now no way to use the traditional Google Analytics SDK for new properties using the analytics key of olde. Am I correct in this deduction? Or is there some other way to setup a new Mobile property with an analytics

Firebase Analytics & GTM Tracking

ぃ、小莉子 提交于 2019-12-05 01:54:47
问题 This question is about why one would need GTM for Google Analytics Firebase. There is a similar post on this question, but it has to do with the HOW. I am looking for the reason WHY one would want to implement GTM alongside the already powerful Google Analytics for Firebase. In May 2017, "Firebase Analytics" was renamed to "Google Analytics for Firebase". This should not be confused with "Google Analytics" for mobile apps (legacy). Historically, GTM was used for websites and web-apps, where

Google Tag Manager & Optimize Server-Side experiment sending variation

两盒软妹~` 提交于 2019-12-05 01:39:33
问题 I'm using the Google Tag Manager container for managing scripts. I'm trying to perform a server-side Optimize/Analytics experiment. I require server-side for performance reasons. I've performed client-side experiments just fine with the GTM/Optimize containers. Here's my GTM code: window.dataLayer = window.dataLayer || []; .... <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0]

Google Analytics Events Canceled

谁说我不能喝 提交于 2019-12-05 01:35:21
问题 There is a serious issue with attaching Google Analytics event tracking to a hyperlink on a page (as demonstrated in the documentation). Example: <a href="http://www.example.com/" onclick="_gaq.push(['_trackEvent', 'Links', 'Click', 'Example Link']);" > Example! </a> When user clicks on such a link in the Google Chrome browser, GA is starting to send the request to the server (event tracking), but browser is also starting to load another page (following the link) and the GA request is getting

Android referral tracking not working with Google play

妖精的绣舞 提交于 2019-12-05 01:28:12
I am trying to implement referral tracking on downloads from the Google play . Before uploading to Google Play, when I tried testing the app using below script, its working fine and i am getting referral string. adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n <my.myPackage>/.<path.up.until.my.CustomBroadcastReceiver> --es "referrer" "utm_source%3Dentity%26utm_medium%3Dsocial%26utm_campaign%3Dwo_referrer%26referrerId%3D173%26entity%3Dfacebook%26email%3Dmideeshp%40email.com" After running this code, I am decoding the referral string and my server getting updated according to

Google Analytics tracking code giving CORS error

牧云@^-^@ 提交于 2019-12-05 01:14:40
I'm using (what looks to me like) new Google Analytics tracking code that I got from my account yesterday. It makes use of some "Global site tag". I've placed it at the top of my , as GA instructs, but I'm getting a cross origin error when loading my page, so GA isn't tracking my site correctly. This is the exact message: Access to Script at ' https://www.googletagmanager.com/gtag/js?id= {my-id}' from origin '{my website}' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value ' http://www.googletagmanager.com ' that is not equal to the supplied origin. The