1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-22 15:07:44 +00:00
Files
matomo/tests/PHPUnit/System/expected/test_CustomEvents__Actions.getPageUrls_day.xml
Ben Burgess 20a7c0e58b Improve page conversion attribution performance with pre-calculated field (#20526)
* Add immutable visitor property functions to the VisitProperties class, Visitor class and populate via the VisitRecognizer. Adjust referrer attribution and tests to use the immutable properties.

* Only use immutable properties for the isCurrentReferrerDirectEntry() check

* Fix referrer tests

* Migration to create new pageviews_before field on log_conversion, populate field on insert conversion, console command to calculate history

* Use a ConversionDimension class instead of directly modifying the conversion insert, calculate value from other fields instead of using a query, VisitInfo to provide access to original visit values.

* Added tests

* Fix missing parameters for ecommerce conversions

* Fix test

* Fix for UI test

* Update UI test screenshots, update privacy manager tests, update dimension test

* Fix query

* Fix archiving query segmentation support, fix update query, adjust aggregation of new pages before metric

* Fix for page before metric aggregation

* Remove onCartUpdate calculation, remove unnecessary column creation.

* Migration to create new pageviews_before field on log_conversion, populate field on insert conversion, console command to calculate history

* Use a ConversionDimension class instead of directly modifying the conversion insert, calculate value from other fields instead of using a query, VisitInfo to provide access to original visit values.

* Added tests

* Fix test

* Fix query

* Fix archiving query segmentation support, fix update query, adjust aggregation of new pages before metric

* Fix for page before metric aggregation

* Remove onCartUpdate calculation, remove unnecessary column creation.

* Update system test result

* Update to use getImmutableVisitorColumn() method

* Migration to create new pageviews_before field on log_conversion, populate field on insert conversion, console command to calculate history

* Added tests

* Fix for UI test

* Update UI test screenshots, update privacy manager tests, update dimension test

* Fix query

* Fix archiving query segmentation support, fix update query, adjust aggregation of new pages before metric

* Fix for page before metric aggregation

* Update system test result

* Added last-n option to core:calculate-conversion-pages

* Update command for vendor proxy changes

* Set parameter default value

* Revert older immutable property changes, added back column creation for failing tests

* Update system tests

* Update system test

* Allow ecommerce calcs, use constants for action types, add parameter default, tidy loop logic

* Use constant for ecommerce order goal id, only process if ecommerce enabled

* Remove update limit check

* Use custom migration to call the CalculateConversionPages command during update

* Add immutable visitor property functions to the VisitProperties class, Visitor class and populate via the VisitRecognizer. Adjust referrer attribution and tests to use the immutable properties.

* Only use immutable properties for the isCurrentReferrerDirectEntry() check

* Fix referrer tests

* Migration to create new pageviews_before field on log_conversion, populate field on insert conversion, console command to calculate history

* Use a ConversionDimension class instead of directly modifying the conversion insert, calculate value from other fields instead of using a query, VisitInfo to provide access to original visit values.

* Added tests

* Fix missing parameters for ecommerce conversions

* Fix test

* Fix for UI test

* Update UI test screenshots, update privacy manager tests, update dimension test

* Fix query

* Fix archiving query segmentation support, fix update query, adjust aggregation of new pages before metric

* Fix for page before metric aggregation

* Remove onCartUpdate calculation, remove unnecessary column creation.

* Migration to create new pageviews_before field on log_conversion, populate field on insert conversion, console command to calculate history

* Use a ConversionDimension class instead of directly modifying the conversion insert, calculate value from other fields instead of using a query, VisitInfo to provide access to original visit values.

* Added tests

* Fix test

* Fix query

* Fix archiving query segmentation support, fix update query, adjust aggregation of new pages before metric

* Fix for page before metric aggregation

* Remove onCartUpdate calculation, remove unnecessary column creation.

* Update system test result

* Update to use getImmutableVisitorColumn() method

* Migration to create new pageviews_before field on log_conversion, populate field on insert conversion, console command to calculate history

* Added tests

* Fix for UI test

* Update UI test screenshots, update privacy manager tests, update dimension test

* Fix query

* Fix archiving query segmentation support, fix update query, adjust aggregation of new pages before metric

* Fix for page before metric aggregation

* Update system test result

* Added last-n option to core:calculate-conversion-pages

* Update command for vendor proxy changes

* Set parameter default value

* Revert older immutable property changes, added back column creation for failing tests

* Update system tests

* Update system test

* Allow ecommerce calcs, use constants for action types, add parameter default, tidy loop logic

* Use constant for ecommerce order goal id, only process if ecommerce enabled

* Remove update limit check

* Use custom migration to call the CalculateConversionPages command during update

* Fix PHPCS

* Apply site timezone to update command date parameters

* Update core/Updates/5.0.0-b1.php

Co-authored-by: Stefan Giehl <stefan@matomo.org>

* Rework custom migration to return migration SQL object, fix segfault

* Directly query active goal ids for sites

* Update plugins/Goals/Commands/CalculateConversionPages.php

Co-authored-by: Stefan Giehl <stefan@matomo.org>

* Add calculate conversion pages command tests, tweak update query to correctly handle multi-conversion visits

* Update query optimizations

* remove duplicate test group

---------

Co-authored-by: Stefan Giehl <stefan@matomo.org>
2023-05-25 15:48:24 +02:00

127 خطوط
5.4 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<result>
<row>
<label>/movies</label>
<nb_visits>2</nb_visits>
<nb_uniq_visitors>2</nb_uniq_visitors>
<nb_hits>2</nb_hits>
<sum_time_spent>0</sum_time_spent>
<nb_hits_with_time_network>2</nb_hits_with_time_network>
<min_time_network>0.0000</min_time_network>
<max_time_network>0.0000</max_time_network>
<nb_hits_with_time_server>2</nb_hits_with_time_server>
<min_time_server>0.4550</min_time_server>
<max_time_server>0.4550</max_time_server>
<nb_hits_with_time_transfer>2</nb_hits_with_time_transfer>
<min_time_transfer>0.1690</min_time_transfer>
<max_time_transfer>0.1690</max_time_transfer>
<nb_hits_with_time_dom_processing>2</nb_hits_with_time_dom_processing>
<min_time_dom_processing>0.0200</min_time_dom_processing>
<max_time_dom_processing>0.0200</max_time_dom_processing>
<nb_hits_with_time_dom_completion>2</nb_hits_with_time_dom_completion>
<min_time_dom_completion>0.0990</min_time_dom_completion>
<max_time_dom_completion>0.0990</max_time_dom_completion>
<nb_hits_with_time_on_load>2</nb_hits_with_time_on_load>
<min_time_on_load>0.1600</min_time_on_load>
<max_time_on_load>0.1600</max_time_on_load>
<sum_bandwidth>0</sum_bandwidth>
<nb_hits_with_bandwidth>0</nb_hits_with_bandwidth>
<min_bandwidth />
<max_bandwidth />
<entry_nb_uniq_visitors>1</entry_nb_uniq_visitors>
<entry_nb_visits>1</entry_nb_visits>
<entry_nb_actions>14</entry_nb_actions>
<entry_sum_visit_length>3541</entry_sum_visit_length>
<entry_bounce_count>0</entry_bounce_count>
<exit_nb_uniq_visitors>2</exit_nb_uniq_visitors>
<exit_nb_visits>2</exit_nb_visits>
<avg_bandwidth>0</avg_bandwidth>
<avg_time_network>0</avg_time_network>
<avg_time_server>0.455</avg_time_server>
<avg_time_transfer>0.169</avg_time_transfer>
<avg_time_dom_processing>0.02</avg_time_dom_processing>
<avg_time_dom_completion>0.099</avg_time_dom_completion>
<avg_time_on_load>0.16</avg_time_on_load>
<avg_page_load_time>0.903</avg_page_load_time>
<avg_time_on_page>0</avg_time_on_page>
<bounce_rate>0%</bounce_rate>
<exit_rate>100%</exit_rate>
<url>http://example.org/movies</url>
<segment>pageUrl==http%253A%252F%252Fexample.org%252Fmovies</segment>
</row>
<row>
<label>/webradio</label>
<nb_visits>1</nb_visits>
<nb_uniq_visitors>1</nb_uniq_visitors>
<nb_hits>1</nb_hits>
<sum_time_spent>1499</sum_time_spent>
<nb_hits_with_time_network>1</nb_hits_with_time_network>
<min_time_network>0.0050</min_time_network>
<max_time_network>0.0050</max_time_network>
<nb_hits_with_time_server>1</nb_hits_with_time_server>
<min_time_server>0.1110</min_time_server>
<max_time_server>0.1110</max_time_server>
<nb_hits_with_time_transfer>1</nb_hits_with_time_transfer>
<min_time_transfer>0.2450</min_time_transfer>
<max_time_transfer>0.2450</max_time_transfer>
<nb_hits_with_time_dom_processing>1</nb_hits_with_time_dom_processing>
<min_time_dom_processing>0.1450</min_time_dom_processing>
<max_time_dom_processing>0.1450</max_time_dom_processing>
<nb_hits_with_time_dom_completion>1</nb_hits_with_time_dom_completion>
<min_time_dom_completion>0.0660</min_time_dom_completion>
<max_time_dom_completion>0.0660</max_time_dom_completion>
<nb_hits_with_time_on_load>1</nb_hits_with_time_on_load>
<min_time_on_load>0.0000</min_time_on_load>
<max_time_on_load>0.0000</max_time_on_load>
<sum_bandwidth>0</sum_bandwidth>
<nb_hits_with_bandwidth>0</nb_hits_with_bandwidth>
<min_bandwidth />
<max_bandwidth />
<entry_nb_uniq_visitors>1</entry_nb_uniq_visitors>
<entry_nb_visits>1</entry_nb_visits>
<entry_nb_actions>18</entry_nb_actions>
<entry_sum_visit_length>3601</entry_sum_visit_length>
<entry_bounce_count>0</entry_bounce_count>
<goals>
<row idgoal='1'>
<nb_conversions>1</nb_conversions>
<revenue>0</revenue>
<nb_conv_pages_before>1</nb_conv_pages_before>
<nb_conversions_attrib>1</nb_conversions_attrib>
<nb_conversions_page_rate>1</nb_conversions_page_rate>
<nb_conversions_page_uniq>1</nb_conversions_page_uniq>
<revenue_attrib>0</revenue_attrib>
<revenue_entry>0</revenue_entry>
<nb_conversions_entry_rate>1</nb_conversions_entry_rate>
<revenue_per_entry>0</revenue_per_entry>
<nb_conversions_entry>1</nb_conversions_entry>
</row>
<row idgoal='3'>
<nb_conversions>3</nb_conversions>
<revenue>31</revenue>
<nb_conv_pages_before>1</nb_conv_pages_before>
<nb_conversions_attrib>3</nb_conversions_attrib>
<nb_conversions_page_rate>1</nb_conversions_page_rate>
<nb_conversions_page_uniq>3</nb_conversions_page_uniq>
<revenue_attrib>31</revenue_attrib>
<revenue_entry>31</revenue_entry>
<nb_conversions_entry_rate>3</nb_conversions_entry_rate>
<revenue_per_entry>31</revenue_per_entry>
<nb_conversions_entry>3</nb_conversions_entry>
</row>
</goals>
<avg_bandwidth>0</avg_bandwidth>
<avg_time_network>0.005</avg_time_network>
<avg_time_server>0.111</avg_time_server>
<avg_time_transfer>0.245</avg_time_transfer>
<avg_time_dom_processing>0.145</avg_time_dom_processing>
<avg_time_dom_completion>0.066</avg_time_dom_completion>
<avg_time_on_load>0</avg_time_on_load>
<avg_page_load_time>0.572</avg_page_load_time>
<avg_time_on_page>1499</avg_time_on_page>
<bounce_rate>0%</bounce_rate>
<exit_rate>0%</exit_rate>
<url>http://example.org/webradio</url>
<segment>pageUrl==http%253A%252F%252Fexample.org%252Fwebradio</segment>
</row>
</result>