Getting Started - Ahrefs


This guide covers the basic functionality of the Supermetrics Ahrefs connector, and gives examples of how to set up a query for Google Sheets, Google Data Studio, and Microsoft Excel. 


Quick links to the sections below:

Google Sheets

Google Data Studio

Microsoft Excel

"If everything fails..." 

Data Source Access Requirements:

To enable Supermetrics for Ahrefs you must have an Ahrefs paid plan subscription, minimum a Lite package. Please see all pricing plans from this guide:

A valid Ahrefs account with Admin or Owner user role level is required. To learn more, please refer to these guides:


Documentation:

The complete list of available fields (metrics and dimensions) for Ahrefs, can be found here.


Ahrefs' report types and quota limitations:

To learn more about Ahrefs' report types and quota limitations please refer to this guide.


Google Sheets - Query Setup Example:

1. To authenticate the data source, please see:

How to Authenticate/Re-authenticate Ahrefs in Google Sheets, Google Data Studio & Microsoft Excel

2. Select query type, insert target URL, and depending on the query type you select, there will be different options to select (mode, number of rows etc.). To learn more about report types and quota limitations, please refer to this guide.

3. Select metrics. To see all metrics that can be fetched, please see Ahrefs documentation. To deselect a metric click on the X next to the metric's name.


- When searching for a metric in the documentation, please see "Type met"

Field label is the metric name that appears in the sidebar.

5. Split by dimensions. You can choose dimensions in rows and/or columns. To see all dimensions that can be fetched, please see Ahrefs documentation. To deselect a dimension click on the X next to the dimension's name.

If you wish to split dimensions to rows, select number of rows and how to sort them (automatic, target URL, URL, rating etc.)

- If you wish to split dimensions to columns. Select number of categories and how to sort the columns (descending, ascending etc.). To deselect a dimension click on the X next to the dimension's name.


- When searching for a dimension in the documentation, please see "Type dim"

Field label is the metric name that appears in the sidebar.

6. As a last step, click on Get Data To Table.

You have completed all the steps to setup a query.


Further Reading

1. As optional, click on filter to filter your data. Select field, operator and insert the value to filter by.

2. Select options to add additional features to your query.

- Show all time value values: please see What does the "Show all time values" do

- Replace blank metric values with zeroes.

- Combine new results with old: please see What does the "Combine new results with old" setting do

- Format results for Google Data Studio (to import data from Google Sheets to Google Data Studio).

- No header row.

- Highlight values with colours (green, red, etc.).

- Advanced settings: please see Advanced Settings for Google Sheets.

Google Data Studio - Query Setup Example:

1. To authenticate the data source, please see:

How to Authenticate/Re-authenticate Ahrefs in Google Sheets, Google Data Studio & Microsoft Excel

2. Select dimensions. To see all dimensions that can be fetched, please see Ahrefs documentation. To deselect a dimension click on the X next to the dimension's name.

- When searching for a dimension in the documentation, please see "Type dim"

Field label is the metric name that appears in the sidebar.

3. Select metrics. To see all metrics that can be fetched with Shopify, please see Ahrefs documentation. To deselect a metric click on the X next to the metric's name.


- When searching for a metric in the documentation, please see "Type met"

Field label is the metric name that appears in the sidebar.

4. Sort how the data is shown. Choose the field you wish to sort wish and the order you want to use (ascending/descending).

5. Select default date range on auto or custom.


- To select a custom date, click on last 28 days. An automatic calendar bar will open, select a date on start date and end date and click apply.


To select a specific period (fixed, previoud period, previous year, none, advanced), click on the arrow on the right top corner.

You have completed all the steps to setup a query.


Further Reading

1. As optional, click on add a filter to filter your data.


Microsoft Excel - Query Setup Example:

1. To authenticate the data source, please see:

How to Authenticate/Re-authenticate Ahrefs in Google Sheets, Google Data Studio & Microsoft Excel

2. Select query type, insert target URL, and depending on the query type you select, there will be different options to select (mode, number of rows etc.). To learn more about report types and quota limitations, please refer to this guide.

3. Select metrics. To see all metrics that can be fetched, please see Ahrefs documentation. To deselect a metric click on the X next to the metric's name.

- When searching for a metric in the documentation, please see "Type met"

Field label is the metric name that appears in the sidebar.



4. Split dimensions by rows and/or columns.

- If you wish to split dimensions by rows, select number of rows and how to sort them (ascending/descending).


- If you wish to split dimensions by columns, select number of categories and how to sort them (descending/alphabetical).


5. As a last step, click on Get data.


You have completed all the steps to setup a query.


Further Reading

1. As optional, click on add filter to filter your data.


2. Select options to add additional features to your query.

- Replace blank metric values with zeroes.

- No header row.

- Show all time value values: please see What does the "Show all time values" do

- Custom, advanced settings: please see Advanced Settings for Excel.

Common errors:

- These metrics and dimensions can't be fetched together / Incompatible fields, please see this guide.
- For daily query quotas, please see this guide.

- Not All Accounts/Segments/Custom Fields/Labels Are Showing in the Product, please see this guide.

Further assistance 

If you followed all the above steps and you still encounter an error, please create a new support request with the details of the issue and we will assist you.


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.