react-twitter-conversion-tracker-plus
v1.1.0
Published
React JS component for Twitter's conversion tracking.
Downloads
57
Maintainers
Readme
react-twitter-conversion-tracker
React JS component for Twitter's conversion tracking.
Install
npm install --save react-twitter-conversion-tracker
Setup
import TwitterConvTrkr from "react-twitter-conversion-tracker";
const TWITTER_CONVERSATION_ID = process.env.TWITTER_CONVERSATION_ID;
TwitterConvTrkr.init(init);
API
TwitterConvTrkr.pageView()
Tracks the page a user is currently on.
TwitterConvTrkr.track(action)
Tracks the action provided to function.
YourTwitterConversionId is found in twq('init','x3id') when you create the tailored audience.