analytics

Get part of day (morning, afternoon, evening, night) in Python dataframe

ぐ巨炮叔叔 提交于 2020-01-30 05:01:10
问题 Here is my dataframe , I need to create a new column based on the timehour which the row value be like (morning, afternoon, evening, night) Here is my code if ((prods['hour'] < 4) & (prods['hour'] > 8 )): prods['session'] = 'Early Morning' elif ((prods['hour'] < 8) & (prods['hour'] > 12 )): prods['session'] = 'Morning' elif ((prods['hour'] < 12) & (prods['hour'] > 16 )): prods['session'] = 'Noon' elif ((prods['hour'] < 16) & (prods['hour'] > 20 )): prods['session'] = 'Eve' elif ((prods['hour'

Best practice: How to track outbound links?

心已入冬 提交于 2020-01-29 05:12:12
问题 How do you track outbound links for your web site, since the request is logged on the destination server, not yours? 回答1: You can add a quick JQuery script to the page that will track external links and can either redirect them to a file on your server that will track the link and then forward to it, or add an ajax request that will submit on click for external links, and track them that way. See here: http://www.prodevtips.com/2008/08/19/tracking-clicks-with-jquery-and-google-analytics/ and

Best practice: How to track outbound links?

我与影子孤独终老i 提交于 2020-01-29 05:12:09
问题 How do you track outbound links for your web site, since the request is logged on the destination server, not yours? 回答1: You can add a quick JQuery script to the page that will track external links and can either redirect them to a file on your server that will track the link and then forward to it, or add an ajax request that will submit on click for external links, and track them that way. See here: http://www.prodevtips.com/2008/08/19/tracking-clicks-with-jquery-and-google-analytics/ and

How can I find what search terms (if any) brought a user to my site?

て烟熏妆下的殇ゞ 提交于 2020-01-23 10:41:25
问题 I want to create dynamic content based on this. I know it's somewhere, as web analytics engines can get this data to determine how people got to your site (referrer, search terms used, etc.), but I don't know how to get at it myself. 回答1: You can use the "referer" part of the request that the user sent to figure out what he searched for. Example from Google: http://www.google.no/search?q=stack%20overflow So you must search the string (in ASP(.NET) this can be found be looking in Request

Google Analytics Event Tracking on Page Exit

时光总嘲笑我的痴心妄想 提交于 2020-01-23 04:12:51
问题 I have a javscript code wich record visitors interaction with the website (like calculating max scroll position, mouse movement in pixels, etc). However, these statistics are valid, only if the user stops interacting with the page. (he leaves, clicks a link, closes the browser, etc) Is it possible to do a _gaq_push when this happens? If so, how? 回答1: This should work. <script> window.onbeforeunload = storeData; function storeData(){ _gaq.push(['_trackEvent', 'Visitor Info', 'Scrolling', 'Up',

Jquery Analytics tracking onclick NS_BINDING_ABORTED

核能气质少年 提交于 2020-01-15 10:33:34
问题 Hey I am adding an onclick event to track clicks on certain videos, the 3rd party tool we are using is webtrends. I am adding the onclick event and it works fine. The thing to note is the url in the link makes the user browse to a different url. When I track the onclick event in httpfox I see the error NS_BINDING_ABORTED. My jquery $j(document).ready(function () { $j('a.wt_video').click(function (e) { var title = ($j(this).attr("title")); if (title.length != 0) {

Jquery Analytics tracking onclick NS_BINDING_ABORTED

做~自己de王妃 提交于 2020-01-15 10:33:30
问题 Hey I am adding an onclick event to track clicks on certain videos, the 3rd party tool we are using is webtrends. I am adding the onclick event and it works fine. The thing to note is the url in the link makes the user browse to a different url. When I track the onclick event in httpfox I see the error NS_BINDING_ABORTED. My jquery $j(document).ready(function () { $j('a.wt_video').click(function (e) { var title = ($j(this).attr("title")); if (title.length != 0) {

What are the pros and cons of loading data directly into Google BigQuery vs going through Cloud Storage first?

匆匆过客 提交于 2020-01-13 19:13:06
问题 Also, is there anything wrong with doing transforms/joins directly within BigQuery? I'd like to minimize the number of components and steps involved for a data warehouse I'm setting up (simple transaction and inventory data for a chain of retail stores.) 回答1: Loading data via Cloud Storage is the fastest (and the cheapest) way. Loading directly can be done via app (using streaming insert which add some additional cost) For the doing transformation - if what are you plan/need to do can be done

Cross-domain user tracking without 3rd party cookies?

只谈情不闲聊 提交于 2020-01-13 05:57:31
问题 How are cross-domain web tracking services implemented (e.g., for behavioral advertising ), now that the majority of people are browsing with 3rd party cookies disabled? More explicitly, how does a third party tracking service recognize that two requests to different domains are coming from the same person? Some options come to my mind: Maybe iframe-based , by embedding a tracking page from the third-party tracking service into various sites. This included tracking page should be able to set

Facebook page insights via API

痞子三分冷 提交于 2020-01-11 13:55:09
问题 I would like to access the insights of a Facebook page via the API. It is very well possible to obtain the insights of a Facebook app via the graph API, but I cannot find something similar for Facebook pages. Am I missing something? Specifically, I am looking for stats such as total users, active users, posts, etc, preferrably over time as well. 回答1: Insights table docs say it is possible to retrieve metrics for all pages that are owned by currently logged in user after requesting read