Skip to content

Fixes advanced options in tracking code generator #21064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 27, 2023
Merged

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Jul 26, 2023

Description:

fixes #21063

Review

@sgiehl sgiehl added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Jul 26, 2023
@sgiehl sgiehl added this to the 5.0.0 milestone Jul 26, 2023
@sgiehl sgiehl added the Needs Review PRs that need a code review label Jul 26, 2023
@sgiehl sgiehl force-pushed the fixjscodegenerator branch from ad5c753 to 28bae80 Compare July 26, 2023 15:31
Copy link
Contributor

@bx80 bx80 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm this allows the toggling of the cross domain linking option and also enables the 'outlinks' option at the same time. The cross domain option is correctly disabled for sites with only single URL configured. I also checked that the other option can be toggled and add their changes to the code 👍

Perhaps it would be good to also change the English translation from 'Enables cross domain linking' to 'Enable cross domain linking' so it's more consistent with the other descriptions?

Also it might be out of scope for this ticket, but when switching sites shouldn't the advanced options be initialized with previously chosen values for the site? Currently if a user wants to update a single tracking code option then they would need to know all the other previously chosen options for the site and remember to set them all again before copying the code otherwise they would inadvertently disable things.

@sgiehl
Copy link
Member Author

sgiehl commented Jul 27, 2023

@bx80 the selected options aren't stored anywhere, so we currently wouldn't be able to preselect anything. But that could be a new idea we could discuss in a new issue maybe.

@sgiehl
Copy link
Member Author

sgiehl commented Jul 27, 2023

I've changed the label text for the input and also added more UI tests to check that the cross domain option works correctly.
Will merge it once the tests passed and create a PR to backport it to 4.x-dev

@sgiehl sgiehl merged commit bb41633 into 5.x-dev Jul 27, 2023
@sgiehl sgiehl deleted the fixjscodegenerator branch July 27, 2023 12:30
sgiehl added a commit that referenced this pull request Jul 27, 2023
* Fixes advanced options in tracking code generator

* built vue files

* hide custom vars option if they are not available

* add more tests for tracking code generator

* Update UI test screenshots

* updates expected UI test files

* also add some tests for cross domain linking

* change cross domain text

* updates expected UI test files

---------

Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
Co-authored-by: Ben <ben.burgess@innocraft.com>
sgiehl added a commit that referenced this pull request Jul 27, 2023
* Fixes advanced options in tracking code generator (#21064)

* Fixes advanced options in tracking code generator

* built vue files

* hide custom vars option if they are not available

* add more tests for tracking code generator

* Update UI test screenshots

* updates expected UI test files

* also add some tests for cross domain linking

* change cross domain text

* updates expected UI test files

---------

Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
Co-authored-by: Ben <ben.burgess@innocraft.com>

* built vue files

* updates expected UI test files

* fix ui tests

* updates expected UI test files

---------

Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
Co-authored-by: Ben <ben.burgess@innocraft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Development

Successfully merging this pull request may close these issues.

Some advanced options in tracking code generator do no longer work
2 participants