What’s the difference between api key, client id and service account?

This thread is old, but still adding the information. Might help others in future. Google needs unique identifier to tie it to your project (with your android package) for authentication and to manage traffic or quotas. Oauth and API key are such unique identifiers. OAuth 2.0 client IDs: If your application is using OAuth 2.0 … Read more

Google Analytics Event Tracking onClick Code

You are mixing classic code with universal code. It will not work. You need to replace this: _gaq.push([‘_trackEvent’, ‘Button’, ‘Click’, ‘Purchase Details’,, false]); With this: ga(‘send’, ‘event’, ‘Button’, ‘Click’, ‘Purchase Details’); GAJS reference for Events: https://developers.google.com/analytics/devguides/collection/analyticsjs/events#implementation

Uncaught ReferenceError: _gaq is not defined (Google Analytics)

From https://developers.google.com/analytics/devguides/collection/gajs/ this code replaces your existing “traditional snippet” with the “latest, asynchronous version, you should remove the existing tracking snippet first.” <script type=”text/javascript”> var _gaq = _gaq || []; _gaq.push([‘_setAccount’, ‘UA-XXXXX-X’]); _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 … Read more

Google Analytics Gtag Multiple Analytics Account Tracking IDs

In short: Yes, you can add the same type of product multiple times by calling gtag(‘config’, …) for each respective Google account + property ID you have. Details: It’s 2021 and I had the same question but was too paranoid to trust this thread’s top voted answer because it described a different experience than my … Read more

How to export complete Google Analytics historical data? [closed]

You can’t (not with the free version of GA in any case). You can export aggregated reports (with up to 50 000 rows for standard reports or 200 000 rows for ad-hoc (not pre-calculated) reports via the API either by scripting yourself or using a tool like Next Analytics (the only programm from the Application … Read more