google-analytics

Does google analytics combine naked domains with the www subdomain?

我只是一个虾纸丫 提交于 2019-12-07 22:38:02
问题 I have google analytics installed for my own domain, http://mydomain.com . Will a user that enters http://www.mydomain.com be counted by the analytics script too? To me it seems logical that it would, since it is so common to have the naked domain address be the same site as the www-prefixed one, but the analytics documentation doesn't state it explicitly. 回答1: Yes, users will be tracked, but the same visitor coming from www.datalookups.com and datalookups.com will be counted as two different

Pass dynamic event label in Google AMP analytics event tracking

安稳与你 提交于 2019-12-07 20:42:56
问题 I want to track an event with google analytics when a link is clicked on my AMP html page. Also I want to pass the link(href) as eventLabel while tracking this event. Is there a way to set the link URL as data-* attribute which then can be passed to google analytics event tracking script. Or is there any other way to do this. This is pretty standard thing but Google Analytics for AMP page doesn't cover it. 回答1: I think what you are asking for was recently made available here. basically, you

How to get “Seconds Played” and “Percentage Played” events from JW Player 6 in GA

时间秒杀一切 提交于 2019-12-07 18:24:17
问题 I see the new JW Player 6 Enterprise has lost the capability to report Seconds Played and Percentage Played as Google Analytics Events. Has anyone developed a method to produce something like this? I imagine the JW Player API and some JavaScript could support these events. [We made great use of the Seconds Played and Percentage Played capabilities in JW Player 5, and I'm sad to see it go. If anyone from JWPlayer is listening: it would be great to have those events back!] 回答1: I think you

Tracking external links with Google Analytics trackPageview() not working

社会主义新天地 提交于 2019-12-07 17:53:50
问题 I have set up external link tracking as Goals in Google Analytics according to the GA documentation. Here is the page in question: http://playmoreatthey.org/ - the external links on the page are formatted such as <a href="http://www.ymcagreaterprovidence.org/Default.aspx?alias=www.ymcagreaterprovidence.org/baysidebranch" onclick="javascript: pageTracker._trackPageview('/G1/bayside_family.com');" target="_blank">Bayside Family YMCA</a> I set up the goal as a "head match" to the URL: /G1

Google analytics API - Tracking subdomains

十年热恋 提交于 2019-12-07 17:33:41
问题 I have a website where each user registers as subdomain (username.domain.com). I'm tracking all subdomains with the folllowing code: var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXXX-X']); _gaq.push(['_setDomainName', '.domain.com']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var

'Google_Exception' with message 'Cant add services after having authenticated'

空扰寡人 提交于 2019-12-07 17:03:53
问题 I am working on a WP plugin with Google Analytics, using Oauth 2.0. All of my authentication & data pulls work fine, with the exception of this one issue: the first time I get a new Google authorization code (ex: "4/-xbSbg...." ) & authenticate, then try to call a new Google_AnalyticsService() object, it tosses back the error: 'Google_Exception' with message 'Cant add services after having authenticated' This is on line 109: http://code.google.com/p/google-api-php-client/source/browse/trunk

Google Analytics 'User Count' not Matching Big Query 'User Count'

蓝咒 提交于 2019-12-07 15:53:56
问题 Our Google Analytics 'User Count' is not matching our Big Query 'User Count.' Am I calculating it correctly? Typically, GA and BQ align very closely…albeit, not exactly . Recently, User Counts in GA vs.BQ are incongruous. Our number of ‘Sessions per User' typically has a very normal distribution. In the last 4 weeks, 'Sessions per User' (in GA) has been several deviations from the norm. I cannot replicate this deviation when cross-checking data from the same time period in BQ The difference

Google Analytics API not returning same data as Analytics dashboard

狂风中的少年 提交于 2019-12-07 15:44:45
问题 I'm trying to write a Google Analytics API query that simply returns the monthly unique visitors for each month over the last year. This is the data I see in the Google Analytics dashboard. I've used the Analytics API explorer to write the query, I've verified the ID and account is authed correctly. I'm using the ga:month dimension to get the data month-by-month. This is the query, and the resultant data These numbers are nothing at all like the ones I see on the Analytics dashboard. This is

Multiple Google Tracking Codes on AMP pages

拟墨画扇 提交于 2019-12-07 15:36:36
Is there a way to add different Google Analytics tracking accounts? I've been looking around but I only find examples and sites are using 1 single account: <script type="application/json"> { "requests": { "pageview": "https://example.com/analytics?url=${canonicalUrl}&title=${title}&acct=${account}", "event": "https://example.com/analytics?eid=${eventId}&elab=${eventLabel}&acct=${account}" }, "vars": { "account": "ABC123" }, "triggers": { "trackPageview": { "on": "visible", "request": "pageview" },... You can copy paste the amp-analytics tag twice. Or you can use use two triggers. Here are some

Best API to display Google Analytics data in my Admin panel with Codeigniter PHP?

我的未来我决定 提交于 2019-12-07 15:26:25
问题 There are a lot of results on Google for this, but most of them are old more than an year. I simply want to display some nice charts with jQuery in my admin with visits per day, most visited pages with number of visits, etc. I don't want to store the data for the visits in my database, the one at Google Analytics is perfect :) 回答1: Have a look at gapi-google-analytics-php-interface. The code has many examples which should be useful for you. The code has not been updated in a while, so you