google-analytics

Import 3rd Party Page Views Data on Google Analytics

♀尐吖头ヾ 提交于 2019-12-02 17:04:38
问题 Is there a way to import 3rd party page view data to Google Analytics? For example, if I have file download information from my server logs, could I put the information on Google Analytics and have it show up in the standard reports or a custom report alongside the existing pageview data already provided by Analytics? 回答1: Yes, but you need to do it within 4 hours of the hit being logged. Take a look at the GA measurement protocol. The hour limit is due to the qt param (milliseconds from hit

How to exclude payment method as referral in Google Analytics, through code?

馋奶兔 提交于 2019-12-02 16:45:05
问题 My payment gateways show up as referrals in Google Analytics. I've read a bit about it, and it looks like there are two options to fix this: Adding an entry to the Referral Exclusion List in Google Analytics admin page. (works with Google Universal Analytics) Attach utm_nooverride=1 to the URL of the payment gateway return page. Apparently this is not a solution for Google Universal Analytics. This article does a good job of explaining the issue. I would like to know if there is another

How to capture if a visitor is from a google adwords click

偶尔善良 提交于 2019-12-02 16:34:38
When a user signs up on my site I want to be able to store whether or not they came to my site via an Adwords campaign. I know google uses javascript to track conversions based on a cookie that is created on the users machine. Is there a way I can check this cookie so I can store the source against the user account? You're correct--you can read this data from the cookies. To configure the tracking: connect your adwords and GA accounts: in your AdWords account, go to My Account > Account Preferences, click the "edit" link next to Tracking then select the box that says "Destination URL Auto

Best place to insert the Google Analytics code [duplicate]

为君一笑 提交于 2019-12-02 15:44:55
This question already has an answer here: Should I put the Google Analytics JS in the <head> or at the end of <body>? 6 answers Where’s the best place to insert the Google Analytics code in WordPress, header or footer? I prefer footer, because I wanted my site to load faster by reducing the number of scripts in the header, but can it work even if the script is in the footer? Google used to recommend putting it just before the </body> tag, because the original method they provided for loading ga.js was blocking. The newer async syntax, though, can safely be put in the head with minimal blockage

Tracking link clicks with google analytics?

不问归期 提交于 2019-12-02 15:30:56
I'm a complete beginner with Google Analytics, and I need to know how to set it up so that it can track the number of clicks a link on my website gets? For example I have a link: <a href="https://google.com">link</a> I know I'm supposed to put an onClick event on there somewhere but I don't have any idea how it links to Google Analytics? Is this the correct Onclick code: onClick="_gaq.push(['_trackEvent', 'Link', 'Click', 'Banner Advert1']);" geedubb You probably want to use event tracking - this is a simple Javascript function to can fire from the click event on your links. You will need to

BigQuery GA Exported with Duplicated Rows

南笙酒味 提交于 2019-12-02 15:10:05
问题 We have been trying to explain why this happened in all of our datasets but so far we had no success. We observed that starting on 18 April our ga_sessions dataset had for the most part duplicated entries (like 99% of rows). As an example, I tested this query: SELECT fullvisitorid fv, visitid v, ARRAY( SELECT AS STRUCT hits.* FROM UNNEST(hits) hits ORDER BY hits.hitnumber) h FROM `dafiti-analytics.40663402.ga_sessions*` WHERE 1 = 1 AND REGEXP_EXTRACT(_table_suffix, r'.*_(.*)') BETWEEN FORMAT

Google Analytics pageTracker is not defined?

怎甘沉沦 提交于 2019-12-02 15:09:55
Little bit confused... I am trying to track mailto links being clicked, but constantly 'pageTracker is not defined' is shown. I have the following code just before my end body tag () <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-000000']); // This is my account number, I have added the zeros in this editor _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 s

How to remove a web site from google analytics

这一生的挚爱 提交于 2019-12-02 14:15:55
I am Administrator of several web sites on google analytics. Can i delete some of them? If yes, how? Many of you suggested me to remove my profile. So my doubts are: 1. I am administrator of several items. I want remove just some of them. 2. If I remove my profile I will lost all items? user1997781 Here's an updated answer, as of Sept. 2013. This took me awhile to figure out. Go to the Admin tab. In the middle column, select the web property that you want to delete from the dropdown. In the right-hand column, click on "View Settings." ("Property Settings" in dec. 2015) At the bottom of the

How to set up Google Analytics for React-Router?

核能气质少年 提交于 2019-12-02 14:11:41
I'm trying set up Google Analytics on my react site, and have come across a few packages, but none of which has the kind of set up that I have in terms of examples. Was hoping someone could shed some light on this. The package I'm looking at is, react-ga . My render method on my index.js looks like this. React.render(( <Router history={createBrowserHistory()}> <Route path="/" component={App}> <IndexRoute component={Home} onLeave={closeHeader}/> <Route path="/about" component={About} onLeave={closeHeader}/> <Route path="/gallery" component={Gallery} onLeave={closeHeader}/> <Route path="/contact

Does Google Analytics track window.location and Meta Refresh?

百般思念 提交于 2019-12-02 13:36:41
问题 If I redirect a user with window.location or Meta Refresh or header('Location:') from xxxy.com to yyyx.com, then Google Analytics will show xxxy.com as traffic source or not? It's important for me because of an adserver. I'm using window.location right now, and Google Analytics and my ad server have very different statics. 回答1: There are 3 types of redirects. Google Analytics treats each of them differently. But, the one consistent thread is that it looks to the value document.referrer . So,