Shopware icon

Shopware

Shopware

Actions778

Sales Channel Analytics → Create Sales Channel Analytics

AI-generated

Overview

This node operation creates a new Sales Channel Analytics entry in the Shopware system. It is useful for users who want to add analytics tracking configurations to a specific sales channel, enabling detailed tracking and reporting of sales channel activities. For example, a user can create analytics settings that track orders, anonymize IP addresses, and specify tracking IDs for a sales channel.

Use Case Examples

  1. Creating a new sales channel analytics configuration with tracking enabled and IP anonymization for GDPR compliance.
  2. Adding a sales channel analytics entry with specific creation and update timestamps for audit purposes.

Properties

Name Meaning
Response Specifies the data format for the response, either basic or detailed.
Id The unique identifier for the sales channel analytics entry. This is a required field.
Tracking Id The tracking identifier used for analytics purposes.
Active Indicates whether the sales channel analytics entry is active.
Track Orders Determines if order tracking is enabled for the sales channel analytics.
Anonymize Ip Specifies if IP addresses should be anonymized in the analytics data.
Created At Timestamp indicating when the sales channel analytics entry was created.
Updated At Timestamp indicating when the sales channel analytics entry was last updated.
Sales Channel A JSON object representing the sales channel configuration associated with the analytics entry.
Request Options Additional request options such as batching, SSL handling, proxy settings, and timeout configurations.

Output

JSON

  • id - The unique identifier of the created sales channel analytics entry.
  • trackingId - The tracking identifier associated with the sales channel analytics.
  • active - Indicates if the sales channel analytics entry is active.
  • trackOrders - Indicates if order tracking is enabled.
  • anonymizeIp - Indicates if IP anonymization is enabled.
  • createdAt - The creation timestamp of the sales channel analytics entry.
  • updatedAt - The last update timestamp of the sales channel analytics entry.
  • salesChannel - The sales channel configuration object associated with the analytics entry.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure the 'Id' property is provided as it is required; missing it will cause the request to fail.
  • Verify that the 'salesChannel' JSON is correctly formatted to avoid JSON parsing errors.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option or check the SSL certificate validity.
  • Timeout errors can be resolved by increasing the 'Timeout' setting in request options.

Discussion