google-analytics

Is it OK (in google analytics) o have some pages with the GTM and others with analytics.js?

六月ゝ 毕业季﹏ 提交于 2019-12-12 02:46:21
问题 Per my answer here I have some pages using Google Tag Manager to report Google Analytics and some that report them directly using Analytics.js. It seems to be working OK but I wanted to see if there were any issues I should be aware of. 回答1: You would need to make sure that whatever you are tracking with on-page code on those pages that don't have GTM are not already being tracked through GTM. Generally speaking, it's not advisable to mix both GA and GTM on the same site (unless you are in

Google Analytics API Automated Login

亡梦爱人 提交于 2019-12-12 02:43:53
问题 I have this panel that i'm developing at my company where i will show the user's information from Google Analytics but i don't want the user to authorize or log in with his account every time he comes to the panel. What i would like to do is: on the first time using my panel he would connect his Google account and i would save some info and on the next time he connects at my panel i would use this saved info to log on his account so i can list the Analytics info without ask for his permission

ga:searchDestinationPage == ga:landingPagePath?

霸气de小男生 提交于 2019-12-12 02:43:40
问题 Using the German UI of Google Analytics I stumbled upon two dimensions called "Zielseite" and one "Zielseite der Suche" So switching to English version brought up the following possible dimensions: Landing Page and Search Destination Page -- no idea what the second "Zielseite" could be. Using https://developers.google.com/analytics/devguides/reporting/core/dimsmets I found the following API-names: ga:landingPagePath UI Name: Landing Page The first page in a user's session, or landing page. ga

Analytics API returns wrong users count when fetching paginated result

℡╲_俬逩灬. 提交于 2019-12-12 02:35:24
问题 Trying to get data using GA API for java like it's described in the devguide. Dimensions: ga:pagePath ga:date ga:country ga:hostname ga:userType Metrics: ga:pageviews ga:sessions ga:users ga:uniquePageviews ga:bounceRate ga:pageValue ga:exitRate I'm querying for a single date, max-result = 10000 . There are more than 10k rows in result, so I'm querying in a loop using start-index . The problem with that query is that in the resulting data number of users is ~3 times greater than number of

Track WordPress Signups with Google Analytics

南笙酒味 提交于 2019-12-12 02:35:14
问题 I would like to track WordPress user signups/registration using Google Analytics. I've done this with other platforms before but for some reasons it's not working on WordPress. 1- I set my Goal URL to: /wp-login.php?checkemail=registered (that's the landing URL fir a success sign up) 2- Match Type: "Exact Match" 3- Goal Funnel Step 1: /wp-login.php?action=register (that's the Registration form URL) I have couple of sign ups lately but Google Analytics didn't track them. Anything help would be

Google Analytics - Download clicks tracking

心已入冬 提交于 2019-12-12 02:34:43
问题 I'm trying to track download clicks with Google Analytics but nothing shows up in my statistics. (I've waited 4 days) This is my code: HTML: <a onclick="javascript: pageTracker._trackPageview ('/download/version/black');" href="http://www.example.com/example.zip" target="_blank">link text</a> Google Analytics: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-11111111-1']); _gaq.push(['_setDomainName', 'example.com']); _gaq.push(['_trackPageview']);

_setCampNameKey usage in Google Analytics

假如想象 提交于 2019-12-12 02:22:20
问题 I'm looking at the js for google analytics on a page. It contains the following (changed the domain name, name etc). This is on the home page. I understand that these are used to set campaign variables but... why would someone do this on the home page? Perhaps because they have multiple sites and are tracking hits to each one as a campaign? Is this a good configuration? _gaq.push(['_setDomainName', 'somesite.co.uk']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_setCampNameKey', 'John

Create the GA Ecommerce “addItem” code using JS?

一笑奈何 提交于 2019-12-12 02:18:12
问题 I am trying to populate the GA e-commerce code using jQuery, or JS. I don't have access to the code, so I am unable to populate them from the actual page - which is a pain in the backside, i know! I have so far been able to get the order number and order total. To get each product in the basket I have been trying to get each row order-item and then grab the data to populate an instance of ecommerce:addItem per item. I then need to append it to the page so i have a ga('ecommerce:addItem', { })

Open external link in new window and track outbound click event

末鹿安然 提交于 2019-12-12 02:15:32
问题 I am using the code below to track outbound links in google analytics ( found it somewhere on this site ). I have 2 issues coming up: Sometimes, the e.currentTarget.host part of the output shows my own domain - instead of showing the domain where the click leads to. Any idea why my domain shows up on occasion ? Is it possible to modify this code to do the following (1) force link to open in new window and (2) track the outbound click event as shown. $(function() { $("a").on('click',function(e

ga:sessions via API not matching interface when custom segment applied

橙三吉。 提交于 2019-12-12 02:13:25
问题 I have a custom segment that has been is use for in excess of a year which very recently started returning some very odd results in the interface. Session numbers seemed to reduce down to match the transactions numbers, so ecommerce conversion rate was ~100%. The interface seemed to "recover" last week, but the API still will not return session numbers that are expected. Other custom segments return normal session numbers. I have queried the API with two different spreadsheet add-on and the