react-twitter-conversion-tracker-plus

React JS component for Twitter's conversion tracking.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-twitter-conversion-tracker-plus
1.1.04 years ago4 years agoMinified + gzip package size for react-twitter-conversion-tracker-plus in KB

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.

Connect with me @evanmichaelkyle