google-analytics

manage.py: error: unrecognized arguments: runserver 8000, Google Analytics API Django

与世无争的帅哥 提交于 2019-12-08 09:36:51
问题 Here is my Models.py import argparse import os from django.db import models from django.db import models from django.contrib.auth.models import User from oauth2client import tools from oauth2client.client import flow_from_clientsecrets, Storage CLIENT_SECRETS = os.path.join( os.path.dirname(__file__), 'client_secrets.json') TOKEN_FILE_NAME = 'credentials.dat' FLOW = flow_from_clientsecrets( CLIENT_SECRETS, scope='https://www.googleapis.com/auth/analytics.readonly', message='%s is missing' %

Google Analytics - Track Event on Page Exit (Except form submission)

∥☆過路亽.° 提交于 2019-12-08 09:27:08
问题 I'm using the following code to track when a user exits a page on my site: //track on page exit function storeData(){ _gaq.push(['_trackEvent', 'Application Form', 'exit-form_application_', '', 4, false]); } $(window).on('unload',storeData); However, I don't want to trigger the event when the form is submitted, therefore how could I prevent this? 回答1: This worked for me: $(window).bind('beforeunload', function() { _gaq.push(['_trackEvent', 'Application Form', 'exit-form_application_', '', 4,

How can I apply GA download tracking with Sitecore?

和自甴很熟 提交于 2019-12-08 09:19:21
问题 I'm posting this question to Stackflow b/c after doing much research into an answer to this very question online, I did not come across a straight forward answer and had to do my own sleuthwork to resolve this. Basically, Sitecore uses a handler file .ASHX for all files uploaded to the Media Library. Since the 3rd party GA tracking tool I was using (entourage.js or gatags.js) does not recognize .ashx as a whitelisted download file, it was not adding the appropriate GA tracking syntax to the

Google Analytics bug when choosing country segments

三世轮回 提交于 2019-12-08 09:18:43
问题 In Google Analytics, when I use country segments, as I change the date range to have more days worth of data, the value of Transactions in the graph that appear for the selected period of time, does not keep a consistent value. It does not make any sense. For example, for for yesterday Tuesday, May 8, 2018, I found a value in the graph. Then I changed the period, to a have three months worth of data, and in the graph when I put the mouse over the date corresponding to May 8, 2018, the number

Regex to include and exclude without lookahead

一曲冷凌霜 提交于 2019-12-08 09:00:12
问题 I want to match a URL containing both "foo" and "bar" but not "bar=0". I'm trying to do this in Google Analytics and it doesn't support lookahead expressions. So I am matching urls containing both "foo" and "bar" with this expression (foo.+bar) but how do I negate urls with "bar=0"? 回答1: You can use this regex: \bfoo\b.+\bbar\b(?:$|=[^0]|[^=]) Live Demo: http://www.rubular.com/r/marUIfFzAz 回答2: foo.+bar[^\=] for this to make any sense, please post a example of a url you are trying to validate

is it possible to send custom variables to Google analytics while using ecommerce extension

别说谁变了你拦得住时间么 提交于 2019-12-08 08:45:18
问题 So basicly i'm trying to get custom variables trough to google analytics panel while using ecommerce extension. My main goal is to give every item a set of custom values. My "code" looks like this: ga('require', 'ecommerce'); ga('ecommerce:addTransaction', { 'id': 'id', 'affiliation': 'affiliation', }); ga('ecommerce:addItem', { 'id': 'id', 'name': 'Loan - name', 'sku': '{RIDA:success_loan_id}', 'loanSumEur': 'Sum', 'loanSumLit': 'Sum LTL', 'loanLength': 'length', 'loanData': 'data' }); ga(

Google Analytics non-interact Attribute

邮差的信 提交于 2019-12-08 08:15:26
问题 I am using the native google analytics SDKs in iOS and Android projects. Recently i noticed that the web API provides a way to track "non-interact" events: https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#nonInteraction However, the native SDKs do not allow to track events using this attribute. Can anybody explain why and how something like non-interact could be tracked using the native SDKs? thanks 回答1: after a lot of searching for a documentation for

The Google Analytics SDK for iOS isn't built for the armv7s architecture while instaling app on iPhone

浪尽此生 提交于 2019-12-08 08:12:46
问题 When i am trying to install my application on iPhone/iPad I am getting the following error. I am using new Xcode 4.5. What should I do to remove this error. I need to test my app on device. file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/nishijain/Desktop/Backup SecondPrism/mobile/apps/SecondPrism/SecondPrism/Google Analytics SDK/libGoogleAnalytics.a for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation) Thanks 回答1:

how to exclude some url from a regex match

那年仲夏 提交于 2019-12-08 07:54:33
问题 I have 3 type payment ( online, offline, by balance) every payment type have different url so I'm using regex for match all this url : 1- order/checkout/unpaid/done 2- order/checkout/paid/done?Authority=000000000000000000000000000039067905&Status=OK 3- order/checkout/paid/done?Status=OK regex : (.*?)done this regex match all of urls but the problem is it match some page too ! kile this product page : /tork- done r-motahari-tehran What is the solution ? 回答1: You may use (.*)done($|[?]) The

How to record every moment in google analytics?

与世无争的帅哥 提交于 2019-12-08 07:50:56
问题 i have implemented simple Google Analytic so for in my technical carrier, i.e. pages viewed by audience are recorded in Google Analytic. now one of my client is asking to record everything happens on the page, like click on specify buttons and video play, stop, time duration of video user watched. I have did some R&D on this and found Event Tracking - Web Tracking (ga.js) from google.. but i am not sure how to use this. and I also want to know, is this feature is only for paid users? or free