- TLC Home Home
- Discussions & Ideas Discussions & Ideas
- Product Guides Product Guides
- Knowledge Base Knowledge Base
- Developer Docs Developer Docs
- Education Education
- Blog Blog
- Support Desk Support Desk
Installing and testing the HTTP API is as simple as entering a URL into a browser. If you chose a different platform for your data source go ahead and add the necessary code according to the installation instructions.
Events are identified in EventStream by setting the tealium_event
variable in the event data. Most of the installation libraries simply take an event parameter in the tracking calls and set tealium_event
for you, but in the HTTP API you have set it explicitly. For our test event we will send an event called "search".
Using the GET method, our test event URL will look like this (line breaks added for readability):
https://collect.tealiumiq.com/event?
tealium_account=your_account
&tealium_profile=your_profile
&tealium_datasource=abc123
&tealium_event=search
The corresponding code in Swift (iOS) might look like this:
var tealConfig = TealiumConfig(
account: "your_account",
profile: "your_profile",
environment: "prod",
datasource: "abc123")
let tealium = Tealium(config: tealConfig)
// Tracked event "search" automatically results in:
// tealium_event : "search" in the event data
tealium?.trackEventWithTitle("search", dataSources: [:])
Great! Click Next to see how to observe those test events on the Live Events screen.
Copyright All Rights Reserved © 2008-2022