1. Home
  2. Docs
  3. Integration & Setup
  4. Tracking Code & SDKs
  5. Tracking Code Integration
  6. My Segments

My Segments

Using your own segments, you can enrich your data on Pages (page impressions), Visitors (users) and Visits (sessions) with additional information (e.g. from your own data sources such as a CRM system). These are transferred to etracker with the help of parameters and allow a more in-depth examination and greater flexibility in analysis.

Note: Before 15 June 2018, only the segment type Visitor (user) could be enriched. All of your own segments that were created before this period are assigned to the segment type User.

Creating your own Segments

The possibility to create your own segments as well as an overview of your own already created segments can be found at Settings → Account → Data enrichment Custom dimensions.

To create a new segment of your own, enter the segment name that you want to see later in the reports in the Segment Name field. Then select one of the following options from the segment type drop-down menu:

  • “User”: Add this segment type to enrich user profiles.
  • “Page Impression”: Add this segment type to enrich pages.
  • “Session”: Add this segment type to enrich visits.

Examples for enriching user profiles, page impressions and sessions:

User (visitor)

  • Sociodemographics
  • Customer segment (CRM)
  • Gender

Page Impression (Page)

  • Testing version
  • Customization
  • Template/Pages Type
  • Author
  • Update/Creation
  • Language
  • With/Without video
  • Product rating
  • Keywords
  • Evaluation

Session (Visit)

  • Login status

After filling in the Segment Name and Segment Type fields, click Add to add the segment. After adding your own segment, it appears in the segment overview. The Parameter (e.g. “et_seg1”) with which you can transfer the segment information is displayed in the Parameter column. You can define five custom segments by default. An extension is possible at any time, please contact your account manager.

Value Aliasing (optional)

You have the option to set up aliasing for the transferred segment values in order to be able to transfer a pseudonym in the parameter instead of the clear name. Aliasing the segment values is done via a CSV file (max. 1 MB) which you upload to your corresponding segment and which you can overwrite at any time. The format is for each list entry: Value, alias (e.g.. x12,female or “x12”,“weiblich”).

After clicking on +-add .csv file, you can navigate to the value file and download it again.

Caution: Aliasing only applies when saving the file in the application for all future visits by the respective website visitor, but it does not work retroactively.

If values which are not in the aliasing file are transferred to etracker, then these will be listed without alias in the reports.

Editing your own Segments

You can edit the existing segments by clicking on the pen symbol in the “Actions” column. Here, you can rename your segment, optionally add a CSV file to the value-aliasing or replace an already existing value file.

Please note that adding, replacing or removing a value file only has an effect on the data which is tracked in the future and not on data from previous periods.

Note: You can not change the segment types of an existing segment.

Deleting your Segments

To delete your own segment, click on the waste basket symbol in the segment overview. Your segment will no longer be available for selection in the reports.

Caution: After deleting your own segment it will no longer be available for past periods and it will no longer be possible to view the data of this segment.

Transferring Segment Information

Once you have created your segments under Account InfoSettingsAccountMy Segments, you can transfer the segment information as a parameter in the parameter block of the respective page, as URL parameters or by using a wrapper call. Example for the transfer in the parameter block with parameters for page call:

var et_seg1="[value]";

Example for the transfer with URL parameters when calling an external link:

http://www.Yoursite.de?etcc_cmp=summer&etcc_med=Display&et_seg1=[value]

Example for the transfer with the wrapper function:

onmousedown="et_eC_Wrapper({et_et: accountkey1, et_pagename: Login-Start, et_seg1: [value]});

Adding your Segments to the Reports

To apply your segments to the data of a report, click on SegmentsAdd in the report. You can find your segments in the right-hand column of the segment selection. Select your segment by clicking on the corresponding Segment name.

The segment information in the report will then be shown along with it.

Example

For visitors to your website, the information as to the gender of the visitor and whether the access to the site was by an internal employee or an external visitor should also be sent to etracker. Transferring the information on the gender of the visitor should not be done in clear text.

Step 1 – Creating your own Segments:
Two individual segments will be created: ‘gender’ and ‘author’. For the segment ‘gender’ the values ‘male’ and ‘female’ should be transferred. The segment type ‘User’ is selected, because the user profiles should be enriched. For the segment ‘author’ the values ‘author Mustermann’ and ‘author Musterfrau’ should be transferred. The segment type ‘Page Impression’ is selected because the page should be enriched.

Step 2 – Creating Values File:
To encode the values for your segment ‘Gender’, a CSV file with the following content will be created:

Here, when transferring the values ‘x12’ and ‘y34’ through etracker, encoding will be done in such a way that these values are then tracked as segment values ‘female’ and ‘male’ and published in the reports.

Step 3 – Uploading Value File:
Upload value file found at Account InfoSettingsAccountMy Segment to the ‘Gender’ segment.

Step 4 – Integration of the Parameters for Transferring as Segment Information:
When a female employee views your website, the transfer of parameters in the parameter block of the etracker code then looks as follows:

.
.
var et_seg1 = "x12";
var et_seg2="intern";
.
.