diff --git a/.gitattributes b/.gitattributes index 988ba8c..a21a6cb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -159,14 +159,6 @@ changed_full/470-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_univer changed_full/470-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_create.tpl -text changed_full/470-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_custom.tpl -text changed_full/470-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_ecommerce.tpl -text -changed_full/480-/modules/d3/d3_googleanalytics/views/blocks/layout/d3_base_googleanalytics.tpl -text -changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/d3_googleanalytics.tpl -text -changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/d3ga_universal.tpl -text -changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_campaigncode.tpl -text -changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_campaigns.tpl -text -changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_create.tpl -text -changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_custom.tpl -text -changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_ecommerce.tpl -text copy_this/.noencode -text copy_this/modules/d3/d3_googleanalytics/IntelliSenseHelper.php -text copy_this/modules/d3/d3_googleanalytics/controllers/admin/d3_cfg_googleanalytics.php -text diff --git a/changed_full/480-/modules/d3/d3_googleanalytics/views/blocks/layout/d3_base_googleanalytics.tpl b/changed_full/480-/modules/d3/d3_googleanalytics/views/blocks/layout/d3_base_googleanalytics.tpl deleted file mode 100644 index fdef014..0000000 --- a/changed_full/480-/modules/d3/d3_googleanalytics/views/blocks/layout/d3_base_googleanalytics.tpl +++ /dev/null @@ -1,5 +0,0 @@ -[{$smarty.block.parent}] - -[{d3modcfgcheck modid="d3_googleanalytics"}] - [{include file=$sD3GATTpl}] -[{/d3modcfgcheck}] \ No newline at end of file diff --git a/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/d3_googleanalytics.tpl b/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/d3_googleanalytics.tpl deleted file mode 100644 index dcfa32a..0000000 --- a/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/d3_googleanalytics.tpl +++ /dev/null @@ -1,196 +0,0 @@ -[{if $blD3GoogleAnalyticsActive && $oD3GASettings->getValue('sD3GAId')}] - [{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()}] - [{assign var="oUser" value=$oView->getUser()}] - [{/if}] - - [{capture name="d3GATrackCode"}] - [{strip}] - - - [{if (!$oD3GASettings->getValue('blD3GASetCampaignOnThankyouOnly') || $oViewConf->getActiveClassName() == 'thankyou') && - !$oD3GASettings->getValue('blD3GASetCampaignTrack') && $oD3GASettings->getValue('sD3GACampaignCode')}] - [{$oD3GASettings->getValue('sD3GACampaignCode')}] - [{/if}] - [{/strip}] - [{/capture}] - - [{if $oViewConf->getActiveClassName() == 'thankyou'}] - [{$oView->logCode($smarty.capture.d3GATrackCode)}] - [{/if}] - - [{$smarty.capture.d3GATrackCode}] - -[{/if}] \ No newline at end of file diff --git a/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/d3ga_universal.tpl b/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/d3ga_universal.tpl deleted file mode 100644 index 68ad0bb..0000000 --- a/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/d3ga_universal.tpl +++ /dev/null @@ -1,66 +0,0 @@ -[{if $blD3GoogleAnalyticsActive && $oD3GASettings->getValue('sD3GAId')}] - [{capture name="d3GATrackCode"}] - [{strip}] - - - [{include file="d3ga_universal_campaigncode.tpl"}] - - [{/strip}] - [{/capture}] - - [{if $oViewConf->getActiveClassName() == 'thankyou'}] - [{$oView->logCode($smarty.capture.d3GATrackCode)}] - [{/if}] - - [{$smarty.capture.d3GATrackCode}] -[{/if}] \ No newline at end of file diff --git a/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_campaigncode.tpl b/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_campaigncode.tpl deleted file mode 100644 index daf8446..0000000 --- a/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_campaigncode.tpl +++ /dev/null @@ -1,4 +0,0 @@ -[{if (!$oD3GASettings->getValue('blD3GASetCampaignOnThankyouOnly') || $oViewConf->getActiveClassName() == 'thankyou') && -!$oD3GASettings->getValue('blD3GASetCampaignTrack') && $oD3GASettings->getValue('sD3GACampaignCode')}] - [{$oD3GASettings->getValue('sD3GACampaignCode')}] -[{/if}] \ No newline at end of file diff --git a/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_campaigns.tpl b/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_campaigns.tpl deleted file mode 100644 index e71bb78..0000000 --- a/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_campaigns.tpl +++ /dev/null @@ -1,25 +0,0 @@ -[{strip}] - [{if !$oD3GASettings->getValue('blD3GASetCampaignTrack') && $oD3GASettings->getValue('sD3GASetCampNameKey')}] - ga('set', 'campaignName', '[{$oD3GASettings->getValue('sD3GASetCampNameKey')}]'); - [{/if}] - - [{if !$oD3GASettings->getValue('blD3GASetCampaignTrack') && $oD3GASettings->getValue('sD3GASetCampMediumKey')}] - ga('set', 'campaignMedium', '[{$oD3GASettings->getValue('sD3GASetCampMediumKey')}]'); - [{/if}] - - [{if !$oD3GASettings->getValue('blD3GASetCampaignTrack') && $oD3GASettings->getValue('sD3GASetCampSourceKey')}] - ga('set', 'campaignSource', '[{$oD3GASettings->getValue('sD3GASetCampSourceKey')}]'); - [{/if}] - - [{if !$oD3GASettings->getValue('blD3GASetCampaignTrack') && $oD3GASettings->getValue('sD3GASetCampTermKey')}] - ga('set', 'campaignKeyword', '[{$oD3GASettings->getValue('sD3GASetCampTermKey')}]'); - [{/if}] - - [{if !$oD3GASettings->getValue('blD3GASetCampaignTrack') && $oD3GASettings->getValue('sD3GASetCampContentKey')}] - ga('set', 'campaignContent', '[{$oD3GASettings->getValue('sD3GASetCampContentKey')}]'); - [{/if}] - - [{if !$oD3GASettings->getValue('blD3GASetCampaignTrack') && $oD3GASettings->getValue('sD3GASetCampIdKey')}] - ga('set', 'campaignId', '[{$oD3GASettings->getValue('sD3GASetCampIdKey')}]'); - [{/if}] -[{/strip}] \ No newline at end of file diff --git a/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_create.tpl b/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_create.tpl deleted file mode 100644 index 06c9881..0000000 --- a/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_create.tpl +++ /dev/null @@ -1,21 +0,0 @@ -[{if $oD3GASettings->getValue('sD3GASetDomainName')}] - [{capture name="d3GACreate"}] - [{$smarty.capture.d3GACreate}] - 'cookieDomain': '[{$oD3GASettings->getValue('sD3GASetDomainName')}]', - [{/capture}] -[{/if}] - -$aParameter[] = "'legacyCookieDomain': '".d3_cfg_mod::get($this->_sModId)->getValue('sD3GASetDomainName')."'"; -} -if (d3_cfg_mod::get($this->_sModId)->getValue('sD3GASetCookiePath')) { -$aParameter[] = "'cookiePath': '".d3_cfg_mod::get($this->_sModId)->getValue('sD3GASetCookiePath')."'"; -} -if (d3_cfg_mod::get($this->_sModId)->getValue('blD3GAAllowDomainLinker')) { -$aParameter[] = "'allowLinker': true"; -} - -if (count($aParameter)) { -return ", {".implode(',', $aParameter)."}"; -} - -return ''; \ No newline at end of file diff --git a/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_custom.tpl b/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_custom.tpl deleted file mode 100644 index 9275d81..0000000 --- a/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_custom.tpl +++ /dev/null @@ -1,65 +0,0 @@ -[{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}] - d3ga( - 'set', - 'dimension1', - '[{if $oxcmp_user->oxuser__oxsal->value == 'MR'}]male[{elseif $oxcmp_user->oxuser__oxsal->value == 'MRS'}]female[{/if}]' - ); - [{/if}] - - [{* dimension 2 set payment type *}] - [{if $oViewConf->getActiveClassName() == 'thankyou' && $oPayment}] - d3ga( - 'set', - 'dimension2', - '[{$oPayment->getFieldData('oxdesc')}]' - ); - [{/if}] - - [{* dimension 3 set delivery type *}] - [{if $oViewConf->getActiveClassName() == 'thankyou' && $oDelSet}] - d3ga( - 'set', - 'dimension3', - '[{$oDelSet->getFieldData('oxtitle')}]' - ); - [{/if}] - - [{* dimension 4 set vouchers *}] - [{if $oViewConf->getActiveClassName() == 'thankyou' && $aVoucherSerieList}] - d3ga( - 'set', { - [{foreach from=$aVoucherSerieList item="oVoucherSerie"}] - 'dimension4' : '[{$oVoucherSerie->getFieldData('oxserienr')}]', - [{/foreach}] - } - ); - [{/if}] - - [{* dimension 5 set currency *}] - [{if $oViewConf->getActiveClassName() == 'thankyou' && $order}] - d3ga( - 'set', - 'dimension5', - '[{$order->getFieldData('oxcurrency')}]' - ); - [{/if}] - - [{* dimension 6 set new customer status *}] - [{if $oViewConf->getActiveClassName() == 'thankyou'}] - d3ga( - 'set', - 'dimension6', - '[{$oView->isNewCustomer()}]' - ); - [{/if}] -[{/strip}][{/if}] \ No newline at end of file diff --git a/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_ecommerce.tpl b/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_ecommerce.tpl deleted file mode 100644 index bda0d2c..0000000 --- a/changed_full/480-/modules/d3/d3_googleanalytics/views/tpl/widget/inc/d3ga_universal_ecommerce.tpl +++ /dev/null @@ -1,46 +0,0 @@ -[{if $oD3GASettings->getValue('blD3GASendECommerce') && $oViewConf->getActiveClassName() == 'thankyou'}] -[{strip}] - [{if $oViewConf->getActiveClassName() == 'thankyou'}] - [{assign var="order" value=$oView->getOrder()}] - [{/if}] - - d3ga('require', 'ecommerce', 'ecommerce.js'); - - [{assign var="currate" value=$order->oxorder__oxcurrate->value}] - [{if $oD3GASettings->getValue('blD3GAUseNetto')}] - [{math equation="s / r" s=$order->getOrderNetSum() r=$currate format="%.2f" assign="sTotal"}] [{* // total - required - has to be gross sum *}] - [{else}] - [{math equation="s / r" s=$order->getTotalOrderSum() r=$currate format="%.2f" assign="sTotal"}] [{* // total - required *}] - [{/if}] - [{math equation="s - r" s=$order->getTotalOrderSum() r=$order->getOrderNetSum() format="%.2f" assign="sTax"}] - [{math equation="s / r" s=$order->oxorder__oxdelcost->value r=$currate format="%.2f" assign="sShipping"}] - - d3ga('ecommerce:addTransaction', { - 'id': '[{$order->oxorder__oxordernr->value}]', [{* Transaction ID. Required *}] - 'affiliation': '[{$oxcmp_shop->oxshops__oxname->value}]', [{* Affiliation or store name *}] - 'revenue': '[{$sTotal}]', [{* Gesamtwert *}] - 'shipping': '[{$sShipping}]', [{* Versand *}] - 'tax': '[{$sTax}]' [{* Steuer *}] - }); - - [{foreach from=$order->getOrderArticles() item=oOrderArticle}] - - [{if $oD3GASettings->getValue('blD3GAUseNetto')}] - [{assign var="oPrice" value=$oOrderArticle->getPrice()}] - [{math equation="s / r" s=$oPrice->getNettoPrice() r=$currate format="%.2f" assign="sPrice"}] - [{else}] - [{assign var="sPrice" value=$oOrderArticle->oxorderarticles__oxprice->value}] - [{/if}] - - d3ga('ecommerce:addItem', { - 'id': '[{$order->oxorder__oxordernr->value}]', [{* Transaktions-ID *}] - 'name': '[{$oOrderArticle->oxorderarticles__oxtitle->value}]', [{* Produktname *}] - 'sku': '[{$oOrderArticle->oxorderarticles__oxartnum->value}]', [{* SKU/Code *}] - 'category': '[{$oOrderArticle->oxorderarticles__oxselvariant->value}]', [{* Kategorie oder Ausführung *}] - 'price': '[{$sPrice}]', [{* Preis pro Einheit *}] - 'quantity': '[{$oOrderArticle->oxorderarticles__oxamount->value}]' [{* Menge *}] - }); - [{/foreach}] - - d3ga('ecommerce:send'); -[{/strip}][{/if}] \ No newline at end of file