Quickstart
Get started with Pointer in under 5 minutes.
Prerequisites
- For React: Node.js 16.0 or later and a React-based application (React 18+)
- For JavaScript: Any website or web application
Installation
Grab the project ID from the Pointer dashboard.
Login to the Pointer dashboard, then create a project. Your project ID will be automatically generated for you. Copy this ID and store it.
The Setup section of your project settings in the dashboard will have code snippets with your project ID already filled in for easy copying.
Install the Pointer SDK using your preferred package manager.
Wrap your app with the PointerProvider.
In your root file, (e.g., layout.tsx
, index.tsx
, _app.tsx
) wrap your app with the PointerProvider
.
For optimal performance, place the PointerProvider
as close as possible to its child components.
Verify that Pointer is working.
Once you run your app, the Pointer widget should appear in the bottom-right corner. Go to the Setup section in your project settings on the dashboard and click “Check connection” to ensure everything is working correctly.
Go to the Playground to customize your widget.
Head to the Playground in the Pointer dashboard to customize your widget’s appearance, content, and behavior.
Grab the project ID from the Pointer dashboard.
Login to the Pointer dashboard, then create a project. Your project ID will be automatically generated for you. Copy this ID and store it.
The Setup section of your project settings in the dashboard will have code snippets with your project ID already filled in for easy copying.
Install the Pointer SDK using your preferred package manager.
Wrap your app with the PointerProvider.
In your root file, (e.g., layout.tsx
, index.tsx
, _app.tsx
) wrap your app with the PointerProvider
.
For optimal performance, place the PointerProvider
as close as possible to its child components.
Verify that Pointer is working.
Once you run your app, the Pointer widget should appear in the bottom-right corner. Go to the Setup section in your project settings on the dashboard and click “Check connection” to ensure everything is working correctly.
Go to the Playground to customize your widget.
Head to the Playground in the Pointer dashboard to customize your widget’s appearance, content, and behavior.
Grab the project ID from the Pointer dashboard.
Login to the Pointer dashboard, then create a project. Your project ID will be automatically generated for you. Copy this ID and store it.
The Setup section of your project settings in the dashboard will have code snippets with your project ID already filled in for easy copying.
Add the Pointer script to your website.
Add the following script tag to your HTML file, ideally right before the closing </body>
tag:
Make sure to replace the project ID placeholder with your own project ID from the Pointer dashboard.
Verify that Pointer is working.
Once you reload your website, the Pointer widget should appear in the bottom-right corner. Go to the Setup section in your project settings on the dashboard and click “Check connection” to ensure everything is working correctly.
Go to the Playground to customize your widget.
Head to the Playground in the Pointer dashboard to customize your widget’s appearance, content, and behavior.
Allowed Origins
For security reasons, you should specify which domains are allowed to use your project ID. Go to your project settings in the Pointer dashboard, find the General tab, and add your domains to the Allowed Origins section. This prevents unauthorized websites from using your project ID.
Styling and Customization
All styling and customization is now done through the Playground in the Pointer dashboard. This visual editor provides a more user-friendly interface for customizing your widget’s appearance, content, and behavior.
Framework-specific setup for React
Next.js
If using the app
router:
If using the pages
router: