Skip to content

Commit d04426e

Browse files
authored
Merge pull request #225 from magento-obsessive-owls/MC-1426-Collect-PageBuilder-Content-Type-Data-for-PageBuilder-Analytics
[Owls] MC-14937: Complete Page Builder Analytics data collection
2 parents 3d071cc + e20bfc4 commit d04426e

File tree

50 files changed

+3417
-384
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3417
-384
lines changed

app/code/Magento/CatalogPageBuilderAnalytics/LICENSE_EE.txt

+437
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Magento_CatalogPageBuilderAnalytics module
2+
3+
The Magento_CatalogPageBuilderAnalytics module configures data definitions for a data collection related to the PageBuilder module entities to be used in [Advanced Reporting](http://devdocs.magento.com/guides/v2.2/advanced-reporting/modules.html).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "magento/module-catalog-page-builder-analytics",
3+
"description": "Catalog Page Builder Analytics module",
4+
"config": {
5+
"sort-packages": true
6+
},
7+
"require": {
8+
"magento/module-page-builder-analytics": "*",
9+
"magento/module-catalog": "*",
10+
"magento/framework": "*",
11+
"php": "~7.1.3||~7.2.0"
12+
},
13+
"type": "magento2-module",
14+
"license": [
15+
"proprietary"
16+
],
17+
"autoload": {
18+
"files": [
19+
"registration.php"
20+
],
21+
"psr-4": {
22+
"Magento\\CatalogPageBuilderAnalytics\\": ""
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Analytics:etc/analytics.xsd">
9+
<file name="pagebuilder_category">
10+
<providers>
11+
<reportProvider name="pagebuilder_category" class="Magento\PageBuilderAnalytics\Model\ContentTypeUsageReportProvider">
12+
<parameters>
13+
<name>pagebuilder_category</name>
14+
</parameters>
15+
</reportProvider>
16+
</providers>
17+
</file>
18+
<file name="pagebuilder_product_attributes">
19+
<providers>
20+
<reportProvider name="pagebuilder_product_attributes" class="Magento\PageBuilderAnalytics\Model\ContentTypeUsageReportProvider">
21+
<parameters>
22+
<name>pagebuilder_product_attributes</name>
23+
</parameters>
24+
</reportProvider>
25+
</providers>
26+
</file>
27+
</config>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9+
<module name="Magento_CatalogPageBuilderAnalytics">
10+
<sequence>
11+
<module name="Magento_Catalog"/>
12+
</sequence>
13+
</module>
14+
</config>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Analytics:etc/reports.xsd">
9+
<report name="pagebuilder_category" connection="default">
10+
<source name="catalog_category_entity_text">
11+
<attribute name="value" alias="content"/>
12+
<link-source name="eav_attribute" link-type="inner">
13+
<using glue="and">
14+
<condition attribute="attribute_id" operator="eq" type="identifier">attribute_id</condition>
15+
<condition attribute="attribute_code" operator="eq">description</condition>
16+
</using>
17+
</link-source>
18+
<link-source name="catalog_category_entity" link-type="inner">
19+
<using glue="and">
20+
<condition attribute="entity_id" operator="eq" type="identifier">entity_id</condition>
21+
</using>
22+
</link-source>
23+
<filter glue="and">
24+
<condition attribute="store_id" operator="in">0,1</condition>
25+
</filter>
26+
</source>
27+
</report>
28+
<report name="pagebuilder_product_attributes" connection="default">
29+
<source name="catalog_product_entity_text">
30+
<attribute name="value" alias="content"/>
31+
<link-source name="eav_attribute" link-type="inner">
32+
<attribute name="attribute_code"/>
33+
<using glue="and">
34+
<condition attribute="attribute_id" operator="eq" type="identifier">attribute_id</condition>
35+
</using>
36+
</link-source>
37+
<link-source name="catalog_eav_attribute" link-type="inner">
38+
<using glue="and">
39+
<condition attribute="attribute_id" operator="eq" type="identifier">attribute_id</condition>
40+
<condition attribute="is_pagebuilder_enabled" operator="eq">1</condition>
41+
</using>
42+
</link-source>
43+
<link-source name="catalog_product_entity" link-type="inner">
44+
<using glue="and">
45+
<condition attribute="entity_id" operator="eq" type="identifier">entity_id</condition>
46+
</using>
47+
</link-source>
48+
<link-source name="catalog_product_super_link" link-type="left">
49+
<using glue="and">
50+
<condition attribute="product_id" operator="eq" type="identifier">entity_id</condition>
51+
</using>
52+
<filter glue="and">
53+
<condition attribute="link_id" operator="null" />
54+
</filter>
55+
</link-source>
56+
<filter glue="and">
57+
<condition attribute="store_id" operator="in">0,1</condition>
58+
</filter>
59+
</source>
60+
</report>
61+
</config>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
use \Magento\Framework\Component\ComponentRegistrar;
8+
9+
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Magento_CatalogPageBuilderAnalytics', __DIR__);

0 commit comments

Comments
 (0)