Actions76
- Data Export API Actions
- Metrics API Actions
- Get Page Activity Rate
- Get Page Bounce Rate
- Get Page Conversion Rate
- Get Page Exit Rate
- Get Page Fold Height
- Get Page Height
- Get Page Interaction Time
- Get Page Landing Rate
- Get Page Scroll Rate
- Get Page Time Spent
- Get Page Unique Visits
- Get Page Views
- Get Page Views per Visit
- Get Page Visits
- Get Page Web Vitals
- Get Site Bounce Rate
- Get Site Cart Average
- Get Site Conversion Rate
- Get Site Conversions
- Get Site Pageview Average
- Get Site Revenue
- Get Site Session Time Average
- Get Site Visits
- Get Zone Attractiveness Rate
- Get Zone Click Rate
- Get Zone Click Recurrence
- Get Zone Conversion Rate per Click
- Get Zone Conversion Rate per Hover
- Get Zone Conversion Rate per Tap
- Get Zone Engagement Rate
- Get Zone Exposure Rate
- Get Zone Exposure Time
- Get Zone Hesitation Time
- Get Zone Hover Rate
- Get Zone Hover Time
- Get Zone Number of Clicks
- Get Zone Revenue
- Get Zone Revenue per Click
- Get Zone Revenue per Tap
- Get Zone Swipe Rate
- Get Zone Swipe Rate Recurrence
- Get Zone Tap Rate
- Get Zone Tap Recurrence
- Get Zone Time Before First Click
- Get Zone Time Before First Tap
- List Goals
- List Mappings
- List Page Groups
- List Page Groups Metrics
- List Segments
- List Site Metrics
- List Zone Metrics
- List Zones
- List Zonings
- Speed Analysis API Actions
Overview
This node integrates with the Contentsquare API to retrieve detailed user behavior and performance metrics related to website zones, pages, sites, and other entities. Specifically, the "Get Zone Swipe Rate" operation fetches the percentage of users who performed at least one swipe gesture on a specified zone during a screen display in an app environment.
Use cases include analyzing user engagement with specific interactive areas (zones) within mobile apps, understanding how often users swipe on certain UI elements, and optimizing app design based on user interaction data.
For example, a product manager might use this node to measure how frequently users swipe on a promotional banner zone in a mobile app to evaluate its effectiveness or to identify zones that require UI improvements.
Properties
Name | Meaning |
---|---|
Zone ID | The unique identifier of the zone for which the swipe rate metric is requested. This is required to specify the target zone. |
Query Parameters | A collection of optional filters and parameters to refine the query: - Device: Filter by device type ( All , Desktop , Mobile , Tablet ).- End Date: End date of analysis range. - Format: Format of the query. - Frequency: Export frequency filter. - From: Export format filter. - Goal ID: For conversion metrics on non-ecommerce goals. - IDs: Comma-separated list of segment IDs to filter. - Limit: Max number of results (default 50). - Metric Type: Choose between Quantile or Average .- Order: Result order, Ascending or Descending .- Page: Page number of results. - Period: Granularity of results ( Daily or None ).- Project ID: Target project ID (required for account-level API keys). - Quantile: Percentile used if metric type is quantile (default 75). - Scope, Segment IDs, Start Date, State, To: Additional filtering options. |
Output
The output is a JSON array containing the response from the Contentsquare Metrics API endpoint for zone swipe rate. The structure typically includes metrics such as:
- The percentage of users who swiped on the specified zone.
- Possibly additional metadata about the query or time range.
If the API returns no content, the node outputs a status message indicating "204 No Content".
No binary data output is involved in this operation.
Dependencies
- Requires valid API credentials including a client ID, client secret, and optionally a project ID and scope.
- The node performs OAuth2 client credentials flow to obtain an access token before making API requests.
- Network access to the Contentsquare API endpoint (
https://api.contentsquare.com
) is necessary. - Proper configuration of the API credentials in n8n is required.
Troubleshooting
- Missing Client ID or Client Secret: The node will throw an error if these credentials are not provided. Ensure credentials are correctly set up.
- Zone ID Required: If the Zone ID property is empty when calling the "Get Zone Swipe Rate" operation, the node throws an error indicating the requirement.
- Failed to Retrieve Access Token or Endpoint: Errors occur if the OAuth token request fails or the endpoint URL is missing. Verify credentials and network connectivity.
- API Request Errors: Any HTTP or API errors are caught and reported with the message prefixed by "Error calling Contentsquare API". Check the API key permissions, request parameters, and API limits.
- Empty or Unexpected Response: If the API returns an empty string or unexpected format, the node attempts to parse it; otherwise, it returns a "204 No Content" status.