Install
Learn to install Tealium for C#.
Requirements
- Tealium Customer Data Hub account
- Visual Studio or other C# compliant IDE
Sample App
To help to familiarize yourself with the Tealium library, the tracking methods, and best practice implementation, explore the Tealium for C# sample app.
Install
To install the Tealium library for C#:
-
Download the code for the Tealium C# Library.
-
Import the
TealiumCSharp
folder into your solution:using TealiumCSharp;
Initialize
To initialize Tealium:
-
Create instance of the
Config
class with theConfig()
constructor method, as shown in the following example:Config config = new Config( "ACCOUNT", "PROFILE", "ENVIRONMENT", "VISITOR_ID", new string[] { AppDataModule.Name, CollectModule.Name, LoggerModule.Name }, null, null);
-
Create an instance of the
Tealium
class with theTealium()
constructor method, passing theConfig
instance as an argument, as shown in the following example:Tealium tealium = new Tealium(config);
Xamarin Mobile Applications
If you are building a mobile application in Xamarin then make use of the Xamarin integration which has prebuilt bindings to our iOS and Android SDKs.
This page was last updated: January 7, 2023