Using native Sitecore ways, the following can be achieved by doing:
var pageItem = Sitecore.Context.Item;
var trackingField = new TrackingField(pageItem.Fields["__Tracking"]);
The question is following - how do you achieve same via glass mapper?
I've got following in my items interface, but that doesn't do the trick.
[SitecoreField("__Tracking")]
ITrackingItem TrackingCasted { get; set; }
The goal is to be able to access associated campaigns to the item.
As I was not able to do it via Glass Mapper, I've achieved access to associated campaigns via
var tracking = new Sitecore.Analytics.Data.TrackingField(MYITEM.Fields[Sitecore.Analytics.AnalyticsIds.TrackingField]);
tracking.Campaigns...