Hi,
I just update existing plugin in order to add the support of "universal".
It was some kind of "POC", something I made at 3am and because I do not have any GA account (or Universal) I couldn't test it.
Thanks for the modification about the regex ; I updated the plugin.
I also added two new options for the modules (linkid and displayfeatures).
linkid will have a support for GA and UA ; displayfeatures is only available for UA.
UA part:
$extra_required = '';
if($this->params->get('module_displayfeatures', 0))
$extra_required .= "\r\n" . 'ga("require", "displayfeatures");';
if($this->params->get('module_linkid', 0))
$extra_required .= "\r\n" . 'ga("require", "linkid", "linkid.js");';
ga("send", "pageview");'.$extra_required.'
GA part:
$extra_required = '';
if($this->params->get('module_linkid', 0))
$extra_required .= "\r\n" .
'var pluginUrl = "//www.google-analytics.com/plugins/ga/inpage_linkid.js";
_gaq.push(["_require", "inpage_linkid", pluginUrl]);';
var _gaq = _gaq || [];'.$extra_required.'
(plus the options in the XML file)
Regards,