Four ways to debug a Segment setup | Articles

Building a Customer Data Infrastructure through Segment sets you up with a data pipeline that’s able to take data to a multitude of applications downstream. The quality of that data as well as the potential the data holds is tied directly to the quality of your technical specification as well as the quality of the implementation of that spec. We’ll share 4 ways on how you can verify an implementation in order to be able to verify, validate & debug the spec and its implementation to ensure an impeccable implementation.

 

1. Debugger

The first method simply uses Segment’s built-in Debugger functionality.
This provides an overview of the events that are being sent to Segment by a specific source. Simply trigger the different events and watch them come into Segment using the Debugger.

Segment debugger


2. Network tab

Right click in Chrome & select inspect. Navigate towards the “Network” tab.

Type “segment” in the search box. You can find the Segment calls here as they occur.
Simply trigger the different events and watch them being sent to Segment through the network tab.

Example of an identify (i) call:

Debugging a Segment identify call using the network tab



 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Example of a track (t) call:

Debugging a Segment track call using the network tab

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

More information regarding the statements can be found on the Segment help portal.

3. Console

Right click in Chrome & select inspect. Navigate towards the “Console” tab.

Type the following command:

Screenshot 2020 01 09 at 16.09.30

Debugging a Segment track call using the console tab

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The console will start logging all of the interactions with Segment. Simply trigger the different events and watch them being logged into the console.

To stop the console from logging these run the following command:

Screenshot 2020 01 09 at 09.42.12

4. Plugin

A fourth and final way to debug Segment is by using the Segment extension.

Simply trigger the different events and watch them being logged into the plugin’s pane.

Segment Event Tracker

Debugging a Segment track call using the Segment Event Tracker plugin

The following tools should be able to help you verify, validate & debug your current Segment setup.


publication author Glenn Venderlinden
AUTHOR
Glenn Vanderlinden

| LinkedinThis email address is being protected from spambots. You need JavaScript enabled to view it.

Tags:

Get in touch

Semetis | Rue de l'Escaut 122, 1080 Brussels - Belgium

welcome@semetis.com

Connect with us

Cookie Policy

This website uses cookies that are necessary to its functioning and required to achieve the purposes illustrated in the privacy policy. By accepting this OR scrolling this page OR continuing to browse, you agree to our privacy policy.