I have a WSO2 Api manager 1.9.0 installation. I configured the integration with GA as it is described in https://docs.wso2.com/display/AM190/Integrating+with+Google+Analytics
I have registered a simple API (http://www.w3schools.com/webservices/tempconvert.asmx) and created a soapui load test to do a hundred of calls to the API.
I can see the calls in the wso2carbon.log but the calls are not tracked in google analytics. Any idea why?
ciao & thanks
Alberto
Related
I want to consume the google analytics reporting API in some other server application and in that application, I can only make the HTTP API call to any other third party services and can not include any external library.
Please let me know is there any way to consume the google analytics reporting API without library and consume directly using the HTTP API Call.
I am very new to google analytics and don't know much about google analytics.
any documentation or solutions or suggestions will be very helpful.
Regards,
Nitesh.
Does anyone know difference between API analytics and IS analytics component?
Why those are separated components?
Or does someone accomplished to gather them?
Also it is possible to export dashboard but what to do with it when I am not able to import it.
APIM Analytics comes with WSO2 API Manager. IS Analytics comes with WSO2 Identity Server. Both analytics solutions are built on top of WSO2 Data Analytics Server. If we take IS Analytics it will provide useful stats and analytics based on the events published through WSO2 Identity Server such as login events, session related data etc. It's the same with APIM analytics.
If you are using both WSO2 APIM and WSO2 IS you can install both analytics features on top of WSO2 DAS. You can refer the WSO2 Documentation for more details.
I am setting up wso2 API manager 1.10.x with DAS 3.0.1 for publishing API statistics using mysql. My API manager system is clustered with gateway worker node on a separate VM. I followed the documents to enable analytics for API manager via UI. I also followed this document to manually enable analytics for gateway worker node. http://blog.rukspot.com/2016/05/configure-wso2-apim-analytics-using-xml.html After setup, I restart all servers, everything seems fine. But when I make a request to published API, gateway does not publish any statistics to DAS receiver. No data in DAS summary tables either.
By debugging wso2 Gateway, I am able to narrow it down to the fact that
private static ServiceDataPublisherAdmin dataPublisherAdminService; inside org.wso2.carbon.apimgt.impl.internal.APIManagerComponent never get set. Therefore APIMgtUsageHandler does not do anything.
Any idea on what could cause this to happen?
Thanks.
Figured it out myself.
bundle org.wso2.carbon.statistics_4.4.8 and 2 other statistics bundles are necessary for gateway worker to publish statistics data to DAS. But worker profile provided in the package of wso2 API manager 1.10.0 had them excluded.
To work around it, start wso2 on worker node with -Dprofile=default.
You can use osgi console to confirm the activation of these bundles. Once the bundle is activated, class inside is instantiated, gateway will start to publish statistics to DAS when you invoke a published API.
I now have a NodeJS REST API. It is CRUD service.
Does anyone know how to secure/protect my APIs step by step with wso2 OAuth2?
If you simply want to protect your REST API with OAuth2 use the WSO2 API Manager.
You can follow the quick start guide to get started.
Details related to adding your API and enabling OAuth2 protection is mentioned here in the quick start guide.
Since few day I am trying to get user profile with my C# using Using OAuth 2.0 for Server to Server Applications with JWT.
For google drive i know that we can use server to server method, but i am not sure for Google Analytics. Can we use it ?
Yes you can!
Service Accounts
Useful for automated/offline/scheduled access to Google Analytics data for your own account. For example, to build a live dashboard of your own Google Analytics data and share it with other users.
There are a few steps you need to follow to configure service accounts to work with Google Analytics:
1. Register a project in the APIs Console.
2. In the Google APIs Console, under the API Access pane, create a client ID with the Application Type set to Service Account.
3. Sign-in to Google Analytics and navigate to the Admin section.
4. Select the account for which you want the application to have access to.
5. Add the email address, from the Client ID created in the APIs Console from step #2, as a user of the selected Google Analytics account.
6. Follow the instructions for Service Accounts to access Google Analytics data.
Source: https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtAuthorization
Not yet. See Service Accounts have arrived.
Service accounts are currently supported by the following Google developer services:
Google Cloud Storage
Google Prediction API
Google URL Shortener
Google OAuth 2.0 Authorization Server
Google APIs Console
Google APIs Client Libraries for Python, Java, and PHP
Over time, more Google APIs and client libraries will be supported.
Sign up for Google Developers Blog and the Analytics Blog feeds. They will post when GA is opened to service accounts, if it ever is.