How to track mentions or hashtags on Twitter

Learn how to build a report to track @mentions or #hashtags on Twitter

Intro

Taking care of customers is pivotal to any business. And building a top-notch customer experience may contribute to strengthening your business's competitive position.

Over time, Twitter - thanks to its direct and immediate experience - has become an easy tool for customers to reach out to their favorite brands.

This means monitoring and responding to customers’ Tweets in a timely and comprehensive manner: a task that might be very challenging, especially if you don’t have any automation in place and you need to go back and forth looking for mentions.

In this short guide, we’ll walk you through building an easy spreadsheet to monitor your Twitter mentions and set up an email or Slack alert.

Here is a sneak peek of what you will get:

Screenshot 2023-02-23 at 10.46.45

Twitter engagement glossary

Before getting started, let's briefly go through some definitions. As a business, Twitter offers the community a broad range of actions to engage with your social media activity:

  • Follow. Following an account puts it on your feed and allows you to get updated when it posts new content.

  • Like. Use it to show appreciation or endorsement of specific posts.

  • Retweet. Use it to re-share some content to your follower base, ignite discussions, and support a cause.

  • Reply. Through reply, you can directly add a personal comment below any Tweet.

  • Share. Use it to share the link to a specific Tweet with anyone outside Twitter.

  • Mention. Place an @ before any account name to mention it directly in your Tweet. The mentioned account will get a notification.

For the purpose of this guide, we will focus particularly on the @mention action, most common when your customers want to notify you about something that is happening at the product level or just send some kudos for your last product release. The same structure works also with #hashtags, in case you desire to sound out some specific sentiments in the market.

Let's go

First of all, use our template at the following link Tweets tracker and save it in one of your workspace's folders.

To deeply understand how it's been built, let's reverse-engineer it together.

First of all, you need to enable Rows data integration and connect your Twitter account to Rows. Click on the top modal and then follow the instructions. The typical Twitter Auth page will open: enter your Twitter handle and password, and authorize Rows to retrieve your data.

Now you are back on the spreadsheet, ready to set it up.

In cell B1 of the Search table, input your query, namley the mentioned account you want to track, for example, @RowsHQ, or an hashtag, such as #spreadsheets.

Screenshot 2023-02-22 at 17.05.18

Below is a Data Table, that has been generated through our Actions menu. It is backed by data coming from our Get the top 100 tweets based on keywords action and displays the results from your search as defined in the Search Table, including the main metrics associated with the tweets and the users, such as likes, retweets, name and bio.

The table is permanently synced with your Twitter account and has a built-in daily refresh schedule: this way, every day it will automatically fetch new data, if available.

Screenshot 2023-02-22 at 17.05.31

You can always modify the metrics displayed, by clicking on the ... in the top right corner of the table. The Action menu will open on the right and allow you to customize the table.

Screenshot 2023-02-22 at 17.59.20

Column renaming and order is available directly on the table, through cell editing and dragging.

Set up an alert

Now that you get a list of anyone mentioning your Twitter account, we will walk you through creating an alert that notifies you whenever a new mention happens.

Rows allows you to send an email or a slack message directly from a spreadsheet, using either SEND_EMAIL() or MESSAGE_CHANNEL_SLACK(). The former uses our always-on proprietary service while the latter needs to be activated with credentials, like the Twitter one you connected at the beginning of this guide.

Email alert

To set up an email alert whenever a new mention occurs, position yourself in cell L1 of the Tweets table. Here, we're going to use AUTOFILL() to trigger Rows' email sender automatically whenever the table will get updated (and new mentions will be added to it).

Rows AUTOFILL() should always be placed in the column header and has to include the following mandatory arguments: the column title in quotation marks and the formula to be filled in the column itself, in this case:

1=AUTOFILL("Email alert",SEND_EMAIL("info@rows","your_email","New mention on Twitter", "Please check here: "&E2)

The SEND_EMAIL() function, to be enclosed as a second argument of the AUTOFILL() needs the following four arguments:

  • From: the email address from which you want the email to be sent, e.g. info@rows.com
  • To: the email address to receive the alert, i.e. your email
  • Subject of the email, i.e. "New mention on Twitter"
  • Message of the email. Here it could be useful to concatenate a string and the URL in E2, to be able to check the mention immediately, e.g. "Please check here"&E2

Slack alert

To set up a Slack alert whenever a new mention occurs, you first need to enable the Slack integration.

Visit our Slack integration page and click on Connect. The Slack Auth page will open: enter your Slack credentials and authorize Rows to retrieve your data.

Now you are back on the spreadsheet. Position yourself in cell L1 of the Tweets table. Here, we're going to use AUTOFILL() to trigger the Slack sender automatically whenever the table will get updated (and new mentions will be added to it).

Rows AUTOFILL() should always be placed in the column header and has to include the following mandatory arguments: the column title in quotation marks and the formula to be filled in the column itself, in this case:

1=AUTOFILL("Slack alert",MESSAGE_CHANNEL_SLACK("twitter_alert","New mention, please check: "&E2)

The MESSAGE_CHANNEL_SLACK() function, to be enclosed as a second argument of the AUTOFILL() needs the following four arguments:

  • Channel: the channel in your workspace where to receive the alert
  • Message: here it could be useful to concatenate a string and the URL in E2, to be able to check the mention immediately, e.g. "Please check here"&E2

You might also like

🍪

We use cookies to enhance your user experience and analyze website performance. You can revoke consent anytime. Learn more.