Support for Mobile implementation

Avatar

Avatar

aleber

Avatar

aleber

aleber

12-10-2020

Hi,

I'm going to approach a project where I have to implement Analytics both for Web and App channel.

For Web channel I will define a data layer and by Launch I will define a new property where I will create data elements and rules to manage data. In detail by Data Element Type "JavaScript Variable" I will collect information and data from Web.

 

I trying to understand if a similar mechanism can be define for App channel where I don't see a Data Element Type "JavaScript Variable" or QueryStringParameter. Do you know if exists any similar mechanism? Any reference or link where I can understand the difference between Web and App implementation?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Andrey_Osadchuk

MVP

Avatar

Andrey_Osadchuk

MVP

Andrey_Osadchuk
MVP

13-10-2020

If you are looking for a solution when the Analytics implementation in mobile app is managed in Launch similar to how it's working for web, then, unfortunately, the answer is No. You will need to define and pass all the data you want to capture in Analytics in the mobile app itself by using Mobile SDK.

Answers (1)

Answers (1)

Avatar

Avatar

kenmckell

Avatar

kenmckell

kenmckell

13-10-2020

Building on Andrey's answer - the data you pass in via the Mobile App SDK can still mimic your Javascript schema, although it is in a completely different format (i.e. non-JSON)

 

Here's an example of the trackState function being used in an iOS app implementation, with a JSON-like schema:

 

ACPCore.trackState("PAGENAME HERE" data: ["page.pageName": "PAGENAME HERE",

       "page.category.channel": "PAGE CATEGORY LEVEL1 HERE",

       "page.category.l2": "PAGE CATEGORY LEVEL2 HERE",

       "page.category.l3": "PAGE CATEGORY LEVEL 3 HERE",

       "page.pageInfo.pageType": "PAGE TYPE HERE",

       "&&products": ";PRODUCTID",

       "productView": "1"]

);

 

Instead of using Launch to populate the Analytics variables, you would need to use Analytics' processing rules - available in the Analytics Admin Console's Report Suite Manager - to map the "contextData" objects (contained in the schema above, for example) to the various Analytics variables/events/etc.