GoogleServices/changed_full/470-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_custom.tpl

65 lines
2.0 KiB
Smarty
Raw Normal View History

2014-05-02 16:58:43 +02:00
[{if $oD3GASettings->getValue('blD3GAUseCustomVars')}]
[{strip}]
[{if $oViewConf->getActiveClassName() == 'thankyou'}]
[{assign var="order" value=$oView->getOrder()}]
[{assign var="oPayment" value=$order->getPayment()}]
[{assign var="oDelSet" value=$order->getDelSet()}]
[{assign var="aVoucherSerieList" value=$order->d3getVoucherSerieList()}]
[{/if}]
[{* dimension 1 set customer gender *}]
[{if $oxcmp_user}]
ga(
2014-05-02 23:12:23 +02:00
'set',
'dimension1',
'[{if $oxcmp_user->oxuser__oxsal->value == 'MR'}]male[{elseif $oxcmp_user->oxuser__oxsal->value == 'MRS'}]female[{/if}]'
2014-05-02 16:58:43 +02:00
);
[{/if}]
[{* dimension 2 set payment type *}]
[{if $oViewConf->getActiveClassName() == 'thankyou' && $oPayment}]
ga(
2014-05-02 23:12:23 +02:00
'set',
'dimension2',
'[{$oPayment->getFieldData('oxdesc')}]'
2014-05-02 16:58:43 +02:00
);
[{/if}]
[{* dimension 3 set delivery type *}]
[{if $oViewConf->getActiveClassName() == 'thankyou' && $oDelSet}]
ga(
2014-05-02 23:12:23 +02:00
'set',
'dimension3',
'[{$oDelSet->getFieldData('oxtitle')}]'
2014-05-02 16:58:43 +02:00
);
[{/if}]
[{* dimension 4 set vouchers *}]
[{if $oViewConf->getActiveClassName() == 'thankyou' && $aVoucherSerieList}]
ga(
2014-05-02 23:12:23 +02:00
'set', {
[{foreach from=$aVoucherSerieList item="oVoucherSerie"}]
'dimension4' : '[{$oVoucherSerie->getFieldData('oxserienr')}]',
[{/foreach}]
}
2014-05-02 16:58:43 +02:00
);
[{/if}]
[{* dimension 5 set currency *}]
[{if $oViewConf->getActiveClassName() == 'thankyou' && $order}]
ga(
2014-05-02 23:12:23 +02:00
'set',
'dimension5',
'[{$order->getFieldData('oxcurrency')}]'
2014-05-02 16:58:43 +02:00
);
[{/if}]
[{* dimension 6 set new customer status *}]
[{if $oViewConf->getActiveClassName() == 'thankyou'}]
ga(
2014-05-02 23:12:23 +02:00
'set',
'dimension6',
'[{$oView->isNewCustomer()}]'
2014-05-02 16:58:43 +02:00
);
[{/if}]
[{/strip}][{/if}]