UNPKG

gatsby-plugin-autopilot

Version:

A plugin to add Autopilot tracking code to your Gatsby site.

27 lines (20 loc) 792 B
# gatsby-plugin-autopilot Gatsby plugin for adding Autopilot tracking script to your Gatsby site. ## Install ```bash yarn add gatsby-plugin-autopilot ``` ## How to use ```js // In your gatsby-config.js { resolve: `gatsby-plugin-autopilot`, options: { apiUrl: "", // Your unique api URL, found in your tracking code settings in your Autopilot dashboard. trackingId: "", // Your unique tracking ID, also found in your tracking code settings. app: true, // Determines whether to load webpage or app tracking code. exclude: ['/signup', '/about'], // optional }, }, ``` ![Location of API URL and Trackin ID in Autopilot tracking code](https://github.com/abohannon/gatsby-plugin-autopilot/blob/master/autopilot-tracking-code-example.png)