Migration from etracker to Piwik

Hello,

we tried to migrate from etracker to Piwik.

normal websites in typo3, WP and SixCMS are not the problem, only one complex application webseite.

Here ia an example of the etracker code:

    <!-- etracker tracklet 4.0 -->
    <script type="text/javascript">
        var et_pagename = "MVBID=5105977;name=Basisvorschau F18";
        var et_areas = "Anwendung/Vorschauen";
        //var et_url = "";
        //var et_target = "";
        //var et_ilevel = 0;
        //var et_tval = "";
        //var et_cust = 0;
        //var et_tonr = "";
        //var et_tsale = 0;
        //var et_basket = "";
        //var et_lpage = "";
        //var et_trig = "";
        //var et_sub = "";
        //var et_se = "";
        var et_tag = "UserType=A";
    </script>
    <script id="_etLoader" type="text/javascript" charset="UTF-8" data-secure-code="XmK7BE" src="//static.etracker.com/code/e.js"></script>
    <noscript><link rel="stylesheet" media="all" href="//www.etracker.de/cnt_css.php?et=XmK7BE&amp;v=4.0&amp;java=n&amp;et_easy=0&amp;et_pagename=&amp;et_areas=Anwendung%2FVerlagdetail&amp;et_ilevel=0&amp;et_target=,0,0,0&amp;et_lpage=0&amp;et_trig=0&amp;et_se=0&amp;et_cust=0&amp;et_basket=&amp;et_url=&amp;et_tag=MVBID=&amp;et_sub=&amp;et_organisation=&amp;et_demographic=" /></noscript>
    <!-- etracker tracklet 4.0 end -->

we have 5 usergroup, counted separately A, B,C,D,E in Usertype.

Whats the best solution ? whats the best syntax in the Piwik snippet, using CustomDimensions

Best regards, Michael