session
    • 1 Minute to read
    • Dark
      Light

    session

    • Dark
      Light

    Article summary

    Overview

    Value

    Description

    Data type

    Default value

    Required

    Where to analyze

    Request Parameter

    loginStatus

    Pass the user login status here. If you send it multiple times in a session, only the last status will be saved.

    String


    -

    Visitors > Session Parameters

    cs800

    parameter

    Use parameters to add additional information to a visit. Find details below.

    Object


    -

    Visitors > Session Parameters or metric

    cs[ID]

    Further information

    paramete

    Before use, parameters must be set up under Mapp Q3 > Configuration > Custom Parameters > Session Parameter. The ID and data type (text/number) are defined for each parameter during setup.

    If the value for the parameter is transmitted during a visit several times, only the first or last value is evaluated based on the configuration. Find more info here.

    Example (parameter with ID "1"): {1:"group-A"}

    Implementation Example

    If you do not have automatic page tracking enabled, invoke the track method after adding all relevant tracking information.

    <template>
      <div>Example</div>
    </template>
     
    <script>
    export default {
      name: "example",
      mounted() {
        this.$webtrekk.session({
          loginStatus: "login",
          parameter: { 5: "male" }
        });
      }
    };
    </script>

    Overview

    Value

    Description

    Data type

    Default value

    Required

    track

    If you want to track all current added information, add the track property to your configuration.

    Boolean

    false

    -

    If you do not have automatic page tracking or the additional property track enabled, invoke the track method after adding all relevant tracking information.

    <template>
      <div
        v-webtrekk="{
          session: {
            loginStatus: 'login',
            parameter: { 5: 'male' }
          },
          track: false
        }"
      >
        Example
      </div>
    </template>

    Tracking via data property only works when  automatic page tracking is set to true.

    <template>
      <div>Example</div>
    </template>
     
    <script>
    export default {
      name: "example",
      data() {
        return {
          webtrekk: {
            session: {
              loginStatus: "login",
              parameter: { 5: "male" }
            }
          }
        };
      },
      mounted() {
     
      }
    };
    </script>


    Was this article helpful?

    What's Next