Install
Requirements
- Tealium Customer Data Hub account
- Python 2.7+
Sample Script
To help familiarize yourself with the Tealium library, the tracking methods, and best practice implementation, see the Python sample script.
Install
To install the Tealium library for Python:
Determine which version of Python you are using with the following command:
python -V
Run the following pip command:
Python 2
pip install tealium
Python 3
pip3 install tealium
Initialize
Import the module and initialize the Tealium
instance with the Tealium()
constructor, as shown in the following example:
from tealium import Tealium
teal = Tealium("ACCOUNT", "PROFILE", "ENVIRONMENT", "PATH", "DATASOURCE")
Was this article helpful?
This page was last updated: February 20, 2020