add target optimizations (#3028)

This commit is contained in:
Daniel Seifert 2014-10-14 08:25:55 +00:00
parent 16918787fd
commit 568de84f80
4 changed files with 3 additions and 3 deletions

View File

@ -70,6 +70,8 @@
ga('send', 'pageview' [{$sD3GASendPageViewParameter}]); ga('send', 'pageview' [{$sD3GASendPageViewParameter}]);
[{include file="d3ga_universal_ecommerce.tpl"}]
[{if $oD3GASettings->getValue('blD3GATrackPageLoadTime')}] [{if $oD3GASettings->getValue('blD3GATrackPageLoadTime')}]
var perfData = window.performance.timing; var perfData = window.performance.timing;
var pageLoadTime = perfData.domComplete - perfData.navigationStart; var pageLoadTime = perfData.domComplete - perfData.navigationStart;
@ -87,8 +89,6 @@
ga('set', 'metric1', loadTime); ga('set', 'metric1', loadTime);
[{*ga('send', 'event', 'Page Load Time', loadTime, {'nonInteraction': true});*}] [{*ga('send', 'event', 'Page Load Time', loadTime, {'nonInteraction': true});*}]
[{/if}] [{/if}]
[{include file="d3ga_universal_ecommerce.tpl"}]
</script> </script>
[{/strip}] [{/strip}]

View File

@ -1,7 +1,7 @@
[{if $oD3GASettings->getValue('blD3GASendECommerce') && $oViewConf->getActiveClassName() == 'thankyou'}][{strip}] [{if $oD3GASettings->getValue('blD3GASendECommerce') && $oViewConf->getActiveClassName() == 'thankyou'}][{strip}]
[{assign var="order" value=$oView->getOrder()}] [{assign var="order" value=$oView->getOrder()}]
ga('require', 'ecommerce', 'ecommerce.js'); ga('require', 'ecommerce');
[{assign var="currate" value=$order->oxorder__oxcurrate->value}] [{assign var="currate" value=$order->oxorder__oxcurrate->value}]
[{if $oD3GASettings->getValue('blD3GAUseNetto')}] [{if $oD3GASettings->getValue('blD3GAUseNetto')}]