Support » Plugins and Hacks » [Plugin: Analyzer II] Adding support for level 2 tracking

[Plugin: Analyzer II] Adding support for level 2 tracking

  • goulvench


    The plugin lacks a xtn2 setting, here is how to add it through the interface.

    In lib/config_analyzerII.php, add the following code after line 33:

    echo "<tr valign='top'>\n";
    echo "<th scope='row'>xtn2</th>\n";
    echo "<td><input name='xtn2_value' type='text' value='".get_option('xtn2_value')."' class='regular-text code' /> <i>1</i> for example</td>\n";
    echo "</tr>\n";

    Line 50 (after you’ve made the previous edit), add ,xtn2_value between xtdmc_value, and homepage_ergo, so that the new line looks like:
    echo "<input type='hidden' name='page_options' value='xtsd_value,xtsite_value,xtdmc_value,xtn2_value,homepage_ergo,posts_ergo,pages_ergo' />\n";

    In lib/functions.inc.php, replace line 65 (which reads $xtn2=''; with $xtn2=get_option('xtn2_value');.

    Don’t forget to add the xtn2 value in the plugin settings page when you’re done.


  • The topic ‘[Plugin: Analyzer II] Adding support for level 2 tracking’ is closed to new replies.
Skip to toolbar