google-analytics
In google analytics property settings, what difference does the Default URL makes
If you go to the behavior/site content report and click the tiny icon to the right of the page path dimension (an arrow pointing to the upper right) the url will be prepended to the page path to open the page in question in a new window. Plus it will be used as the domain … Read more
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
‘Token has been expired or revoked’ – Google OAuth2 Refresh token gets expired in a few days
If your app is in testing mode then user tokens will expire in 7 days. Please find this explanations here: https://support.google.com/cloud/answer/10311615#zippy=%2Ctesting
Google Analytics API: filter by URI?
Use the ‘Contains a match for the regular expression’ operator (~) from the Dimension Filters. filters=ga:pagePath=~/profile/123/*
Is it possible to put Google Analytics code in an external JS file?
Yes this is possible. If it is not working then there is something else going on. Just a thought, Google Analytics is usually about a day behind in reporting so when you make changes it will take some time before you know it is working. What I like to do is hit a page that … Read more
Using Google Analytics asynchronous code from external JS file
Your variable definition var _gaq is inside a function. That means it’s locally scoped inside that function and won’t exist globally. Google Analytics depends on the global variable _gaq. If you want to keep it inside a function like that, reference it as window._gaq.
Google Analytics says “Tracking Not Installed” but I see it working?
Eventually it started working. I think it took a day or 2 for the status to accurately reflect that tracking had been properly installed. It’s bizarre… because Real-time was working, so I would have guessed that Google’s status code would have been able to be updated real-time too.