Cloud Blog

Google Analytics for REST APIs

Google Analytics provides great real-time and historical reports for websites and with WSO2 API Cloud you can easily get it them to report your REST API usage as well.

To do that you simply have to:
1. Create a tracking ID in Google Analytics,
2. Configure WSO2 API Cloud to report to Google Analytics and provide the ID,
3. See real-time and historical API usage reports.

Let’s go through all of these steps in details.

1. Create a tracking ID in Google Analytics

This is not really specific to WSO2 API Cloud in any way. You basically create a Google Analytics account like you normally would:

1. Go to and log in or sign-up,
2. Click the Admin tab:

Admin menu in Google Analytics

3. From the ACCOUNTS dropdown, select Create new account:

Create new Google Analytics account

4. Provide the name of the account and site as you see fit. For the Website URL, either provide the custom URL you have configured in API Cloud or just if you have not done so:

Setting up Google Analytics account

5. Click the Get Tracking ID button, accept terms and conditions, and Google Analytics will get you to the Tracking ID page of the new account. Right at the top of the page it will have the ID that you need. It will look like: UA-12345678-9.

2. Hook up WSO2 API Cloud and Google Analytics

1. From your API Publisher view, copy your domain-qualified ID that is displayed in the top-right corner:

Copy domain-qualified WSO2 Cloud username

2. Go to advanced Gateway admin console at:,

3. Sign in with the domain-qualified name you got in step 1 and your regular password:

Gateway sign-in

4. In the left-hand pane, click Resources / Browse,

5. Browse to /_system/governance/apimgt/statistics/ga-config.xml:

Resources Browse to GA analytics configuration

6. Click Edit as text:

Edit as text

7. Change false to true, copy and paste the TrackingID that you got when setting up the Google Analytics account, and click Save Content:

Editing Google Analytics config

That is it. Now all API calls for your APIs get registered in Google Analytics.

3. Enjoy Google Analytics reports for APIs:

Once the configuration changes go into effect, your usage data will start showing up in Google Analytics reports.

Real-Time report shows subscribers invoking your API right now:

Real-time Google Analytics API report

Behavior reports can show trends over time, popular REST paths and so on:

Behavior Overview Google Analytics report for APIs

And of course, you can use various Google Analytics functionality to work with trends, grouping, custom reports, filtering and so on.

Try it today in WSO2 API Cloud!

Adding Administrators to Your WSO2 Cloud Organization

We have added the ability to invite more administrators to your organization in WSO2 Cloud.

This way you delegate all the permissions that are there in WSO2 Cloud including all possible configuration rights, billing, and ability to invite new team members.

To add another administrator:

1. Click the Members menu:

Members menu

2. In the Members screen, click the Invite Members button.

3. In the Member List box, type the email addresses of the users you want to invite,

4. From the Member Roles drop-down list, select Common / Admin:

Pick admin role

5. Click the Invite button.

The users you invite, will receive an email with one-time link that they will need to click to join your organization and get administrative permissions.

Try it yourself in WSO2 Cloud today.

API Subscriber Portal Theming Now Supports Custom Fonts

Subscriber experience is one of the most important factors of successful API programs. WSO2 API Cloud comes with a ready to use subscriber portal (API Store) site that you can assign to your custom URL and brand with your logo and visual design.

When we first launched API Cloud, we limited theming to only styles and graphics files. Today we have rolled out an update that adds support for font files.

Here’s the full list of file types we currently support: “css”, “jpg”, “png”, “gif”, “svg”, “ttf”, “eot”, “woff”, “woff2”, “otf”.

This is a quick video on how to apply your custom theme to the portal:

And a step-by-step tutorial on doing so.

Try it in API Cloud today!

Availability Dashboard Now Includes Web UIs

Here, at WSO2 API Cloud team, we take uptime and transparency very seriously. 3 months ago we made our availability dashboard with current and historic data publicly available at and also on WSO2 Cloud’s site SLA & Support page.

Initially, the data was only available for API Gateway component. So you could use that to make sure that the APIs that you host with WSO2 API Cloud do not slow down or go down.

I am happy to report that we have done one more step and now added tests for our web interfaces – API Publisher and API Store (also known as Subscriber Portal) to the dashboard.

To see the current status, simply go to the SLA & Support page. For historical and performance data, click the hyperlink of the test and you will be taken to the details page.

API Cloud Support and SLA page with uptime dashboard

All data is provided by an external independent provider (Pingdom) and includes both planned and unplanned downtime.

Take your APIs to WSO2 API Cloud today!


Recent Posts

Most Popular Posts