How to test android referral tracking?

The easiest way is using adb. You don’t have to write any code. Just run in a terminal: adb shell am broadcast -a com.android.vending.INSTALL_REFERRER -n <your.package>/.<path.up.until.your.BroadcastReceiver> –es “referrer” “utm_source=test_source\&utm_medium=test_medium\&utm_term=test_term\&utm_content=test_content\&utm_campaign=test_name” Here’s my exact line: am broadcast -a com.android.vending.INSTALL_REFERRER -n net.lp.collectionista/.util.broadcast_receivers.FacadeBroadcastReceiver –es “referrer” “utm_source=test_source\&utm_medium=test_medium\&utm_term=test_term\&utm_content=test_content\&utm_campaign=test_name” But your BroadcastReceiver may need to be the AnalyticsReceiver, i.e. For Google Analytics … Read more

Can you test google analytics on a localhost address?

This question remains valid today, however the technology has changed. The old Urchin tracker is deprecated and obsolete. The new asynchronous Google Analytics tracking code uses slightly different code to achieve the same results. Google Analytics Classic – Asynchronous Syntax – ga.js The current syntax for setting the tracking domain to none on google analytics … Read more

Track event in google analytics upon clicking form submit

Use Google Analytics hitCallback You can specify a custom callback function on the tracker object. _gaq.push([‘_set’, ‘hitCallback’, function(){}]); The callback is invoked after the “hit is sent successfully.” If you want to track a click on a submit button and send the form afterwards you can use the following code (uses jQuery) for your event: … Read more

No matching client found for package name (Google Analytics) – multiple productFlavors & buildTypes

Check your package name on your google-services.json it should be same with your local package name of your app Example “client_info”: { “mobilesdk_app_id”: “1:6596814400689:android:65d6f25f5006145”, “android_client_info”: { “package_name”: “com.my.app.package.name” } In this case my local package name is com.my.app.package.name so also i have changed my package name in google-services.json with my local package name