-
Notifications
You must be signed in to change notification settings - Fork 0
MV Testing 9dcdfe
Once your tag is initialised, you can start tagging MV Testing enabling the measurement of different design and content combinations for a single application.
If you want to use variables, be sure to import ATInternet, Tracker and MvTesting classes in your Activity or Fragment.
Declare a Tracker-type variable in your Activity
package com.atinternet.atinternetdemo;
import android.app.Activity;
import android.os.Bundle;
import com.atinternet.tracker.ATInternet;
import com.atinternet.tracker.Tracker;
public class MainActivity extends Activity {
private Tracker tracker;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
tracker = ATInternet.getInstance().getDefaultTracker();
}
}The trackerexposes a MvTestingsobject offering an add method.
This method enables the addition of content tagging which can be sent at the desired moment (e.g. onCreate, onResume…).
The addmethod sends back a MvTesting-type object. To send the defined information, you must manually call the Tracker�’s dispatchmethod.
The method can take several different parameters:
- A character string composed of an identifier and the test name in ID[name_test] format.
- An integer representing the wave identifier (set of creations).
- A character string composed of an identifier and the name of the creation (combination of versions for each of the variables) in ID[name_creation] format.
The returned MvTesting object itself exposes a Variables subobject offering an add method.
This method can take several different parameters:
- A character string composed of an identifier and the name of the variable concerned in ID[name_variable] format.
- A character string composed of an identifier and the name of the version concerned in ID[name_version] format.
For test and creation:
- if you only enter the ID, a name will be automatically generated,
- if you only enter the name, an ID will be automatically generated,
- if you enter an ID and a name, both will be saved.
@Override protected void onResume() {
super.onResume();
MvTesting mvt = tracker.MvTestings().add("1[My_first_Test]",1, "2[Version2_page_subscription]");
mvt.Variables().add("1[Header]", "2[Grey]");
mvt.Variables().add("2[Header]", "4[Black]");
tracker.dispatch();
}| Name | Type | Default value | Description |
|---|---|---|---|
| test | String | Empty string | Gets or sets the full test name in ID[name_test] format |
| waveId | Int | -1 | Gets or sets the wave identifier |
| creation | String | Empty string | Gets or sets the full name of the creation in ID[name_creation] format |
| Variables | MvTestingVars | null | Class allowing the addition of variables and versions |
| Name | Type | Default value | Description |
|---|---|---|---|
| variable | String | null | Gets or sets the full name of the variable in ID format[name_variable] |
| version | String | null | Gets or sets the full name of the variable in ID[name_version] format |
Last update: 07/01/2019
-
Data API
- Data flow
- Advice optimizations data flow
- Error codes data flow
- Faq data flow
- General information data flow
- Technical information data flow
- Reporting API v3
- Getting started
- Methods
- Parameters
- Technical information
- REST API
- Campaigns
- Custom variables
- Getting started rest
- Methods rest
- Response structure parameters rest
- Fixed periods
- Parameters compatibility
- Relative periods
- Structure of the response
- “code” parameter
- “columns” parameter
- “evo” parameter
- “filter” parameter
- “include” parameter
- “lng” parameter
- “max-results” parameter
- “page-num” parameter
- “period” parameter
- “period” parameter: “H” v. “He” & “MN” v. “MNe”
- “retention” parameter
- “segmentdesc” parameter
- “segment” parameter
- “sep” parameter
- “sort” parameter
- “space” parameter
- Technical specifications rest
- Data flow
-
Data collection
- Android
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Users
- Apple
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Users
- General
- Cddc renew staging process
- Changelog
- Craft your hit
- Encoded parameters
- Server side cookie management
- Supported taggings
- Tagging deletion
- Utilisation of dispatch sdks
- JavaScript
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Partners javascript
- Users
- Piano Analytics
- Event tagging piano analytics
- Getting started piano analytics
- Piano analytics tagging
- Feeding piano analytics with as2 tagging
- Tagging custom properties sdk
- Android