google-analytics

Can you upload data to the Google Analytics API?

烈酒焚心 提交于 2019-12-25 01:44:28
问题 There are companies out there that claim to "integrate" data into GA. I know some phone call tracking companies in particular. Is there a way that they are uploading data to GA through the API or are they using some other method that doesn't require that? 回答1: There is no upload mechanism into Google Analytics besides manual __utm.gif calls like in the browser. Both Google Analytics APIs (Data Export and Management) are completely Read-Only. There are a few ways these solutions work, but one

Google Analytics: Filter by Custom Dimension Value

隐身守侯 提交于 2019-12-25 01:43:55
问题 I'm working with Google's custom dimensions; and currently have things setup like this: gtag('config', 'UA-12345-1', { listing: '1234'}); Barring me setting that up incorrectly 💩 how would I go about filtering the dashboard down to that specific listing and listing value? I'm looking for a dashboard view and then (if you happen to know) if there's any differences for how I'd grab that data via the API as well to show within a dashboard. Thanks! 回答1: Check above comments for documentation. 来源:

BigQuery: Join based on closest timestamp

孤人 提交于 2019-12-25 00:29:02
问题 I am joining two tables based on closest timestamp in BigQuery and getting this error. Unsupported subquery with table in join predicate. SELECT gs.user_session_id ,dtc._date ,dtc.hit_timestamp _timestamp ,dtc.user_id FROM ga.2_deduped_twice_click_data dtc LEFT JOIN ga.sessions gs ON dtc.user_id = gs.user_id and dtc.hit_timestamp = ( SELECT dtc2.hit_timestamp FROM ga.2_deduped_twice_click_data dtc2 order by ABS(TIMESTAMP_DIFF(dtc.hit_timestamp, gs._timestamp, MILLISECOND)) LIMIT 1 ) 回答1: You

Google Analytics Event Tracking - Not working for a download link

醉酒当歌 提交于 2019-12-24 18:51:56
问题 I just finished working on a plugin for Sketch and I created a simple landing page for users to download the plugin. I want to use Google Analytics event tracking to track the downloads, but the event tracking is not working and I can't seem to figure out why. Here is what the link looks like: <a href="downloads/colorspark.zip" download onClick="ga('send', 'event', 'Downloads', 'download', 'ColorSpark for Sketch');">Download</a> Does anyone see what I'm doing wrong? Do I need to add any other

Setting up sub domain include filter in google analytics

妖精的绣舞 提交于 2019-12-24 18:26:43
问题 I am trying to set up a sub domain include filter in google analytics. I am a little confused about how to write the filter pattern for my sub domain which is going to be www.somesite.com/de All of the tutorials show it set up like this: sub1.website.com. but my url structure is different. Am I missing the point here any help appreciated. Here is a screen of what I am trying to set up: 回答1: You'll need two separate filters to accomplish this. Hostname : The full domain name of the page

Rails, where to store JSON credentials of Google Client API and how to access it?

左心房为你撑大大i 提交于 2019-12-24 18:03:15
问题 In my Google Developer Console, I have downloaded credentials json file. It looks like this: client_secret-000000000-aaaaaaaaaa0a.apps.googleusercontent.json I want to use google-api-client for ruby. In what folder do I need to place this json file? Also, how can I access it? All tutorials about this just skips it. 回答1: You may store it in any suitable directory, e. g. config (conventionally), lib , db etc. To access it, use: client = Google::APIClient.new( application_name: 'Your Google API

Rails, where to store JSON credentials of Google Client API and how to access it?

送分小仙女□ 提交于 2019-12-24 18:01:15
问题 In my Google Developer Console, I have downloaded credentials json file. It looks like this: client_secret-000000000-aaaaaaaaaa0a.apps.googleusercontent.json I want to use google-api-client for ruby. In what folder do I need to place this json file? Also, how can I access it? All tutorials about this just skips it. 回答1: You may store it in any suitable directory, e. g. config (conventionally), lib , db etc. To access it, use: client = Google::APIClient.new( application_name: 'Your Google API

Google Analytics Cross-Domain Tracking with Multiple Trackers

不羁的心 提交于 2019-12-24 17:14:34
问题 I have a network of sites that are all on different domains and subdomains (domain1.com, sub.domain1.com, domain2.com, sub.domain2.com). Some of them already have Google Analytics trackers installed. Some do not have GA trackers at all. I'd like to create a way to see a single GA account for the whole network, across domains, without disrupting existing single-domain GA tracking. Additionally, I need to be able to track visits and conversions across sites in the network as though they were a

Android Google Analytics Campaign tracking not appearing

北城以北 提交于 2019-12-24 17:14:13
问题 I’ve been able to integrate Google Analytics into my Android app, but am stuck with campaign tracking. In GA, I see page views, events, and custom variables, but campaign referrals never appear. Is there an additional step that is not documented at code.google.com/mobile/analytics/docs/android? like additional permissions specific to referals? Could be something obvious that I should know, I'm new to Android. Here’s my manifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android=

Tracking a page in an Ajax Popover from Google Analytics

依然范特西╮ 提交于 2019-12-24 16:46:02
问题 I am looking to track a Pop-Over page that appears when the forum is submitted at: http://www.xebra.com/salesAssistance.html I tried adding the urchin/google analytics code to the page that is displayed in the pop-over window, but whenever I do so the status bar displays "Read http://www.google-analytics.com/" and the entire form page goes blank. It is important to track the page in the popover because that page is the conversion goal (the page we are trying to direct people to). How do I