Pulse Insights Documentation
  • Pulse Insights Overview
    • đź‘‹Welcome to Pulse Insights
  • Implementing Pulse Insights (Dev)
    • Implementing on Web and Mobile Web
      • Deploying your tag (code snippet)
      • Ingesting contextual data for targeting and analysis
      • Client Key
      • Tracking Events (aka High Value Actions)
      • Presenting a specific survey
      • Supporting Inline surveys
      • Callbacks
      • Privacy Features
        • Identifiers, cookies, and local storage
        • Data that Pulse Insights stores
      • QA Process and Preview Mode
        • JavaScript Object
      • Single Page Apps
      • Load Time & Availability
      • Bot blocking
      • Customer-initiated Feedback
    • Implementing in email
      • Dynamic Email
    • Implementing in Native Apps
      • Android
        • Android Release Notes
        • Android Demo App
      • iOS
        • iOS Release Notes
        • iOS Demo App
      • Demo App Help
  • Integrations
    • Integrations overview
      • Hubspot
      • Braze
      • Google Analytics
      • Data Lake
  • Configuring Pulse Insights (Console)
    • Account Setup
      • Authentication & SSO
      • Inviting Collaborators
      • Roles & permissions
    • Dashboard & Program Management
      • Survey Status
    • Editor
      • Question Types
        • Survey Invitation
        • Single Choice
          • Using Images
        • Multiple Choice
        • Free Text
        • Net Promoter Score
        • Slider
        • Custom Content (Next Best Action)
        • Thank You Message
          • Poll (Show Results)
      • General
      • Targeting
        • Devices & Channels
        • Sample Rate
        • URL & Events
        • Dates
        • Previous Responses
        • On Page Behavior
        • CRM Targeting
        • Geo Targeting
        • Goal
        • User Behavior
        • Advanced Settings
      • Formatting
        • Widget Types
          • Docked
          • Bottom Bar
          • Top Bar
          • Overlay
          • Inline
        • Themes
        • Question Display
        • Custom CSS (Survey-level)
        • Supported Markdown
      • Link Builder
      • Preview
      • Survey Groups (Localization)
    • Reporting
      • Results Page & Filtering
      • On Demand
        • Columns/Data Dictionary
      • Scheduled Reports
      • Free Text
        • AI Generated Summary
        • Responses & Tagging
      • Custom Content Reporting
      • Viewable Impressions
    • Account Level Settings
      • Get Code Snippet
      • Global Targeting
      • Data & Integrations (Callbacks)
      • Data Restrictions
      • Themes
      • Automations
        • High Value Actions (Events)
      • Activity Log
      • Configured by Pulse Insights
  • Best Practices
    • Best Practices
      • Copy
      • Design and Execution
      • Targeting
      • Widget Types
      • Sample Rate
      • Submission Rates
      • Special Features
      • Best Practices for Progressive Profiling
  • API
    • API reference
      • Surveys
        • Questions
        • Poll
      • Q
        • A
      • Direct serve
      • Serve
      • Results
      • Present results
      • Track event
      • Custom content link click
      • Submissions
        • All answers
        • Answer
        • Close
        • Viewed at
      • Devices
        • Set data
Powered by GitBook
On this page
  • Integrating with Other Services
  • Callbacks
  • Impression Callback
  • Viewed impression Callback
  • Onanswer Callback
  • Onclose Callback
  • Oncomplete callback
  • Onclick callback

Was this helpful?

  1. Configuring Pulse Insights (Console)
  2. Account Level Settings

Data & Integrations (Callbacks)

Integrating with Other Services

Pulse Insights was built to easily integrate into other services. For example:

  • You might want to push survey responses into Google Analytics or Adobe Analytics so you can add the missing context to traditional web analytics data

  • If the survey is targeted to your customers, you might want to push results into your CRM system

  • You may want to place the current user into a DMP segment or A/B Test segment based on what they answer

  • Similarly, you might want to push preferences into your Personalization profile

Because CRM setups tend to vary from client to client, CRM integrations are configured and managed by Pulse Insights Tech Ops. Get in touch with your Customer Success Manager (CSM) if you need to add or make changes to your CRM integration.

Pulse Insights supports the following integration methods:

  • Real-time API call upon question submissions

  • Hourly/daily feed placed on client’s or Pulse Insights’ sftp server

  • JavaScript callouts on question submissions

Callbacks

Under the "Setup" dropdown menu, you’ll find the Data & Integrations page with the following callback code hooks:

Impression Callback

Impression callbacks are executed when the survey has an impression.

You can use the pi('set_context_data', object); to save context data along with the survey results. The object can be a javascript object, arrays, string or integers size limit is 1000 characters once serialized into JSON. Examples: pi('set_context_data', {gender: 'male', age: 32, locale: 'en-US'}); pi('set_context_data', 'christmas_promotion');

Viewed impression Callback

(Only available if "Viewed Impression" feature is enabled for your account). This callback is executed as soon as the survey is viewed by the user.

Onanswer Callback

This code snippet will be executed after each answer submission (after submitting but right before the /answer HTTP call).

The survey object gives you access to all the data related to the survey and the question object the answered question. Also, an answer object gives you access to the last answer submitted and will be formated as the following: Single choice question: { id: the_possible_answer_id, content: 'asdf', next_question_id: 1234 } Multiple choice question: { id: the_possible_answer_id, content: 'asdf', next_question_id: 1234 } Free text question: { id: null, content: 'asdf', next_question_id: 1234 }

Onclose Callback

This code snippet will be executed when the survey is closed before all of its questions have been answered.

The survey object gives you access to all the data related to the survey.

Oncomplete callback

This code snippet is executed after the survey submission and the survey object gives you access to all the data related to the survey and the submitted answers.

survey.questions returns all the details about the survey questions and survey.answers returns the submitted answers by the user.

In case of Onanswer Callback, answer and question objects representing the current answer and question will be also present. Example: var firstQuestionContent = survey.questions[0].content; var firstAnswerContent = survey.answers[0].content; ga('send','hitType': 'event', 'eventCategory': 'survey', 'eventAction': 'response', 'eventLabel': firstQuestionContent, 'eventValue': firstAnswerContent });

Onclick callback

PreviousGlobal TargetingNextData Restrictions

Last updated 1 year ago

Was this helpful?

This code snippet is executed after an anchor tag within a question gets clicked.

This callback is only available to use when the account setting "" is enabled.

custom content
Custom Content Link Tracking