Adding Web Analytics support in OFBiz. Following things are covered in this work: – Added two new entities WebAnalyticsConfig & WebAnalyticsType & provided GUI support for it (CRUD Operations). – Added demo data for Google Analytics & Bing Analytics. – Associated WebAnalyticsConfig entity with Content entity so that the client data can be content driven. – Initially we have added this feature in catalog component keeping things in mind that in general we do configuration settings regarding to ecommerce in this component. If anyone have better place for this then we can move this timely at more appropriate place. But for now we found this place good for initial contribution. This is collaborative effort from me & Pranay(Thanks!). git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@897796 13f79535-47bb-0310-9956-ffa450edef68
40 lines
2.0 KiB
XML
40 lines
2.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<entity-engine-xml>
|
|
|
|
<!-- Content, Data Resource & Electronic Text Data -->
|
|
<DataResource dataResourceId="GOOGLE_ANA_DRS" dataResourceTypeId="ELECTRONIC_TEXT" dataTemplateTypeId="FTL" dataResourceName="Google Analytics Data Resource" mimeTypeId="text/html"/>
|
|
<DataResource dataResourceId="BING_ANA_DRS" dataResourceTypeId="ELECTRONIC_TEXT" dataTemplateTypeId="FTL" dataResourceName="Google Analytics Data Resource" mimeTypeId="text/html"/>
|
|
|
|
<Content contentId="GOOGLE_ANA_CNT" contentTypeId="DOCUMENT" dataResourceId="GOOGLE_ANA_DRS" contentName="Google Analytics Content" description="Content related to Google Analytics" mimeTypeId="text/html"/>
|
|
<Content contentId="BING_ANA_CNT" contentTypeId="DOCUMENT" dataResourceId="BING_ANA_DRS" contentName="Bing Analytics Content" description="Content related to Bing Analytics" mimeTypeId="text/html"/>
|
|
|
|
<ElectronicText dataResourceId="GOOGLE_ANA_DRS">
|
|
<textData><![CDATA[Google_Analytics Code goes here.
|
|
]]></textData>
|
|
</ElectronicText>
|
|
|
|
<ElectronicText dataResourceId="BING_ANA_DRS">
|
|
<textData><![CDATA[Bing_Analytics code goes here.
|
|
]]></textData>
|
|
</ElectronicText>
|
|
</entity-engine-xml>
|