I'm trying to understand how to use the `channel` ...
# support
t
I'm trying to understand how to use the
channel
property when tracking events, especially as we think through how it work with Amplitude as a destination. Amplitude supports a property called
platform
which is one of these values:
Web
,
iOS
or
Android
. The channel classifier in Rudderstack documented as being either:
web
,
mobile
,
server
, or
sources
. Assuming we need to provide the
platform
attribute to Amplitude, is this the right way to model properties: add a
platform
prop while also providing
channel
?
Copy code
analytics.track(
  event: 'Sign Up Completed',
	channel: 'mobile',
    properties: {
		platform: 'iOS',
	},
	timestamp: "2020-01-09T10:02:03.257Z",
	context: { 
		ip: "74.1.1.1", 
		device: {
			deviceId: "1adxjb9294"
		}
	}
)
I can't see how Rudderstack could determine a specific platform without doing the above.
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Hi @Trevin Chow, the channel property does not provide the complete information that you may need. However, you could use the context.app or the context.device properties in combination with the the channel to set the platform. You can use a userTransformation to do this. Alternately, you can set the platform property within the properties as you have shown above.