Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@adobe/react-native-acpanalytics
Advanced tools
Adobe Experience Platform support for React Native apps.
@adobe/react-native-acpanalytics
is a wrapper around the iOS, tvOS and Android AEP Analytics SDK to allow for integration with React Native applications. Functionality to enable Adobe Analytics is provided entirely through JavaScript documented below.
Install the SDK with npm and configure the native Android/iOS project in your react native project. Before installing the Analytics extension, it is recommended to first install the Core extension.
Note: If you are new to React Native we suggest you follow the React Native Getting Started page before continuing.
First create a React Native project:
react-native init MyReactApp
Note: Follow React Native tvos support to create app with tvos target.
Install and link the @adobe/react-native-acpanalytics
package:
cd MyReactApp
npm install @adobe/react-native-acpanalytics
CLI autolink feature links the module while building the app.
react-native link @adobe/react-native-acpanalytics
Note For iOS
using cocoapods
, run:
cd ios/ && pod install
This project contains jest unit tests which are contained in the __tests__
directory, to run the tests locally:
make run-tests-locally
import {ACPAnalytics} from '@adobe/react-native-acpanalytics';
ACPAnalytics.extensionVersion().then(version => console.log("AdobeExperienceSDK: ACPAnalytics version: " + version));
It is recommended to initialize the SDK via native code inside your AppDelegate and MainApplication in iOS and Android respectively.
#import <ACPAnalytics.h>
[ACPAnalytics registerExtension];
import com.adobe.marketing.mobile.Analytics;
Analytics.registerExtension();
ACPAnalytics.getTrackingIdentifier().then(identifier => console.log("AdobeExperienceSDK: Tracking identifier: " + identifier));
ACPAnalytics.sendQueuedHits();
ACPAnalytics.getQueueSize().then(size => console.log("AdobeExperienceSDK: Queue size: " + size));
ACPAnalytics.clearQueue();
ACPAnalytics.setVisitorIdentifier("yourVisitorId");
ACPAnalytics.getVisitorIdentifier().then(vid => console.log("AdobeExperienceSDK: Visitor identifier: " + vid));
ACPCore.trackAction("action", {"mytest": "action"});
ACPCore.trackState("state", {"mytest": "state"});
See CONTRIBUTING
See LICENSE
FAQs
Adobe Experience Platform support for React Native apps.
The npm package @adobe/react-native-acpanalytics receives a total of 6,259 weekly downloads. As such, @adobe/react-native-acpanalytics popularity was classified as popular.
We found that @adobe/react-native-acpanalytics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 21 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.