HappierleadsDocs
MCP server

set_page_tracking_rules

Sets the page rules of a website.

Set which pages are tracked · Deletes or overwrites data

Sets the page rules of a website. In exclude mode visitors on matching pages are not identified (e.g. careers or login pages); in include mode only visitors on matching pages are. The rules you send replace the current ones; an empty list removes them. Rules that could never match are refused with the reason.

ConnectionAccount URL, team member URL or OAuth

Parameters

ParameterTypeRequiredDescription
websiteIdstringYesWebsite ID from list_websites.
mode"exclude" | "include"Noexclude (default) or include.
rulesobject[]YesThe full list of rules.
rules[].type"starts-with" | "ends-with" | "contains" | "does-not-contain"Yesstarts-with, ends-with, contains or does-not-contain.
rules[].urlstringYesThe part of the page URL to match, e.g. /careers.

Tool definition

What your assistant receives from tools/list:

{
  "name": "set_page_tracking_rules",
  "title": "Set which pages are tracked",
  "annotations": {
    "title": "Set which pages are tracked",
    "readOnlyHint": false,
    "destructiveHint": true,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "websiteId": {
        "type": "string",
        "description": "Website ID from list_websites."
      },
      "mode": {
        "type": "string",
        "enum": [
          "exclude",
          "include"
        ],
        "description": "exclude (default) or include."
      },
      "rules": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "starts-with",
                "ends-with",
                "contains",
                "does-not-contain"
              ],
              "description": "starts-with, ends-with, contains or does-not-contain."
            },
            "url": {
              "type": "string",
              "description": "The part of the page URL to match, e.g. /careers."
            }
          },
          "required": [
            "type",
            "url"
          ]
        },
        "description": "The full list of rules."
      }
    },
    "required": [
      "websiteId",
      "rules"
    ]
  }
}

On this page