demo how to use the analyticscode in ecommerce, no need for contentid
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1102577 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -129,8 +129,8 @@ under the License.
|
||||
<ProductStoreEmailSetting productStoreId="9000" emailType="UNSUB_CONT_LIST_NOTI" bodyScreenLocation="component://ecommerce/widget/EmailContactListScreens.xml#ContactListUnsubscribeEmail" subject="Unsubscribe Contact List" fromAddress="ofbiztest@example.com"/>
|
||||
<ProductStoreEmailSetting productStoreId="9000" emailType="CONT_EMAIL_TEMPLATE" bodyScreenLocation="component://ecommerce/widget/EmailContactListScreens.xml#ContactListEmailTemplate"/>
|
||||
|
||||
<WebAnalyticsConfig productStoreId="9000" webAnalyticsTypeId="GOOGLE_ANALYTICS" webAnalyticsCode="123456" isEnabled="Y" description="This is code provided from google analytics" contentId="GOOGLE_ANA_CNT"/>
|
||||
<WebAnalyticsConfig productStoreId="9000" webAnalyticsTypeId="BING_ANALYTICS" webAnalyticsCode="123456" isEnabled="Y" description="This is code provided from bing analytics" contentId="BING_ANA_CNT"/>
|
||||
<WebAnalyticsConfig productStoreId="9000" webAnalyticsTypeId="GOOGLE_ANALYTICS" webAnalyticsCode="-- enter here your analytic script code --" isEnabled="Y" description="This is code provided from google analytics" contentId="GOOGLE_ANA_CNT"/>
|
||||
<WebAnalyticsConfig productStoreId="9000" webAnalyticsTypeId="BING_ANALYTICS" webAnalyticsCode="-- enter here your analytic script code --" isEnabled="Y" description="This is code provided from bing analytics" contentId="BING_ANA_CNT"/>
|
||||
|
||||
<ProductStoreFacility productStoreId="9000" facilityId="WebStoreWarehouse" fromDate="2001-05-13 12:00:00.0"/>
|
||||
<ProductStoreRole partyId="admin" roleTypeId="SALES_REP" productStoreId="9000" fromDate="2001-05-13 12:00:00.0"/>
|
||||
|
||||
@@ -88,4 +88,11 @@ under the License.
|
||||
<#if metaKeywords?exists>
|
||||
<meta name="keywords" content="${metaKeywords}"/>
|
||||
</#if>
|
||||
<#if webAnalyticsConfigs?exists>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
<#list webAnalyticsConfigs as webAnalyticsConfig>
|
||||
${StringUtil.wrapString(webAnalyticsConfig.webAnalyticsCode?if_exists)}
|
||||
</script>
|
||||
</#list>
|
||||
</#if>
|
||||
</head>
|
||||
|
||||
@@ -55,6 +55,9 @@ under the License.
|
||||
<set field="layoutSettings" from-field="themeResources" default-value="${layoutSettings}" global="true"/>
|
||||
<set field="headerTemplateLocation" from-field="layoutSettings.VT_HDR_TMPLT_LOC[0]" default-value="component://ecommerce/webapp/ecommerce/includes/header.ftl"/>
|
||||
<set field="footerTemplateLocation" from-field="layoutSettings.VT_FTR_TMPLT_LOC[0]" default-value="component://ecommerce/webapp/ecommerce/includes/footer.ftl"/>
|
||||
<entity-and list="webAnalyticsConfigs" entity-name="WebAnalyticsConfig">
|
||||
<field-map field-name="webSiteId"/>
|
||||
</entity-and>
|
||||
</actions>
|
||||
<widgets>
|
||||
<section>
|
||||
|
||||
Reference in New Issue
Block a user