add tpl blocks
This commit is contained in:
parent
5d493cca2b
commit
32dd4bd4bb
@ -6,7 +6,7 @@
|
||||
[{if $mod_d3_googleanalytics}]
|
||||
[{* Content shouldn't rendered in disabled module!
|
||||
Because of this reason, it can't included in d3modcfgcheck block. *}]
|
||||
|
||||
[{block name="BaseAdwords"}]
|
||||
[{if $oD3GASettings->getValue('sD3GATSActive') && $oD3GASettings->getValue('sD3GATSId')}]
|
||||
[{capture name="d3GATrustedStoreCode"}]
|
||||
[{strip}]
|
||||
@ -26,4 +26,5 @@
|
||||
[{include file="d3ga_universal_remarketing.tpl"}]
|
||||
|
||||
[{include file="d3ga_universal_campaigncode.tpl"}]
|
||||
[{/block}]
|
||||
[{/if}]
|
@ -1,14 +1,13 @@
|
||||
[{$smarty.block.parent}]
|
||||
|
||||
[{d3modcfgcheck modid="d3_googleanalytics"}]
|
||||
[{/d3modcfgcheck}]
|
||||
[{d3modcfgcheck modid="d3_googleanalytics"}][{/d3modcfgcheck}]
|
||||
|
||||
[{if $mod_d3_googleanalytics}]
|
||||
[{* Content shouldn't rendered in disabled module!
|
||||
Because of this reason, it can't included in d3modcfgcheck block. *}]
|
||||
[{block name="BaseAnalytics"}]
|
||||
[{include file=$sD3GATTpl}]
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('d3_googleanalytics', 'out/src/d3_googleanalytics.css')}]
|
||||
[{if $blD3GAIsMobile}]
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('d3_googleanalytics', 'out/src/d3_googleanalytics_mobile.css')}]
|
||||
[{/if}]
|
||||
[{/block}]
|
||||
[{/if}]
|
@ -4,6 +4,7 @@
|
||||
[{/d3modcfgcheck}]
|
||||
|
||||
[{if $mod_d3_googleanalytics && $oD3GASettings->getValue('blD3GAUseOptOut')}]
|
||||
[{block name="BaseOptout"}]
|
||||
<div id="d3GAOptOut">
|
||||
<a href="javascript:gaOptout();">[{oxmultilang ident="D3_GOOGLEANALYTICS_OPTOUT"}]</a>
|
||||
[{assign var='sGaId' value=$oD3GASettings->getValue('sD3GAId')}]
|
||||
@ -25,4 +26,5 @@
|
||||
$('#d3GAOptOut').remove();
|
||||
}"}]
|
||||
</div>
|
||||
[{/block}]
|
||||
[{/if}]
|
||||
|
@ -7,6 +7,7 @@
|
||||
[{assign var="oUser" value=$oView->getUser()}]
|
||||
[{/if}]
|
||||
|
||||
[{block name="AsyncAnalytics"}]
|
||||
[{capture name="d3GATrackCode"}]
|
||||
[{strip}]
|
||||
<script type="text/javascript">
|
||||
@ -218,5 +219,6 @@
|
||||
[{/if}]
|
||||
|
||||
[{$smarty.capture.d3GATrackCode}]
|
||||
[{/block}]
|
||||
|
||||
[{/if}]
|
@ -1,5 +1,6 @@
|
||||
[{strip}]
|
||||
[{if false == $oD3GASettings->getValue('blD3GASetAdWordsCampaignTrack')}]
|
||||
[{block name="UniversalAdwordsCampaignOn"}]
|
||||
[{if false == $oD3GASettings->getValue('blD3GASetAdWordsCampaignTrack')
|
||||
&& $oD3GASettings->getValue('sD3GASetCampNameKey')}]
|
||||
ga('set', 'campaignName', '[{$oD3GASettings->getValue('sD3GASetCampNameKey')}]');
|
||||
@ -29,7 +30,10 @@
|
||||
&& $oD3GASettings->getValue('sD3GASetCampIdKey')}]
|
||||
ga('set', 'campaignId', '[{$oD3GASettings->getValue('sD3GASetCampIdKey')}]');
|
||||
[{/if}]
|
||||
[{/block}]
|
||||
[{else}]
|
||||
[{block name="UniversalAdwordsCampaignOff"}]
|
||||
ga('set', 'campaignTrack', false);
|
||||
[{/block}]
|
||||
[{/if}]
|
||||
[{/strip}]
|
@ -1,6 +1,7 @@
|
||||
[{strip}][{if $oD3GASettings->getValue('blD3GASetConversionTracking') &&
|
||||
$oD3GASettings->getValue('sD3GAAdWordConversionId') && $oViewConf->getActiveClassName() == 'thankyou'}]
|
||||
|
||||
[{block name="UniversalAdwordsCode"}]
|
||||
[{capture name="d3AdWordsCode"}]
|
||||
[{assign var="order" value=$oView->getOrder()}]
|
||||
[{assign var="currate" value=$order->oxorder__oxcurrate->value}]
|
||||
@ -37,6 +38,7 @@
|
||||
[{$oView->logCode($smarty.capture.d3AdWordsCode)}]
|
||||
|
||||
[{$smarty.capture.d3AdWordsCode}]
|
||||
[{/block}]
|
||||
|
||||
[{/if}]
|
||||
[{/strip}]
|
@ -9,6 +9,7 @@
|
||||
|
||||
[{assign var="iDimensionCount" value=0}]
|
||||
|
||||
[{block name="AnalyticsRemarkting"}]
|
||||
[{if $oD3GASettings->getValue('blD3GAUseAnalyticsRemarketing')}]
|
||||
[{* dimension 1 set product ids *}]
|
||||
[{assign var="iDimensionCount" value=$iDimensionCount+1}]
|
||||
@ -40,7 +41,9 @@
|
||||
);
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
[{/block}]
|
||||
|
||||
[{block name="CustomVars"}]
|
||||
[{if $oD3GASettings->getValue('blD3GAUseCustomVars')}]
|
||||
[{* dimension 1 set customer gender *}]
|
||||
[{assign var="iDimensionCount" value=$iDimensionCount+1}]
|
||||
@ -104,4 +107,5 @@
|
||||
);
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
[{/block}]
|
||||
[{/strip}][{/if}]
|
@ -1,4 +1,5 @@
|
||||
[{if $oD3GASettings->getValue('blD3GASendECommerce') && $oViewConf->getActiveClassName() == 'thankyou'}][{strip}]
|
||||
[{block name="UniversalEcommerceOrder"}]
|
||||
[{assign var="order" value=$oView->getOrder()}]
|
||||
|
||||
ga('require', 'ecommerce');
|
||||
@ -21,7 +22,7 @@
|
||||
});
|
||||
|
||||
[{foreach from=$order->getOrderArticles() item=oOrderArticle}]
|
||||
|
||||
[{block name="UniversalEcommerceOrderArticle"}]
|
||||
[{if $oD3GASettings->getValue('blD3GAUseNetto')}]
|
||||
[{assign var="oPrice" value=$oOrderArticle->getPrice()}]
|
||||
[{math equation="s / r" s=$oPrice->getNettoPrice() r=$currate format="%.2f" assign="sPrice"}]
|
||||
@ -38,7 +39,9 @@
|
||||
'price': '[{$sPrice}]', [{* Preis pro Einheit *}]
|
||||
'quantity': '[{$oOrderArticle->oxorderarticles__oxamount->value}]' [{* Menge *}]
|
||||
});
|
||||
[{/block}]
|
||||
[{/foreach}]
|
||||
|
||||
ga('ecommerce:send');
|
||||
[{/block}]
|
||||
[{/strip}][{/if}]
|
@ -1,6 +1,7 @@
|
||||
[{if $oD3GASettings->getValue('blD3GASetRemarketing') &&
|
||||
$oD3GASettings->getValue('sD3GARemarketingConversionId')}]
|
||||
|
||||
[{block name="UniversalAdwordsRemarketing"}]
|
||||
[{*-- Google Code für ein Remarketing-Tag --
|
||||
--------------------------------------------------
|
||||
Remarketing-Tags dürfen nicht mit personenbezogenen Daten verknüpft oder auf Seiten platziert werden,
|
||||
@ -32,4 +33,5 @@
|
||||
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/[{$oD3GASettings->getValue('sD3GARemarketingConversionId')}]/?value=0[{if $oD3GASettings->getValue('sD3GARemarketingConversionLabel')}]&label=[{$oD3GASettings->getValue('sD3GARemarketingConversionLabel')}][{/if}]&guid=ON&script=0"/>
|
||||
</div>
|
||||
</noscript>
|
||||
[{/block}]
|
||||
[{/if}]
|
@ -1,3 +1,4 @@
|
||||
[{block name="UniversalTrustedStoreBadge"}]
|
||||
[{* https://support.google.com/trustedstoresmerchant/answer/6063080?hl=de&ref_topic=6063044 *}]
|
||||
<!-- BEGIN: Google Certified Shops -->
|
||||
<script type="text/javascript">
|
||||
@ -25,8 +26,10 @@
|
||||
})();
|
||||
</script>
|
||||
<!-- END: Google Certified Shops -->
|
||||
[{/block}]
|
||||
|
||||
[{if $oViewConf->getActiveClassName() == 'thankyou'}]
|
||||
[{block name="UniversalTrustedStoreOrderInfo"}]
|
||||
[{* https://support.google.com/trustedstoresmerchant/answer/6063087?hl=de&ref_topic=6063044 *}]
|
||||
|
||||
[{assign var="oOrder" value=$oView->getOrder()}]
|
||||
@ -80,4 +83,5 @@
|
||||
<!-- end repeated item specific informations -->
|
||||
</div>
|
||||
<!-- END Google Trusted Stores Order -->
|
||||
[{/block}]
|
||||
[{/if}]
|
Loading…
Reference in New Issue
Block a user