Exclude Elementor, wp-admin views and other from Carity Heatsmap

Dominik Kumala 0 Reputation points
2023-04-08T11:34:31.3833333+00:00

Hi, How can I exclude from heatmaps Elementor or WordPress views? For example, when I'm editing my page my Path URL includes "Elementor" and I don't want to have this activity in my heatmaps. How can I use filters to exclude it?

Community Center | Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VasimTamboli 5,215 Reputation points
    2023-04-08T11:42:04.28+00:00

    To exclude Elementor or WordPress views from your heatmaps, you can use filters in your heatmap tracking code. Here's an example of how you can exclude views that contain "Elementor" in the URL path:

    // Initialize your heatmap tracking code
    var heatmap = new ClickTale.HotMap({
        projectID: YOUR_PROJECT_ID,
        recordingRatio: 0.5,
        ignoreCanvases: true,
        filter: function(url) {
            return url.indexOf('Elementor') === -1;
        }
    });
    
    
    

    In this example, the filter function is used to exclude any URLs that contain the string "Elementor". You can modify this function to exclude any other views or pages that you don't want to include in your heatmaps. Note that this example is using ClickTale's HotMap tracking code as an example, but the concept of using a filter to exclude certain views or pages can be applied to other heatmap tracking tools as well.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.