google-analytics

migrating from analytics.js to gtag.js

雨燕双飞 提交于 2019-12-22 09:39:26
问题 How would you migrate a ga create command that uses the allowLinker and siteSpeedSampleRate parameters to the gtag config command? ga('create' 'UA-1234567-25', 'auto', {'allowLinker': true,'siteSpeedSampleRate': 100 }); 回答1: "linker" will allow you to accept incoming cross domain. "site_speed_sample_rate" will allow you to adjust the site speed sampling rate. gtag('config', 'UA-1234567-25', { 'linker': {'accept_incoming': true}, 'site_speed_sample_rate': 100 }); 来源: https://stackoverflow.com

Tracking events using Google Tag Manager

霸气de小男生 提交于 2019-12-22 09:39:15
问题 I've been attempting to pick up a bit of Javascript for analytics since starting to use Google Tag Manager. Currently, I'd like to track exit links and am using the following custom html snippet: <script type="text/javascript"> $(document).ready(function(){ $('.app-cta a').onClick=_gaq.push(['_trackEvent', 'App', 'Click', 'iOS']); }); </script> The firing rules are: {{event}} equals GAevent I then tried a firing rule: {{url}} matches RegEx .* No luck. Nothing being picked up in Google

How to use Google Analytics to track downloads?

僤鯓⒐⒋嵵緔 提交于 2019-12-22 08:28:32
问题 I have a website where I have .tar.gz, .zip and .dmg files. I need to track the number of downloads using google analytics. I heard that I can use onclick="pageTracker._trackPageview('/file_name.file_extension') for the "a" tags on the page. I'm not clear what the file_name.file_extension corresponds to. Also, do I need to use some additional scripts? 回答1: I'm not clear what the file_name.file_extension corresponds to. Your example onclick="pageTracker._trackPageview('/file_name.file

Expires header for Facebook JS SDK and Google Analytics

北城余情 提交于 2019-12-22 05:45:09
问题 We all know adding a far-future expiration date to static resources is a good practice to increase our websites' page load speed. So we've ensured it for all of our resources BUT the all-too-common Facebook JS SDK and Google Analytics don't do that and thus lower the entire page's speed score. Examining the headers shows Facebook do 20 minutes: Cache-Control public, max-age=1200 Connection keep-alive Content-Type application/x-javascript; charset=utf-8 Date Tue, 23 Sep 2014 04:46:38 GMT Etag

Google Analytics HTTP status -1 when sending hit(s) by request GET https://ssl.google-analytics.com/collect

谁说我不能喝 提交于 2019-12-22 05:38:28
问题 I am implementing Google Analytics. I can send Hit by: [self.tracker send:[[GAIDictionaryBuilder createEventWithCategory:@"Application" action:@"BecomeActive" label:@"WakeUp" value:NULL] build]]; Logs are: VERBOSE: GoogleAnalytics 3.12 -[GAIRequestBuilder requestPostUrl:payload:compression:] (GAIRequestBuilder.m:167): building URLRequest for https://ssl.google-analytics.com/batch VERBOSE: GoogleAnalytics 3.12 -[GAIBatchingDispatcher dispatchWithCompletionHandler:] (GAIBatchingDispatcher.m:632

How to Track “Open New Tab” traffic in Google Analytics

馋奶兔 提交于 2019-12-22 05:29:12
问题 I have a referral website that use an url to go to my website that have google analytics implemented. The referral sites open my website in a new tab on the same window when the user click the link. I want to create a profile for each referral website so each profile have their own report about their user activity and transaction conversion. I'm a newbie in google analytic, please give me advise how to track traffic for "open new tab" method. 回答1: You can track as far as a click using

Which Safari version corresponds to which WebKit version?

淺唱寂寞╮ 提交于 2019-12-22 05:11:59
问题 Here is what Google Analytics says about the popularity of different Safari versions on my website: Safari version Visits ========================= 533.21.1 48.82% 6533.18.5 19.52% 533.19.4 8.15% 534.5 3.82% 533.20.27 3.50% 534.48.3 3.10% 531.21.10 2.43% 533.18.5 2.30% 6531.22.7 1.00% 531.9 0.89% But these are actually WebKit versions. Is there a table somewhere to help me to translate them to Safari versions? 回答1: Wikipedia lists Safari versions with the corresponding WebKit version: http:/

Android Google Analytics Causing Black Screen

孤街醉人 提交于 2019-12-22 04:33:30
问题 I just followed this tutorial for adding Google Analytics SDK v4 into an android app. Problem now is that when I run the app it just gives a black screen on any view I've setup with tracking. For example below the is the onCreate, onStart and onStop methods from the first view after the splash screen. The splash screen loads fine, then I just get a black screen on the view. If you commented out the analytics code everything work @Override protected void onCreate(Bundle savedInstanceState) {

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

情到浓时终转凉″ 提交于 2019-12-22 04:06: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

Google Analytics Visitors Flow: grouping URLs?

Deadly 提交于 2019-12-22 03:47:23
问题 I'm attempting to do some careful analysis of the way my website's visitors move through two particular multi-page actions (e.g. event registration) in order to determine where and why some visitors don't complete the actions. I'm trying to use the Google Analytics "Visitors Flow" tool to examine the data, especially to find out where the "did not complete" visitors went next. The difficulty I've run into is how the developers put together the URL structure in our MVC framework. Roughly