react-carrotquest-module

1.0.0 • Public • Published

Build Status npm version npm downloads

react-carrotquest

React CarrotQuest Manager Module

Installation

npm:

npm install react-carrotquest-module --save

Usage

Initializing CarrotQuest Module:

import React from 'react'
import ReactDOM from 'react-dom'
import Router from 'react-router'
import routes from './routes'
 
...
import CarrotQuestManager from 'react-carrotquest-module'
 
const carrotQuestManagerArgs = {
  carrotQuestId: '12345-b52c96bea30646abf8170f333b'
}
 
CarrotQuestManager.initialize(carrotQuestManagerArgs)
...
 
const app = document.getElementById('app')
ReactDOM.render(<Router routes={routes} />, app)
 
Value Type Required Notes
gtmId String Yes GTM id, must be something like 12345-b52c96bea30646abf8170f333b.

Note:

  • Disabling javascript in the browser can prevent the correct operation of this library if React is only being rendered on the client side.

Package Sidebar

Install

npm i react-carrotquest-module

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

11.1 kB

Total Files

17

Last publish

Collaborators

  • alexey