← All blog posts

Advanced Webflow Search & Filtering w/ Data Fetcher & Finsweet Attributes

In this post, we'll be walking through the process of using Finsweet Sort and Filter to implement search and basic filtering functionality for our book collection. We'll also be using Data Fetcher to import Google Analytics page views and incorporate them into our Webflow site, allowing us to sort our books by popularity.

December 23, 2022

In this blog post, we'll be exploring the tools and steps involved in creating a search and filtering page for Booknotes.ai. We'll be using the following tools:

  • Relume for the Filter component
  • Finsweet Filter to create the search functionality
  • Finsweet Sort to create the sorting functionality
  • Google Analytics to capture page views on individual book pages
  • Data Fetcher to import views on each book page
  • Whalesync to send pageviews to Webflow for filtering

Adding the Relume Category Filters Component

Relume has a great ecommerce collection that is useful for creating powerful category filter pages. Because Relume works with Client First, you can add Finsweet attributes to the filters, so all you need to do is replace the values you want to filter by. To ensure your styles stay as they are when importing the component, be sure to enable class sync. You can also remove any parts of the component that you don't need and replace the content div with the books collection.

Using Finsweet Filter to Create the Search Functionality

To create the search functionality, we'll be using Finsweet Filter. Here are the steps to get it set up:

  1. Install the Finsweet Filter script
  2. Replace the values on the search attribute
  3. Add attributes to the book card values that you want to search by

Bonus tip: If you want to use attributes to search for something but don't want it displayed in your item card, you can add a hidden div block and add the attributes to values hidden in that div block.

Using Finsweet Sort to Sort Collection Items

To sort the collection items alphabetically, by the number of pages, and by when they were added, we'll be using Finsweet Sort. The process is similar to Finsweet Filter:

  1. Add the script to the head code of your site (or just on the page if that's the only place you'll be sorting and filtering)
  2. Apply attributes to the buttons that trigger the sort
  3. Add attributes to any values in the collection item that might not have them applied

Setting Up Google Analytics on Your Site

Google analytics is a simple script you can install on your site that allows you track how website visitors are using your site. I use it to see what books are most popular, based on the amount of views the book has had. The plan is to store that value in Webflow so I can then sort it by that value using Finsweet Sort.

Using Data Fetcher to Import Google Analytics Page Views

Data Fetcher is an Airtable extension that allows you to pull data from third-party APIs into your Airtable base. To use it to import Google Analytics page views:

  1. Create a Data Fetcher account and connect your Google Analytics account
  2. Configure your Data Fetcher settings to import views and split all views by individual pages
  3. Apply a filter for retrieving only pages that contain the page path of your cms item pages (e.g., /book/)
  4. Set Data Fetcher to update records by URL. You must make sure that the URLs in Airtable and Google Analytics match up.
  5. Start importing data

Using Whalesync to Sync Data into Webflow

Once the data is in Airtable, you can use Whalesync to sync that data into Webflow.

Using Finsweet Sort to Create the Functionality to Sort by Page Views

With the page views data imported into Webflow, you can use Finsweet Sort to create the functionality that allows people to sort the book collection by page views. Simply apply the appropriate attributes to the buttons that trigger the sort and to any values in the collection item that might not have them applied.

And that's it! With these tools and steps, you'll be able to create a fully functional search and filtering page for your own website, complete with the ability to sort by page views using data imported from Google Analytics.

Use the code

Copy

Dive Deeper with the MVMP Marketplace Course

Learn how to build the essential features for your online marketplace. Start creating the most essential features for your no-code marketplace and start scaling your site

Learn more →
Subscribe to the newsletter!

Get notified when I publish my next video or blog

😘 Got it!
Oops! Something went wrong while submitting the form.
🚀 Webflow Apps - Reviewing Webflow's Biggest Update This Year!

🚀 Webflow Apps - Reviewing Webflow's Biggest Update This Year!

Explore Webflow's revolutionary app updates and API changes that enhance design capabilities and user experience, featuring standout apps like Unsplash, Jasper AI, Finsweet Table, and Memberstack.

🤯 Relume's AI Site Builder is UNBELIEVABLE!

🤯 Relume's AI Site Builder is UNBELIEVABLE!

Relume has once again taken things to the next level AGAIN. This time with their AI Site Builder tool that will allow you to turn a simple prompt into a sitemap and wireframes with AI generated copy in seconds.

🚀 6 Tips for Building Webflow Sites More Efficiently

🚀 6 Tips for Building Webflow Sites More Efficiently

Discover the secrets to enhancing your Webflow design process with these 6 essential tips! In this video, we'll walk you through time-saving techniques, productivity-boosting hacks, and valuable strategies to help you build Webflow sites more efficiently. From style guides to on-page optimization, these expertly-crafted tips will empower you to work smarter, create beautiful and responsive websites faster, and take your Webflow skills to new heights. Don't miss out on unlocking your full Webflow potential – tune in now to elevate your website-building experience!

Supercharge Your Webflow Landing Pages: Creating Custom Open Graph Images with Placid (Part 3)

Supercharge Your Webflow Landing Pages: Creating Custom Open Graph Images with Placid (Part 3)

Join us for the final installment of our series as we explore the creation of custom open graph images for each landing page. In Part 3, we'll use Placid to automatically generate visually appealing open graph images with custom screenshots and text. Enhance your website's social media presence and elevate your landing pages with these custom images. Complete your automation journey and unlock your website's full potential with this innovative workflow.

Supercharge Your Webflow Landing Pages: Automatically Updating Webflow CMS Items (Part 2)

Supercharge Your Webflow Landing Pages: Automatically Updating Webflow CMS Items (Part 2)

Continue your automation journey with Part 2 of our series! In this video, we'll guide you through setting up a workflow that automatically updates Webflow CMS items whenever any of your titles have been created or updated. We'll use Airtable Automations to trigger a make.com workflow that seamlessly updates your Webflow items. Streamline your website-building process and keep your landing pages up-to-date with this powerful workflow.

Supercharge Your Webflow Landing Pages: Automated Title Tags, Meta Descriptions, and More (Part 1)

Supercharge Your Webflow Landing Pages: Automated Title Tags, Meta Descriptions, and More (Part 1)

Discover how to optimize your landing pages with automated workflows! In Part 1, we'll explore how to use OpenAI's GPT-4 language model to automatically generate SEO-optimized Title Tags, Meta Descriptions, H1 and H2 headings for your landing pages. Enhance your website's search engine visibility and boost your SEO efforts with these powerful techniques.