Enable User Analytics
This section describes how to enable or disable logging of user activities and transfer of the logs to Alteryx®. When this feature is enabled, user activities are captured locally on the Trifacta node in a series of log files. Periodically, these log files are uploaded to a predefined S3 bucket, where Alteryx can analyze the logging activity to improve the product and assist in troubleshooting.
Tip
This feature is useful for providing better suggestions and machine-based learning to the Designer Cloud Powered by Trifacta platform instance.
Note
During initial deployment, this service may be enabled for you. You can use the information below to disable the service.
Alteryx captures the following types of usage information, which are available in different releases. These can be separately enabled.
Analytics Type | Description |
---|---|
Alteryx Analytics | Alteryx proprietary capture of information about the Designer Cloud Powered by Trifacta platform |
Segment Analytics | Analytics for various common data segments, such as Google and Marketo. |
Configuration Steps
The following configuration steps must be completed:
Customer must file a request with Alteryx Support when this service is to be enabled for the first time.
Services must be enabled on the Trifacta node.
Open user logging port, if not already opened.
Generate and publish credentials.
Define cron job to upload logs.
Customer Requests
To enable this service, customers must file a support ticket with Alteryx Support. In your request, please include a request for the appropriate API write key values to insert in the configuration. Details are below.
Configure for Platform Analytics
The platform's custom-built telemetry system is controlled by the following config field in You can apply this change through the Admin Settings Page (recommended) or trifacta-conf.json
. For more information, see Platform Configuration Methods.:
Property | Description |
---|---|
"webapp.client.enableUserEventLogging" | When set to |
Configure for Segment Analytics
You can apply this change through the Admin Settings Page (recommended) or trifacta-conf.json
. For more information, see Platform Configuration Methods.
The following settings apply to segment analytics.
Property | Description |
---|---|
"webapp.enableAnalytics": false, | When When |
"webapp.analytics.segmentWriteKey": "<YOUR_VALUE_HERE>", | For remote analytics, this property identifies the segment API writeKey matching the project to which to push. Within the Segment project lives the configuration for each sink (e.g Google Analytics, Marketo). Note For more information on the key value to insert, please contact Alteryx Support. |
"webapp.analytics.enabledChannels": ["Log","Amplitude"], | The channels for which to record data:
For remote analytics, this value and the |
Make changes to the above properties as needed.
Save your changes and restart the platform.
Configure for Amplitude Analytics client-side SDK
Property | Description |
---|---|
"telemetry.amplitude.client.enabled" | When set to Note This property is not intended for customer modification. If you believe that you need to make changes, please contact Alteryx Support. |
"telemetry.amplitude.client.writeKey" | Note For more information on the key value to insert, please contact Alteryx Support. |
Open user logging port
Note
To receive the full benefits of this feature, the Trifacta node must be able to connect to the public Internet.
On the server hosting the Designer Cloud Powered by Trifacta platform, the following port must be opened:
Port 80 (HTTP) and/or
Port 443 (HTTPS)
Create credentials file
To connect to S3, the Designer Cloud Powered by Trifacta platform requires that a set of credentials be generated and stored in the following directory. This credentials is provided by Alteryx.
/opt/trifacta/bin/log-forwarding
Generate cron job
To regularly upload the generated logs to Alteryx, you can configure a cron job to transfer the files.
Steps:
Create an agent or script to periodically run the node process
log-forwarding.js
. You should run this once per day.An example command to run this script from the deployment directory is the following:
node bin/log-forwarding/src/log-forwarding.js protobuf-events.log segment-proto.log cleaned-join-logs.txt
Disable
To disable the service, set webapp.enableAnalytics
to false
. Then, restart the platform.