- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
The Tealium BB10 Tagger library provides you with the means to tag your Blackberry applications using Tealium's Tag Management solution.
This framework provides:
Before you begin, you will need:
Below are the folders available on github:
To install the Tealium BB10 Tagger library into your app:
```c++ #ADDED BY TEALIUM LIBS += -lbbdata LIBS += -lbbplatform LIBS += -lbb ```
```c++ TealiumTagger *TealiumTaggerObj = new TealiumTagger(bb::cascades::Application::instance(), "yourAccountName", "yourProfile", "yourTargetEnvironment"); ```
The BB10 Tagger library dispatches a view, event, or custom call depending on which of the below methods you use. By default, view calls become screen_title data sources in Tealium IQ, and event calls become link_id data sources. With any of these calls, you can also pass in a dictionary as an argument. List that dictionary's keys as data sources in Tealium iQ to map to whichever vendor tag you wish.
```c++ void TealiumTagger::trackScreenViewed(QString viewName){ void TealiumTagger::trackScreenViewed(QString viewName, Map variables){ ```
For example:
```c++ // Simple view call tealiumtagger->trackScreenViewed("myViewName1"); // Advanced view call QMap customData; customData.insert("myDataSource1","myValue1"); customData.insert("myDataSource2", "myValue2"); tealiumtagger->trackScreenViewed("myViewName2", customData); ```
You can track any action or event with the following methods:
```c++ void TealiumTagger::trackItemClicked(QString itemName) void TealiumTagger::trackItemClicked(QString itemName, Map variables){ ```
For example:
```c++ // Simple action call tealiumtagger->trackItemClicked("myStringId1"); // Advanced action call QMap customData; customData.insert("myDataSource1","myValue1"); customData.insert("myDataSource2", "myValue2"); tealiumtagger->trackItemClicked("myStringId2", customData); ```
The following variables are automatically provided by the Tealium BB10 Tagger library. You must list them as data sources in Tealium iQ then map them to your analytics solution(s) of choice.
A composite of app_name & app_version (e.g. myApp 1.0)
Name of the app
Your app's version number
String value id from trackItemClicked
method's first argument
Version of the OS (e.g. 10.1.0)
Page/View name
The package's author
The package's codename
The package's version
Platform (i.e. bb10)
Composite of platform + os_version (bb10 10.1)
Below are common issues and their possible solutions:
Problem: The library doesn't appear to be working when I have printf()
or fprintf()
statements in my code.
Solution: There is an issue with Momentics 10.1.0 where an fprintf()
statement will quietly disable the BB10 Tagger library and no message will print to the console. No warning in the IDE will appear in either release or debug mode. Remove or comment out all printf()
or fprintf
statements. qDebug()
is the only logging method recommended.
Copyright All Rights Reserved © 2008-2023