Skip to content

Commit 267f289

Browse files
committed
MC-1426: Collect PageBuilder Content Type Data for PageBuilder Analytics
- update configuration to include more data
1 parent 1472e06 commit 267f289

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed

app/code/Magento/PageBuilderAnalytics/etc/analytics.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,13 @@
4242
</reportProvider>
4343
</providers>
4444
</file>
45+
<file name="pagebuilder_attributes">
46+
<providers>
47+
<reportProvider name="pagebuilder_attributes" class="Magento\Analytics\ReportXml\ReportProvider">
48+
<parameters>
49+
<name>pagebuilder_attributes</name>
50+
</parameters>
51+
</reportProvider>
52+
</providers>
53+
</file>
4554
</config>

app/code/Magento/PageBuilderAnalytics/etc/reports.xml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,23 @@
99
<report name="pagebuilder_page" connection="default">
1010
<source name="cms_page">
1111
<attribute name="content"/>
12+
<attribute name="page_layout"/>
13+
<attribute name="title"/>
14+
<attribute name="is_active"/>
1215
</source>
1316
</report>
1417
<report name="pagebuilder_block" connection="default">
1518
<source name="cms_block">
1619
<attribute name="content"/>
20+
<attribute name="title"/>
21+
<attribute name="is_active"/>
1722
</source>
1823
</report>
1924
<report name="pagebuilder_product" connection="default">
2025
<source name="catalog_product_entity_text">
21-
<link-source name="eav_attribute">
22-
<attribute name="attribute_id"/>
26+
<link-source name="eav_attribute" link-type="inner">
2327
<using glue="and">
28+
<condition attribute="attribute_id" operator="eq" type="identifier">attribute_id</condition>
2429
<condition attribute="attribute_code" operator="eq">description</condition>
2530
</using>
2631
</link-source>
@@ -30,14 +35,32 @@
3035
</report>
3136
<report name="pagebuilder_category" connection="default">
3237
<source name="catalog_category_entity_text">
33-
<link-source name="eav_attribute">
34-
<attribute name="attribute_id"/>
38+
<link-source name="eav_attribute" link-type="inner">
3539
<using glue="and">
40+
<condition attribute="attribute_id" operator="eq" type="identifier">attribute_id</condition>
3641
<condition attribute="attribute_code" operator="eq">description</condition>
3742
</using>
3843
</link-source>
3944
<attribute name="attribute_id"/>
4045
<attribute name="value"/>
4146
</source>
4247
</report>
48+
<report name="pagebuilder_attributes" connection="default">
49+
<source name="catalog_product_entity_text">
50+
<link-source name="eav_attribute" link-type="inner">
51+
<using glue="and">
52+
<condition attribute="attribute_id" operator="eq" type="identifier">attribute_id</condition>
53+
<condition attribute="attribute_code" operator="neq">description</condition>
54+
</using>
55+
</link-source>
56+
<link-source name="catalog_eav_attribute" link-type="inner">
57+
<using glue="and">
58+
<condition attribute="attribute_id" operator="eq" type="identifier">attribute_id</condition>
59+
<condition attribute="is_pagebuilder_enabled" operator="eq">1</condition>
60+
</using>
61+
</link-source>
62+
<attribute name="attribute_id"/>
63+
<attribute name="value"/>
64+
</source>
65+
</report>
4366
</config>

0 commit comments

Comments
 (0)