Custom Object

Foreword

The SDK allows the addition of all sorts of information to the stcvariable via dictionaries or JSON feeds. Custom objects can be added to any type of tagging, and can then be treated via the Data Manager tool.

Get off to a good start

Once your tag is initialised, you can add your custom objects to your hits.

In the case of a Swift project, be sure to import the SmartTracker (or tvOSTracker / watchOSTracker if your target is an Apple TV or an Apple Watch) module in your ViewController. In the case of an Objective-C project, be sure to import the headers TrackerSmart-Swift.h or Tracker-Swift.h in case of a Cocoapods integration

Tagging

To add a custom object to your hits, the Screenobject exposes object a customObjectsproperty possessing an addmethod. This method allows for the addition of a custom object that will be added to the next hit sent.