Audience Insights: Getting started
Audience Insights gives you tools and built-in workflows to collect, organize, and activate user data. With flexible storage options, you can capture bookmarks, preferences, and other key data points to better understand and engage your audience. User content preferences leverage ANS, Author and Site Services, connecting user data directly with ArcXP CMS products and tools. IAB Audience Taxonomy ensure the collected data is consistent, comparable and actionable. While Key-Value Pairs provide endless options of data types for flexibility & custom data flows.
To get started using Audience Insights, you will need to enable the feature in the Subscriptions Settings Admin. See: Managing Audience Insights.
For an overview of Audience Insights features and capabilities, see the Audience Insights Overview.
Using Audience Insights SDKs and APIs
We provide a set of public APIs and SDK methods that allow you to connect your end users with our system. We also provide a set of developer APIs for backoffice operations that require an ArcXP Developer Token to access.
To interact with our public Audience Insights APIs, you can either call the APIs directly or use our SDK packages. Our SDK methods act as wrappers that help developers interact with our APIs more easily. We strongly recommend using our SDKs, as these libraries handle various tasks for you.
API Reference
All available public APIs are documented in our Open API documentation.
SDK Quick Start
Pre-requisites
- Access to the @arcxp Github Package repository.
- npm or another Node package manager installed in your development environment.
- @arc-publishing/sdk-identity installed in your project to handle authentication for Audience Insights SDK methods that require it.
If your GitHub account does not have read access to the GitHub Packages under the @arcxp GitHub org, reach out to your TAM. Add your GitHub developer token to your .npmrc file, then install the package to your React project.
The Arc XP Audience Insights SDK is published to GitHub packages.
See: https://github.com/arcxp/arc-commerce-sdks/pkgs/npm/sdk-audience-insights.
Installation & Usage
Using your preferred Node package manager, execute the following command in your npm project:
npm install @arcxp/sdk-audience-insightsInstall the Identity SDK as well:
npm install @arc-publishing/sdk-identityAfter you have them installed, include the SDKs in your code.
To access the right API endpoints through the SDKs, specify an API Origin before calling any other SDK methods. You will need to pass Identity when initializing Audience Insights, as several methods require authentication, and the authentication is handled by Identity.
import Identity from '@arc-publishing/sdk-identity';import AudienceInsights from '@arcxp/sdk-audience-insights';
// Initialize Identity SDKIdentity.options({ apiOrigin: 'https://{ApiOrigin|CDN}',});
// Initialize Audience Insights SDKAudienceInsights.options({ apiOrigin: 'https://{ApiOrigin|CDN}', identity: Identity});You can now use the Audience Insights SDK methods in your code.
For SDK method reference, see: