Track post URLs via Firebase

Learn how to send push notifications using the OneSignal interface

Firebase allows you to track and monitor different aspects of your app using its Analytics tool.

If you want to be able to track the URL of the posts that have been opened in the app you will need to set up a custom dimension in your Firebase or Analytics account.

The objective is to tell Firebase to track a specific parameter (the URL) of a post view event.

Unfortunately, this needs to be done manually, as Firebase will no longer track all parameters tied to events, they have also applied a limit of 50 parameters tracked on free Firebase accounts. In the past, they used to track all parameters on all events (A LOT of data!), which was certainly a problem on their end since most Firebase accounts are free.

The first step to set this up is to access your Firebase account ( and click on "Custom Definitions":

Notion image

Now go to "Create custom dimensions":

Notion image

Fill out the form using the following values and click "Save":

Notion image

Now that you have a custom dimension created Firebase will start tracking the "url" parameter of your "post" event, it might take up to 24 hours until the tracked data is available for you to see in your Analytics account.

Once enough data has been tracked, follow the instructions below to see the list of post URLs:

Go to "Events" and select "post":

Notion image

Scroll to the bottom of the screen and you will find the statistics for the custom dimension you created:

Notion image
Did this answer your question?