Screens

 

Get off to a good start

Once your tag is initialised, you can start tagging your screens.

To use SDK class and methods, add ATInternet namespace to your Page

Declare a Tracker-type variable in your Page

 

Tagging

To tag a screen, the tracker exposes a Screens object.

Two solutions are available to tag a screen:

  • Define one or several tagging and send the hit(s) at the desired moment
  • Send screen tagging directly

To do this, the Screens object of the Tracker class offers an Add method.
This method enables the addition of screen tagging which can be sent at the desired moment (e.g. onCreate, onResume…).

The Add method sends back a Screen-type object. To send the defined information, you must manually call the SendView method of your Screen object, or call the Tracker’s Dispatch method.

The method can take several different parameters:

  1. A character string to give a specific name
  2. A Context to retrieve the class name where tagging is done
 

Tagging examples

  1. Tagging a screen:
  2. Tagging a screen with a level 2:
  3. Tagging a screen with chapters:
  4. Screen tagging with addition of a custom object: In this example, the name of the screen is not entered because it is possible to put the name in the stc parameter in order to use it with DataManager.
  5. Tagging a screen with use of dispatcher:
 

Screen class

 

Properties

Name Type Default value Description
Name String Empty string Gets or sets the screen name
Chapter1 String null Gets or sets the first chapter
Chapter2 String null Gets or sets the second chapter
Chapter3 String null Gets or sets the third chapter
Action Enum Action.View Gets or sets the action type
Level2 Int -1 Gets or sets the level 2 ID
IsBasketScreen Bool false Indicates that the screen displays the content of a cart (in the case where the SalesTracker option is used)
 

Méthodes

Name Return type Description
SendView void Sends the screen hit
Was this post helpful?
Yes
No
Last update: 02/11/2015