- Primary Setup Steps
- Web
Request Custom Event Setup
Contact your Permutive Customer Success Manager (CSM) to configure the OpinarySurveyResponse custom event on your workspace. This step must be completed before proceeding with the JavaScript implementation.
Deploy JavaScript Collector
Add the following JavaScript code to your website where Opinary polls are displayed. This code listens for Opinary vote events and forwards them to Permutive.This code should be placed on pages where Opinary polls are displayed, ensuring it loads after both the Permutive SDK and Opinary scripts.
Verify Data Collection
Once configured, poll responses from Opinary will be sent to Permutive as OpinarySurveyResponse events.To verify:
- Navigate to the Permutive dashboard.
- Go to Events and look for the OpinarySurveyResponse event type.
- Check that poll response data is being collected.
- Interact with an Opinary poll on your site and verify the event appears in your dashboard.
Build Survey-Based Cohorts
Once event collection is verified, you can build cohorts based on poll responses. In the Permutive cohort builder, the
OpinarySurveyResponse event will appear in the event dropdown list.For example, you can create cohorts for:- Users who answered a specific poll question in a certain way (e.g., users whose gender is “female”)
- Users who completed specific polls
- Demographic segments based on poll responses
- Opinion-based segments for targeted content or advertising