N8N Tools - LinkedIn Enhanced icon

N8N Tools - LinkedIn Enhanced

Comprehensive LinkedIn Marketing API v2 integration for N8N workflows with B2B marketing and networking features

Company Pages → Get Company Page Analytics

AI-generated

Overview

The node operation Get Company Page Analytics retrieves detailed analytics data for a specified LinkedIn company page over a defined date range. It allows users to select specific metrics such as impressions, clicks, likes, comments, shares, engagement, reach, followers, views, CTR, CPC, CPM, spend, conversions, and leads.

This node is beneficial for marketing teams, social media managers, and business analysts who want to monitor the performance of their LinkedIn company pages. By extracting these analytics, users can measure audience engagement, track campaign effectiveness, and optimize content strategy on LinkedIn.

Practical example:
A marketing analyst wants to evaluate how a recent LinkedIn campaign performed by checking impressions, clicks, and engagement metrics from the last month. They configure this node with the company ID, set the start and end dates to cover the campaign period, and select the relevant metrics to get a comprehensive report.

Properties

Name Meaning
Company ID The unique LinkedIn identifier of the company page to retrieve analytics for.
Start Date The beginning date/time for the analytics data range.
End Date The ending date/time for the analytics data range.
Metrics The list of analytics metrics to include in the response. Options: Impressions, Clicks, Likes, Comments, Shares, Engagement, Reach, Followers, Views, CTR, CPC, CPM, Spend, Conversions, Leads.
Max Results Maximum number of results to return (default 20, min 1, max 100).
Start Index The index of the first result to return (default 0).

Output

The output JSON contains the analytics data for the specified company page within the requested date range. The structure includes the selected metrics with their corresponding values, typically organized by time intervals or aggregated totals depending on the API response.

If multiple results are returned, they are paginated according to maxResults and startIndex parameters.

The node does not explicitly output binary data for this operation.

Dependencies

  • Requires an active subscription and valid API key credential for the external "N8N Tools API" service.
  • Requires OAuth2 credentials for LinkedIn API access.
  • The node internally uses helper classes to interact with LinkedIn's Marketing API v2 via the N8N Tools API proxy.

Troubleshooting

  • Invalid subscription or API key error: If the node throws an error about invalid subscription or API key, verify that the API key credential is correctly configured and active.
  • Permission errors: Ensure the LinkedIn OAuth2 credentials have sufficient permissions to access company page analytics.
  • Date range issues: The start date must be before the end date; otherwise, the API may reject the request.
  • Metric selection: Selecting unsupported or incompatible metrics may cause errors or empty responses.
  • Pagination: If expecting more results than the default max (20), increase Max Results but keep it within allowed limits (max 100).

Links and References

Discussion