We have moved to docs.pugpig.com! You can find this article here
Within Firebase, you can configure both Firebase Analytics and Firebase Cloud Messaging with your Pugpig app. Individually, these are both powerful tools for your app however you can also find deeper benefit by combining these two tools for sending Cloud Messaging notifications to user segmented audiences based on your Firebase Analytics data. Here are some key examples;
Example 1
Send a "Read edition now" notification only to users who have not opened edition
As standard, we generally recommend sending a notification to all users when you release a new edition, on top of this a few days later you can send a notification to only those who have not yet opened the edition.
Analytics Audiences > New audience
Select "Create a custom audience" then select "+ Add group to exclude" which will give you chance to select an audience type which have not seen seen a type of content yet.
Within "Dimensions" search and find the "EditionOpened" tag and select. At this point you will have collated all users who have not opened any editions.
Within "Add parameter", find the value "KGEditionName". If value isn't setup, please follow doc in this link.
Within "Value", add the edition title from your Pugpig Distribution.
Your audience will now indicate how many users are excluded due to the negative filter option set.
Add an audience title and save. You can now created an Audience of people have not viewed the specified edition, it will also dynamically update and remove if any of the users do view it in the meantime.
Cloud Messaging > New notification
Write your notification message then click onto "2. Targeting" to add your previously created audience. From the dropdown "Select an app", select an iOS or Android app version then select the "and" option.
The use select "User audience(s)" and then within "Select audience(s)" you will find the option of the audience you have previously setup.
Complete this for any other iOS or Android versions as demonstrated below and complete your notification details. This will send to the tailored users who have not opened the edition.
Example 2
Send a push based on user location
Firebase analytics can track users location while they are active on the app, this is valuable information if your content is location-specific or you host events in cities then it is a useful way to target audiences.
Analytics Audiences > New audience
Within Dimensions, there are a number of options on location of which I would recommend "City".
Your user locations will appear within Value, select the location for the article/event.
Add an audience title and save. You now have created an Audience of people who have used the app in a specific location.
Cloud Messaging > New notification
Write your notification message then click onto "2. Targeting" to add your previously created audience. From the dropdown "Select an app", select an iOS or Android app version then select the "and" option.
The use select "User audience(s)" and then within "Select audience(s)" you will find the option of the location based audience you have setup.
Example 3
Send a "Read more on similar topic" push to users who have viewed similar articles
This solution works well interacting with users where you have multiple articles across the same topic - if users have previously read an article they are more likely to me interested in a similar topic therefore a good option for a targeted push on something specific.
Within Audiences > New audience > Create a custom audience > add "screen_view" as an event.
As the parameter, add "GKPageName" (if value isn't setup, please follow doc in this link) and select the article original article you are basing users interests on from the the Value dropdown as demonstrated below.
This has create a user audience based on a specific article being view by users. Now you can send your push notification to this audience with message and deeplink to the second article.
Cloud Messaging > New notification
Write your notification message then click onto "2. Targeting" to add your previously created audience. From the dropdown "Select an app", select an iOS or Android app version then select the "and" option.
The use select "User audience(s)" and then within "Select audience(s)" you will find the option of the location based audience you have setup. Don't forget to add the deeplink as mentioned in the Additional options in here.
Comments
0 comments
Please sign in to leave a comment.