Send geofence data to over 200 destinations by making SpotSense a source in Segment
SpotSense helps companies collect, analyze, and act on location data from their mobile app users. When a user interacts with a geofence you’ve created, that data can be used to enrich analytics, send location based push notifications, or trigger a custom line of code within your app.
Take your company’s analytics to the next level by adding SpotSense as a Source to Segment. We’ll automatically track enter and exit events of geofences you create (i.e LAX-enter and Starbucks-exit), forward them to your destinations, and load them into your data warehouses.
In your favorite BI or analytics tool, you’ll be able to analyze location events and join your SpotSense data with the events you’re already sending through Segment to analyze the down-funnel effects of your campaigns.
- From your workspace’s segment.com/<your-workspace>/sources page, click Add source.
- Choose NodeJS. Learn how to set up NodeJS here (This is a required step)
- Give the Source a nickname and a schema name. The nickname will be used to designate the Source in the Segment interface, and the schema name is the namespace you’ll be querying against in your warehouse. You can name them however you’d like, but we recommend sticking to something that reflects the Source itself, like SpotSense for nickname and spotsense for the schema name.
- The next page (“Overview”) will surface your Segment write key for NodeJS (now SpotSense). Copy this write key.
5. To finish the setup, you’ll have to go into your SpotSense dashboard and enter this Segment write key in the integrations settings. Find the right place in SpotSense by clicking Integrations > Segment.
6. Paste your write key and click Save
7. In Segment, click into your new SpotSense Source in segment.com/<your-workspace>/sources. From there you’ll be able to add Destinations where you want to send geofenced entry and exit events.
IMPORTANT: SpotSense uses the Device ID as the User ID when sending to Segment. Be sure that you are using the Device ID in your other sources so you can match enter/exit events with that user.
That’s it! You can now select Segment as an action type when creating a geofence. As your users interact with geofences you’ve created, events will be sent to your destinations and automatically loaded into any warehouses you have enabled.