Google Analytics (GA) offers the ability to add filters to your GA views so that you can limit what type of data and traffic gets captured in your analytics. These filters also limit the type of company leads that get pushed into your Leadfeeder. This article will show you how to set up a new GA view with filters and how to attach it to Leadfeeder.
One of the most popular use cases for creating a new GA view is to filter out the people visiting specific pages, such as your customer login pages, jobs pages, or pages that target individual consumers (B2C). Here are the steps you need to take:
Log into the Google Analytics account that you want to connect to Leadfeeder.
Then, click on 'Admin' on the left menu bar:
Click on 'Create View'
Name this new view (e.g. "Leadfeeder - no jobseekers")
Then choose your preferred reporting timezone
After you save the new view, you'll be brought back to the main menu. Click on 'Filters'
Click '+Add Filter'
Name your filter, choose the 'custom' option and then select 'URl' from the filter options
By default, the filter option will be on the 'Exclude' option which is the one you want to choose to filter out visitors based on a specific page.
In the 'Filter Pattern' box, ONLY ADD the piece of the URL after the hostname. For example, to exclude traffic from Leadfeeder's jobs pages, we would only include '/jobs'
(Or to put it another way, the full URL is https://www.test.com/jobs and we only copied and pasted everything after leadfeeder.com).
**make sure to include the backslash '/' as well**
If you want to filter out multiple pages, you need to add some regular expressions to the filter pattern.
^ = Matches the adjacent characters at the beginning of a string
| = Creates an OR match
**After you slick 'Save', Google Analytics takes up to 24 hours for data to appear**
To learn about other filter options, visit GA's support article.
LAST STEP: Detach the old GA view from your Leadfeeder and attach this newly created one.
Go to your website settings:
Click on 'Google Analytics view' on the left menu bar:
Click on the red 'Detach' button for the GA view you want to remove.*
Then click on the blue 'Connect another Google Analytics view' button. From your list, find the GA view you created that filters out page traffic.**
*Old lead data that has already been collected in your Leadfeeder will not be removed. The filters will only work on new traffic going forward.
**It will take between 24 - 48 hours for the new data to reflect in Leadfeeder