This article is aimed at all users who have their mobile applications tagged with our Smarttag v2 SDK (Android / Apple).
Tagging methods for marketing campaigns are now rather deprecated, relying solely on XTOR syntax and requiring the declaration of custom sources within the Analytics Suite 2 interface.
In this period of transition to Piano Analytics, while waiting for the migration to our new SDKs, and in order to benefit from the full flexibility of our new engine now, we recommend that you adopt the following approach:
- On Piano Analytics, to process a marketing campaign, we need the following 2 parameters in the hit: src_medium (source) and src_campaign (campaign).
- We recommend using the setProps or setParam methods, both available on the v2 SDKs to push these 2 parameters on the first screen of the visit.
Example:
tracker.setProps(new HashMap<String, String>() {{
put("src_medium", "sourceLabel");
put("src_campaign", "campaignLabel");
}}, false); // Non-persistent
You can, of course, add other properties related to the sources in your data model.
Note: these properties will only be read and interpreted by Piano Analytics processing (campaign information will not be present in Analytics Suite 2 with this method).