Many of the available strategies allow you to perform grouped analysis. In this guide you'll learn what grouped analysis is, and what options are available to you.
What is 'grouped analysis'?
Often you'll want to repeat the same analysis for different audiences or topics. For example, if you're looking to find out the content that is being engaged with the most for the topic of 'artificial intelligence' you might want to find this out for multiple industry sectors.
Grouped analysis allows you to request the same analysis for a number of groups in one task. The analysis you request will be repeated for each group independently. The strategy will return a set of results for each group.
The documentation page for a strategy states whether grouped analysis is supported. For example the top_urls strategy does support grouping, as shown by the properties on its documentation page:
If a strategy does not support grouping you can run multiple tasks, one for each of your groups, and combine the results yourself.
To specify multiple groups for analysis you use the groups parameter.
In this guide we'll briefly cover the available options. For a full explanation of grouping options see the grouping parameters page.
You can specify one of the following parameters under the groups parameter to perform grouped analysis:
top - group by the top n values for a demographic dimension.
list - group by a set of values for a demographic dimension.
custom - group by arbitrary topic and audience definitions.
Grouping by 'top' demographic segments
The top parameter performs grouping by the largest demographic segments in an audience.
For example, if the 5 countries are specified, then the analysis will be performed for the 5 countries with the largest active audiences on LinkedIn.
The following parameters will analyze the top urls for 'artificial intelligence' for each of the top 3 countries:
The labels you give for the groups (in this example 'large co decision makers' and 'small companies') will be used to label the result sets returned by the strategy.
In the example we've based our groups on demographic segments, but you could use any combination of the keywords, concepts, and audience parameters to build your custom groups.
In the examples above we have used the keywords parameter at the top level to apply the same topic for each group.
Parameters at the same level as the group parameter will be applied to all analysis. So for example if you apply an audience parameter, or a sort_by parameter, these will be applied to the analysis for each group.
This is also the case for comparison audiences. Currently you can only specify one comparison audience which will be used for each group. If you wish to use different comparison audiences for each group you will need to run a separate task for each group and combine the results yourself.
When you run a grouped analysis the output of the strategy will reflect the groups you specified.
Taking our last example above which uses custom groups, the result structure would be as follows: