Contentsquare icon

Contentsquare

Use the Contentsquare API

Actions76

Overview

This node integrates with the Contentsquare API to retrieve detailed user behavior and performance metrics related to website zones, pages, sites, and exports. Specifically, for the Metrics API resource and the Get Zone Conversion Rate per Tap operation, it fetches the percentage of users who tapped on a specific zone in an app and completed a selected goal during the same session.

This node is beneficial for digital analysts and marketers who want to understand how interactive elements (zones) on their mobile apps contribute to conversion goals. For example, it can help measure the effectiveness of call-to-action buttons or promotional banners by tracking tap interactions that lead to conversions.

Practical use cases include:

  • Measuring conversion rates for tappable zones in mobile applications.
  • Analyzing user engagement and conversion funnels at a granular zone level.
  • Optimizing UI/UX by identifying high-conversion zones.

Properties

Name Meaning
Zone ID The unique identifier of the zone for which the conversion rate per tap metric is requested. This is required to specify the target zone.
Query Parameters A collection of optional filters and parameters to refine the query results:
- Device: Filter by device type (All, Desktop, Mobile, Tablet).
- End Date: End date of analysis range.
- Format: Export format filter.
- Frequency: Export frequency filter.
- From: Export format filter.
- Goal ID: Specify a non-ecommerce goal for conversion metrics.
- IDs: Comma-separated list of segment IDs to filter.
- Limit: Maximum number of results to return (default 50).
- Metric Type: Quantile or Average.
- 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 where each item corresponds to the API response for the requested metric. The structure depends on the Contentsquare API's response for the "zone conversion rate per tap" metric but generally includes:

  • Conversion rate values representing the percentage of users who tapped the zone and completed the specified goal.
  • Possibly additional metadata such as timestamps, device breakdowns, or segmentation details depending on query parameters.

If the API returns no content, the node outputs a status code message indicating "204 No Content".

The node does not output binary data.

Dependencies

  • Requires an API key credential with Client ID, Client Secret, Project ID, and scope configured for the Contentsquare API.
  • The node performs OAuth2 client credentials flow to obtain an access token before making API requests.
  • Network access to https://api.contentsquare.com is necessary.

Troubleshooting

  • Missing Client ID or Client Secret: The node will throw an error if these credentials are not provided. Ensure your API credentials are correctly set up.
  • Zone ID is required: For this operation, the Zone ID must be provided; otherwise, the node throws an error.
  • Failed to retrieve access token or endpoint: Indicates issues with authentication or API availability. Verify credentials and network connectivity.
  • API errors: If the API returns an error, the node wraps it with a message starting with "Error calling Contentsquare API". Check the error message and stack trace for details.
  • Empty or malformed responses: The node attempts to parse string responses as JSON; if parsing fails, it returns raw text. Ensure the API returns valid JSON.

Links and References

Discussion