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