Segment makes it easy to set up Google Cloud PubSub.

Ingest event streams from anywhere, at any scale, for simple, reliable, real-time stream analytics. Google Cloud Pub/Sub is a simple, reliable, scalable foundation for stream analytics and event-driven computing systems.

Google Cloud PubSub
Raw Data

Send data to Google Cloud PubSub

The Google Cloud PubSub integration allows you to instantly send any customer data to Google Cloud PubSub.


The Segment-Google Cloud PubSub integration can receive data from the following sources:


Analytics.js javascript library


Server-side libraries like Node, Go, PHP, Ruby


Our iOS and Android libraries


Each method describes a distinct type of information about a customer.
The Google Cloud PubSub integration supports the following Segment API methods:


The track API call is how you record any actions your users perform, along with any properties that
 describe the action.


The identify API call ties a customer and their actions
 to a recognizable ID and traits like their email,
 name, etc.


The page/screen API call lets you record whenever a user views a pages in a browser, or a screen in a mobile app, along with any properties of that page/screen.


The group API call is how you associate an individual user with a group—be it a company, organization, account, project, team, etc.


The alias API call is used to merge two user identities, for example when tying a user’s behavior before and after signing up.

Further research

Still have questions? Here are a few useful resources for you to dig a little deeper.


Check out our documentation for detailed help on setting up Google Cloud PubSub.


Questions about this integration? Suggestions?

Segment integrates with 180+ apps

Send your data to analytics, email, advertising tools and more.

View all Integrations
Getting started is easy. Be up and running in minutes.