![]() ![]() The Debugger shows a live stream of sampled events arriving at the Source, but you can also toggle from “Live” to “Pause” to stop the stream and prevent it from displaying new events. Tip: To see a more complete view of all your events, you might consider setting up either a warehouse or an S3 destination. The Debugger is a great way to test specific parts of your implementation to validate that events are being fired successfully and arriving to your Source. The Debugger only shows a sample of the events that the Source receives in real time, with a cap of 500 events. ![]() The Debugger is separate from your workspace’s data pipeline, and is not an exhaustive view of all the events ever sent to your Segment workspace. The Source Debugger is a real-time tool that helps you confirm that API calls made from your website, mobile app, or servers arrive at your Segment Source, so you can quickly see how calls are received by your Segment source, so you can troubleshoot quickly without having to wait for data processing. ![]() Once you’ve set up your Segment library, and instrumented at least one call, you can look at the Debugger tab for the Source to check that it produces data as you expected. Now you’re ready to turn on any destination from the Segment App. You’ve successfully installed PHP tracking. ![]() Make note of or write down your write key, as you’ll need it in the next steps.Īny time you change a library’s settings in the Segment App, the write key regenerates. Click the Settings tab for the source and click API Keys.Go to Connections > Sources and select your source.The write key is a unique identifier for a source that tells Segment which source the data comes from, to which workspace the data belongs, and which destinations should receive the data. Segment does not use this URL anywhere else. Segment provides this field so that you can flag the website being tracked to the source. Segment recommends you do this so that you know this demo source isn’t part of a production installation. (Optional) Add an Environment label of dev to the source in the Labels field.Segment recommends that you include the word demo, test, or quickstart in the name so you can easily find and delete this source later. You can choose from either the Javascript source, the PHP source, or the iOS source. Go to your Segment workspace, and navigate to the Sources catalog.Access to the code for a basic website, PHP website, or an iOS app.ĭouble-check when you enter write keys for dev and production environments to make sure that you send the right data to the right place.If you’re not already part of an organization with a Segment Workspace, you can sign up for a free account and workspace. A Segment user account and a workspace.Before you beginīefore you start your Segment implementation, you need: This tutorial walks you through an installation using one of Segment’s libraries: JavaScript, PHP, or the iOS library. The best way to learn about how Segment works is to see it in action. It can also be as complex as Segment calls embedded in a React mobile app to send messages when the app is opened or closed, when the user performs different actions, or when time based conditions are met (for example “ticket reservation expired” or “cart abandoned after 2 hours”). In a basic implementation, the code can be a snippet of JavaScript that you copy and paste into the HTML of a website to track page views. This code generates messages based on specific triggers you define. When you implement Segment, you add Segment code to your website, app, or server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |