With this flow, you can obtain aggregated engagement data from different social networks. The output is two tables—the first is table pages_engagement containing daily metrics for each social media platform and the second is posts_engagement containing all posts from selected social media.
The flow, in a nutshell:
First, the Social Media Engagement source connectors will collect data from your selected social networks. Currently, these networks are available:
We then add NULL values if any columns are missing, convert dates to a standard format, and add information about the source’s social network to the source column.
Finally, the combined data will be exported to the destination tables.
You will obtain the following two tables:
This table contains daily overall engagement metrics for the whole page from selected social media. The primary keys are: date and social network.
metric | YouTube | ||||
---|---|---|---|---|---|
page_followers | ✓ | ✓ | ✓ | ✓ | ✗ |
page_posts_impressions | ✓ | ✓ | ✓ | ✗ | ✗ |
page_views_total | ✓ | ✓ | ✓ | ✗ | ✗ |
This table contains engagement data for all posts from selected social media. The primary key is a UID composed of a date, source social media and the ID of a post within the social media platform.
metric | YouTube | ||||
---|---|---|---|---|---|
likes | ✓ | ✓ | ✓ | ✓ | ✓ |
comments | ✗ | ✓ | ✗ | ✗ | ✓ |
shares | ✓ | ✗ | ✗ | ✓ | ✗ |
views | ✗ | ✗ | ✗ | ✗ | ✓ |
all_reactions | likes shares |
likes comments |
likes | likes shares |
likes comments favourites |
Each social network allows access to the history of page engagement differently:
These data sources are available in Public Beta:
These data destinations are available (click the links for detailed documentation):
The process is simple. We will guide you through it, and, when needed, ask you to provide your credentials and authorize the data destination connector.
First decide which data source and which data destination you want to use. Then select the corresponding template from the Templates tab in your Keboola project. When you are done, click + Use Template.
This page contains information about the template. Click + Use Template again.
You’ll be asked to write a name for the template instance you are about to create. You can use the template as many times as you want and still keep everything organized.
After clicking Next Step, you will see the template builder. Fill in all needed credentials and perform the required OAuth authorizations.
Important: Make sure to follow all the steps very carefully to prevent the newly created flow from failing because of any user authorization problems. If you are struggling with this part, go to the section Authorizing Data Destinations below.
Follow the steps one by one and authorize at least one data source from the list. Finally, the destination must be authorized as well.
When you are finished, click Save in the top right corner. The template builder will create your new configuration, and when it is done, you will see the newly created flow.
Click Run Template and start building your visualizations a few minutes later.
To use a selected data source connector, you must first authorize the data source. You need to use at least one of the following socia-media-engagement data sources.
For the Facebook Page data source connector, log in with Facebook and choose the page from which you want to get data. You can set the period from which you want to obtain data, or keep the default 30 days. Continue by saving the configuration.
To access the data from Instagram, you must have an Instagram Business Account connected to the Facebook page used for authorization. You can set the period for which you want to obtain data, or keep the default 30 days. Continue by saving the configuration.
For the LinkedIn Page data source connector, authorize access with your account and select the page from which you would like to extract data. You can set the period from which you want to extract data, or keep the default 30 days. Continue by saving the configuration.
To access your data from Twitter, authorize the account and fill in the user name.
To access data from your YouTube Channel, authorize access via Open Authentication and save the configuration.
To create a working flow, you must select at least one data destination.
To configure the data destination connector, you need to set up a Google Service Account and create a new JSON key.
A detailed guide is available here.
Authorize your Google account.
Duplicate the sheet into your Google Drive and paste the file ID back to Keboola. It is needed for correct mapping in your duplicated Google sheet.
If you do not have your own data warehouse, follow the instructions and we will create a database for you:
Everything is set up.
If you want to use your own Snowflake database, you must provide the host name (account name), user name, password, database name, schema, and a warehouse.
We highly recommend that you create a dedicated user for the data destination connector in your Snowflake database. Then you must provide the user with access to the Snowflake Warehouse.
Warning: Keep in mind that Snowflake is case sensitive and if identifiers are not quoted, they are converted to upper case. So if you run, for example, a query CREATE SCHEMA john.doe;, you must enter the schema name as DOE in the data destination connector configuration.
More info here.
You need to provide a host name, user name, password, and a database name (MySQL schema).
We highly recommend that you create dedicated credentials for the data destination connector in your database.
More info here.
You need to provide a host name, driver, port number, user name, password, database name, and a schema.
We highly recommend that you create dedicated credentials for the data destination connector in your database.
More info here.
Before turning to the Keboola support team for help, make sure your error is not a common problem that can be solved without our help.
If you see the error pictured below, you have probably forgotten to set up the Snowflake database.
Click on the text under Configuration in the top left corner. This will redirect you to the Snowflake Database connector. Now follow the Snowflake Database provided by Keboola on the page Authorizations/destinations.
Then go to the Flows tab and Run the flow again.