google-analytics

htaccess rewrite URL to append Google campaign tracking causing redirect loop

拈花ヽ惹草 提交于 2019-12-11 07:16:25
问题 We are attempting to track offline campaigns to using aliased URLs that point to our main site. We need to append Google analytics campaign tracking code to the end of the URL when the domain is one of the aliased domains. The following redirect appends the correct information but causes a redirect loop, which I would assume because the RewriteCond still matches as true after the RewriteRule is applied. RewriteCond %{HTTP_HOST} ^bikerhelp911\.com$ RewriteRule (.*) http://bikerhelp911.com/?utm

How can I show my google analytics traffic report via asp.net or classic asp?

可紊 提交于 2019-12-11 06:59:15
问题 How can I show my google analytics traffic report (AKA 'View Report') via asp.net or classic asp? 回答1: There are several APIs for querying data from Analytics. For example in both JavaScript and C#. See the developer guide for more information. I don't think there is an easy way to just include their report into an existing page. You would have to use the APIs. 回答2: you can use the google data APIs to pull feed data as xml look at this tool it lets you run text queries and see the results

Limit on Google Analytics asynchronous event push per account?

与世无争的帅哥 提交于 2019-12-11 06:54:57
问题 I know there's a Google Analytics restriction for using the event tracking of them. I know there's a 10 events limit. Please refer here: Limit on Google Analytics asynchronous event push? I did this test via Firebug to make sure: var i = 0; for(i=0; i<20; i++) { _gaq.push(["_trackEvent", "Checkout", "Payment Failures", "reasoncode: " + i, 1, true]); } Like they say, it's 10 records at a time. Now, I have a problem and consists that I'm losing data tracked on a website. Many users try to save

Track Web Traffic with PHP

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 06:16:34
问题 Is there an effective way to track web traffic (or at least the origin of web traffic) with PHP? I was thinking of using custom canonical links for each search engine and other websites, which would mean anybody who visits mywebsite.com without a parameter is likely direct traffic. But then I would somehow need to change the href value of the link rel='canonical' element for each engine crawler (e.g. https://mywebsite.com/?ref=google , https://mywebsite.com/?ref=duckduckgo , etc), and I'm not

RegEx for Dynamic URL Goals settings

房东的猫 提交于 2019-12-11 06:12:51
问题 I have tried to work this RegEx to set up a goal in GA for 2 days, but I cannot get my head around it... The URL format is like this: /purchase.php?cDd=1&transaction_id=xxxxxxx&verify=xxxxxxxxxxxxxxxx=&method=creditcard&type=purchase transaction_id= is populated with a sept of numbers verify= is populated by a string of numbers, letters in both caps and lower case Basically I would like to only match URLs which finish by &method=creditcard&type=purchase I have tried to just put &method

Google analytics event tracking not working

半腔热情 提交于 2019-12-11 06:10:01
问题 I have this code setup to track image downloads throught Google Analytics. <a href="/media/37768/CC20100117m001_thumb_2000.jpg" onclick="pageTracker._trackEvent('Image', 'Download', 'file.jpg');" class="hi-res track"> Hi-Res</a> But the events don't ever show up in the GA reports. I thought maybe the the browser was following the link before the javascript was being run but setting href="#" doesn't work either. Any ideas? 回答1: Your browser may be following the link before Analytics can make

How to get a Tracking ID for Android an App? Analytics console is showing only Firebase option

泄露秘密 提交于 2019-12-11 06:07:20
问题 How to get Tracking an ID for Android an App? Analytics console is showing only Firebase option. 回答1: This is the only known workaround. Create a new web property using type website. Once you have created it then go and create a new view and you can create it of type mobile and get the tracking id without going though the FireBase stuff. 来源: https://stackoverflow.com/questions/49407759/how-to-get-a-tracking-id-for-android-an-app-analytics-console-is-showing-only-f

pod 'GoogleAnalytics' in swift 4 won't run

家住魔仙堡 提交于 2019-12-11 06:05:05
问题 I read this instructions to use google analytics in my app https://developers.google.com/analytics/devguides/collection/ios/v3/?ver=swift so I installed pod 'GoogleAnalytics' into my app and created a .h file in my swift application so here is my h file codes in my app #ifndef analytic_h #define analytic_h #import <Google/Analytics.h> #endif /* analytic_h */ and here is my app Delegate codes But this code does not recognize GAI func application(_ application: UIApplication,

SQLException when using Google Analytics with Robolectric (or “Trying to use SQLite3 in Robolectric”)

大城市里の小女人 提交于 2019-12-11 06:03:50
问题 I'm using robolectric to test an activity that makes use of Google Analytics. Unfortunately, whenever I try to start up the activity I get the following exception android.database.SQLException at com.xtremelabs.robolectric.shadows.ShadowSQLiteDatabase.execSQL(ShadowSQLiteDatabase.java:149) at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java) at com.google.android.apps.analytics.PersistentEventStore$DataBaseHelper.onCreate(Unknown Source) at com.xtremelabs.robolectric.shadows

Do we need to update container's json file in Android side everytime we change in Google Tag Manager tag

谁说我不能喝 提交于 2019-12-11 05:54:01
问题 I was learning Google Tag Manager. I have started with very basic tutorials, it is working nice. But one thing I dont get is the use of container json in android side. Suppose we have created the firebase analytics in android and added GTM and published the app. In GTM we have added some tags. Now later we want to send analytics to some other site or wish to add new tags, do we need to update container json file in android again and republish it. 回答1: The JSON container file you're talking